I have an official s3-devkit-c1 with the n8r8 variant on it.
I have used menuconfig to add “external connected spi ram”
I have the following platformio.ini file
␛[0;31mE (168) psram: PSRAM ID read error: 0x00ffffff
␛[0;31mE (168) cpu_start: Failed to init external RAM!
I have read several threads, and tried many combinations of build flags, and changes to the board .json file but nothing helps.
Any ideas how I can successfully activate the psram?
thank you!
@maxgerhardt I am using esp-idf so confised why would I set Arduino build flags?
I added the line you indicated to platformio.ini and no change. Any other ideas?
with your setup I get src/main.c:1:10: fatal error: Arduino.h: No such file or directory. Is everyone just using Arduino? I do not want to use Arduino, I have a complex sdkconfig setup in mind.
I understand your project is ESP-IDF, I’m asking you to create a new blank project with the board + Arduino as framework and use the above code as src/main.cpp. It’s just a quick check.
I would expect this command to create a special folder inside .platformio/ somewhere, but I don’t see it. Is it possible this has corrupted my subsequent projects to use this fork of esp-idf, and is causing this issue?
I tried them all and none worked.
I have solved the problem for the esp-idf framework (not arduino).
No build flags are needed, nothing is needed in the board .json file.
I just needed to select OCTAL in menuconfig, it defaults to QUAD.
Thanks for indicating that my board had octal psram, that eventually led me to spot the issue.
I appreciate your support.
Let me know if I can contribute this experience back to the docs.
I also found that I need board_build.flash_mode = dio or the program crashes with the unhelpful
I would have benefited from this knowledge at the start. I think all the s3 boards and modules would use the same settings, if they have psram, so there is some obvious value in publishing this info, if it is not possible to set it as the default.
I also remembered that my board was purchased around a year ago, and I believe at that time they were still marked as “engineering samples” so perhaps things have changed since then?
I also ran the same tests in a non-pio installation of esp-idf, and it gave me the very helpful error message
E (170) quad_psram: PSRAM ID read error: 0x00ffffff, PSRAM chip not found or not supported, or wrong PSRAM line mode
E (170) cpu_start: Failed to init external RAM!
I am not sure why this message doesn’t propagate through to the pio logs. It certainly cued me to look at the hardware settings more closely in menuconfig. Perhaps it is because I am using the latest idf, and pio is perhaps not yet?