PSRAM ID read error: 0xffffffff

bbernhard
Posts: 5
Joined: Sun Jan 31, 2021 7:42 am

PSRAM ID read error: 0xffffffff

Postby bbernhard » Mon Jan 31, 2022 7:53 pm

Hello everybody,

I have connected the PSRAM64H to my ESP32-WROOM-32U as shown in the below schematic.
Selection_136.png
Selection_136.png (48.69 KiB) Viewed 29003 times
Unfortunately, when I try to run the "himem" example it fails with the following stacktrace:

Code: Select all

Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x3f (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:4
load:0x3fff0034,len:7176
load:0x40078000,len:13664
ho 0 tail 12 room 4
load:0x40080400,len:4632
0x40080400: _init at ??:?

entry 0x400806f4
I (31) boot: ESP-IDF v4.2.1 2nd stage bootloader
I (31) boot: compile time 19:14:30
I (31) boot: chip revision: 3
I (34) boot_comm: chip revision: 3, min. bootloader chip revision: 0
I (41) boot.esp32: SPI Speed      : 40MHz
I (46) boot.esp32: SPI Mode       : DIO
I (50) boot.esp32: SPI Flash Size : 2MB
I (55) boot: Enabling RNG early entropy source...
I (60) boot: Partition Table:
I (64) boot: ## Label            Usage          Type ST Offset   Length
I (71) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (78) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (86) boot:  2 factory          factory app      00 00 00010000 00100000
I (93) boot: End of partition table
I (97) boot_comm: chip revision: 3, min. application chip revision: 0
I (105) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x0aca4 ( 44196) map
I (132) esp_image: segment 1: paddr=0x0001accc vaddr=0x3ffb0000 size=0x02104 (  8452) load
I (136) esp_image: segment 2: paddr=0x0001cdd8 vaddr=0x40080000 size=0x00404 (  1028) load
0x40080000: _WindowOverflow4 at /media/bernhard/Data/Projects/esp-idf/components/freertos/xtensa/xtensa_vectors.S:1730

I (139) esp_image: segment 3: paddr=0x0001d1e4 vaddr=0x40080404 size=0x02e34 ( 11828) load
I (153) esp_image: segment 4: paddr=0x00020020 vaddr=0x400d0020 size=0x17dec ( 97772) map
0x400d0020: _stext at ??:?

I (197) esp_image: segment 5: paddr=0x00037e14 vaddr=0x40083238 size=0x0a994 ( 43412) load
0x40083238: psram_cache_init at /media/bernhard/Data/Projects/esp-idf/components/esp32/spiram_psram.c:1074

I (226) boot: Loaded app from partition at offset 0x10000
I (226) boot: Disabling RNG early entropy source...
I (227) psram: This chip is ESP32-D0WD
E (232) psram: PSRAM ID read error: 0xffffffff
E (236) cpu_start: Failed to init external RAM!
Re-enable cpu cache.

abort() was called at PC 0x40081a15 on core 0
0x40081a15: call_start_cpu0 at /media/bernhard/Data/Projects/esp-idf/components/esp32/cpu_start.c:191 (discriminator 1)


Backtrace:0x40087622:0x3ffe3b90 0x40087ced:0x3ffe3bb0 0x4008b586:0x3ffe3bd0 0x40081a15:0x3ffe3c40 0x40079082:0x3ffe3c80 |<-CORRUPTED
0x40087622: panic_abort at /media/bernhard/Data/Projects/esp-idf/components/esp_system/panic.c:330

0x40087ced: esp_system_abort at /media/bernhard/Data/Projects/esp-idf/components/esp_system/system_api.c:106

0x4008b586: abort at /media/bernhard/Data/Projects/esp-idf/components/newlib/abort.c:46

0x40081a15: call_start_cpu0 at /media/bernhard/Data/Projects/esp-idf/components/esp32/cpu_start.c:191 (discriminator 1)



ELF file SHA256: 0fdb4bded33b4c0e
I have a pullup on GPIO12, so it will be pulled high during boot. But I've set the flash voltage to 3.3V with "espefuse.py set_flash_voltage 3.3V". So I think this should be fine?

Does anyone have an idea what I am doing wrong here?

Thanks a lot!

Have a nice day,
Bernhard

ESP_Sprite
Posts: 9583
Joined: Thu Nov 26, 2015 4:08 am

Re: PSRAM ID read error: 0xffffffff

Postby ESP_Sprite » Wed Feb 02, 2022 3:02 am

From what I can tell, that should work. Are you sure your module is a ESP32-WROOM-32U module? Asking because later WROOM modules do not have the required pins connected to the outside anymore.

bbernhard
Posts: 5
Joined: Sun Jan 31, 2021 7:42 am

Re: PSRAM ID read error: 0xffffffff

Postby bbernhard » Wed Feb 02, 2022 6:48 am

Hi,

thanks for your reply!

Yeah, it is a ESP32-WROOM-32U. I've tried another PSRAM64 (because I thought the first one might be damaged), but I am seeing the same behavior there. Is there anything I can do to troubleshoot the problem and find the root cause?

The alternative would be to switch to the ESP32 WROVER module - but as the WROVER has a larger footprint, it probably gets a bit tricky for me to fit it on the size constraint PCB.

BangFish
Posts: 1
Joined: Thu Apr 28, 2022 11:41 am

Re: PSRAM ID read error: 0xffffffff

Postby BangFish » Thu Apr 28, 2022 11:50 am

I can reproduce your behavior by commenting code that provides reset procedure. Also make sure that if you switched the device to quad mode and then did hot reset (i.e without power-down, the chip won't do a hard reset) you need to send reset command in quad mode, not serial. To solve this problem I am doing reset procedure for both modes successively.

bluetobits
Posts: 1
Joined: Tue Dec 27, 2022 5:37 pm

Re: PSRAM ID read error: 0xffffffff

Postby bluetobits » Tue Dec 27, 2022 5:43 pm

Hi. First post on this forum and very new to ESP . I know its an old thread but I found a solution by changing the board in the Arduino IDE Tools-> Board to "ESP32 Dev Module"

Who is online

Users browsing this forum: s-ol.nu and 57 guests