How to access external flash memory of ESP32?

How i can write 8MB data in external flash memory in esp32 ?

And how to use below function=

esp_err_tspi_flash_write(size_t dest_addr, const void *src, size_t size) ;

Can any budy help..

Under the Arduino IDE or the ESPRESSIFF IDF?

The ESPRESSIF Arduino Core has a HiMem limit of 4MB. To get at more than 4MB of ram you'll need to program under the ESPRESSIF's IDF.

Here is a link to the documentation I used to access the extra ram of a ESP. API Reference - ESP32 - — ESP-IDF Programming Guide latest documentation (espressif.com). If your lucky you might find some code I posted on this site sometime ago to test the various ways I used to get at the extra ram under the Arduino IDE.

Good luck.

Assuming it is data not to be executed consider using external FRAM. 32K x 8 can be gotten for less then $5.00 from your favorite china supplier. It is nonvolatile and will support about (10 to 14th) read write cycles, thousands of times more then Flash. It is available in SPI or I2C.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.