Recommended way to get PSRAM / SPIRAM supported for a chip #19302
-
|
I've just started prototyping a new project with Micropython, and would like to utilize an Previously, I played around with an ESP32-S3R8 (also from Seeed Studio), and to utilize the built-in PSRAM I needed to install the "Support for Octal-SPIRAM" firmware from the Generic ESP32-S3 micropython page. Today, the Generic ESP32-C5 micropython page does not have links for downloading a different "Support for Octal-SPIRAM" firmware. So, I have two questions:
I did install the latest micropython onto my |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
|
I think the sparkfun thingplus esp32-C5 board has Spiram enabled. You can look at its config to start configuring you own board variant. |
Beta Was this translation helpful? Give feedback.
-
|
The ESP32-C5 packages mentioned here have Quad SPI PSRAM not Octal SPI PSRAM, so it should be straightforward to enable support (as per @Josverl's comment we have one board which already has this.)
The base ESP32_GENERIC_S3 actually supports quad PSRAM already in the default variant, and probably we can make the same change to ESP32_GENERIC_C5 so it will use PSRAM automatically if it's there. It'd also be good to add a
It's a bit fiddly, but enabling it in esp32 boards generally only requires enabling support in the SDK config, which makes the binary a little bit larger and sometimes prints an error on boot if the PSRAM isn't found when the chip probes for it. This is why it's enabled in the default There are some special cases:
It's different, to get acceptable performance the PSRAM support has to be closely integrated with the hardware of the chip.
|
Beta Was this translation helpful? Give feedback.
-
|
Have opened a PR to add PSRAM support to ESP32_GENERIC_C5 board: #19303 @rmelick Once this merges you'll be able to download a nightly build which has PSRAM support enabled. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the quick response everyone! @projectgus , I went ahead and tested the "default" v1.28.0 release on my ESP32-S3, to see if it would detect the PSRAM (and to give an idea of whether your changes for the C5 would work automatically too). Unfortunately, it looks like something isn't quite working, If I put the board back into the bootloader, I can see that I have tried to get the boot logs from running But still, after a reboot, all I saw was the MicroPython prompt ( |
Beta Was this translation helpful? Give feedback.
-
|
I just wanted to follow up here, and say that the nightly builds are working! Thanks for the help everyone. |
Beta Was this translation helpful? Give feedback.


Have opened a PR to add PSRAM support to ESP32_GENERIC_C5 board: #19303
@rmelick Once this merges you'll be able to download a nightly build which has PSRAM support enabled.