Possibility to automatically detect Octal/Quad PSRAM?

wuyuanyi
Posts: 28
Joined: Wed Mar 09, 2022 11:54 am

Possibility to automatically detect Octal/Quad PSRAM?

Postby wuyuanyi » Mon May 06, 2024 1:27 am

Hello all,

I designed a prodcut with ESP32S3NxR2 and the firmware was set to using quad PSRAM lines. However, due to stock issue a recent batch was assembled with ESP32S3NxR8. While I was told the R8 version is compatible with R2 in quad mode, it turned out to be not true and I was getting

Code: Select all

E (323) quad_psram: PSRAM ID read error: 0x00ffffff, PSRAM chip not found or not supported, or wrong PSRAM line mode
E (324) cpu_start: Failed to init external RAM, needed for external .bss segment
Now I have to maintain two separate versions of firmware. I wonder if there is possibility for esp-idf to detect different PSRAM line mode and automatically fallback to the correct mode? Otherwise, is it possible to perform the detection and switch in runtime? (I saw octal and quad are conditionally compiled)

Regards,
YW

Who is online

Users browsing this forum: No registered users and 62 guests