Page 1 of 1

Large external memory with an ESP32-C3

Posted: Wed Aug 11, 2021 2:49 pm
by oretnom
Hi,

I'm currently considering using a ESP32-C3 for a project where I need to store large amounts of data in the order of GBs. I was wondering if this is achievable with this SoC? Does it have the capabilities to drive an external flash memory of, say, 16 GB? I haven't found any examples of this yet so I'm not sure.

Thank you all in advance.

Re: Large external memory with an ESP32-C3

Posted: Thu Aug 12, 2021 1:08 am
by ESP_Sprite
Sure. For instance, the SD-card code could be seen as an example of interfacing with 'large external memory'. Is that what you had in mind?

Re: Large external memory with an ESP32-C3

Posted: Fri Sep 10, 2021 7:28 am
by Nienowb
I was wondering if malloc() will use PSRAM with

-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
Or do i have to use ps_alloc() or whatever? If the answer is "it depends", where do I go in menuconfig to enable that?

Re: Large external memory with an ESP32-C3

Posted: Sat Sep 11, 2021 3:02 am
by ESP_Sprite
You can set most of these options in menuconfig, Component config → ESP32S3-Specific → Support for external, SPI-connected RAM → SPI RAM config. Specifically the SPI RAM access method can configure what you asked about. If you have more questions, please put them in your own post; the ESP32C3 as named in the title does not support PSRAM so your question actually is offtopic here.