Large external memory with an ESP32-C3

oretnom
Posts: 1
Joined: Wed Aug 11, 2021 2:45 pm

Large external memory with an ESP32-C3

Postby oretnom » Wed Aug 11, 2021 2:49 pm

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.

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

Re: Large external memory with an ESP32-C3

Postby ESP_Sprite » Thu Aug 12, 2021 1:08 am

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?

Nienowb
Posts: 1
Joined: Fri Sep 10, 2021 7:27 am

Re: Large external memory with an ESP32-C3

Postby Nienowb » Fri Sep 10, 2021 7:28 am

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?
Last edited by Nienowb on Sat Sep 11, 2021 6:08 am, edited 1 time in total.

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

Re: Large external memory with an ESP32-C3

Postby ESP_Sprite » Sat Sep 11, 2021 3:02 am

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.

Who is online

Users browsing this forum: Google [Bot] and 146 guests