PSRAM/SD card/PICO D4

thethinker
Posts: 58
Joined: Thu Mar 01, 2018 1:26 am

Re: PSRAM/SD card/PICO D4

Postby thethinker » Sat Jan 25, 2020 9:19 pm

I have been successfully using my PICO-D4 with PSRAM for 2 years on hundreds of boards now, however once I updated IDF to master branch (v4.1-dev-1891-g3634192de-dirty) which is supposed to have PSRAM support for PICO-D4, my code broke and is crashing with this error on boot:
E (1220) memory_layout: SOC_RESERVE_MEMORY_REGION region range 0x3f800000 - 0x40000000 overlaps with 0x3ffae000 - 0x3ffae6e0
The only way I can fix the error is to disable PSRAM.
To give you a bit more info I have attached a picture of my schematic that shows how the psram is connected to pico-d4 (and I can't change it since the board is custom and is installed at remote customer locations all over the world. I have also included my modified spiram_psram.c for old and new IDF.
Can one of the ESP experts comment on this please?
Attachments
spiram_psram_old_idf.c
(34.17 KiB) Downloaded 511 times
spiram_psram_new_idf.c
(38.56 KiB) Downloaded 490 times
PSRAM_SCH.png
PSRAM_SCH.png (102.77 KiB) Viewed 3369 times

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: PSRAM/SD card/PICO D4

Postby WiFive » Sun Jan 26, 2020 9:09 am

Try setting your CONFIG_SPIRAM_SIZE back to -1

Who is online

Users browsing this forum: Bing [Bot] and 25 guests