Arduino Forum

Using Arduino => Storage => Topic started by: ViW on Jan 22, 2019, 01:09 pm

Title: ESP WROOM 32 SPI Flash Memory
Post by: ViW on Jan 22, 2019, 01:09 pm
Hi everyone,


I use Adafruit ESP32 Feather Huzzah32, I want to use flash memory (4MB) but I can not find an example to store values ​​in this memory.

Can someone help me ?


Vincent
Title: Re: ESP WROOM 32 SPI Flash Memory
Post by: DrDooom on Jan 24, 2019, 09:35 am
Use EEPROM library.

Tut: https://randomnerdtutorials.com/esp32-flash-memory/ (https://randomnerdtutorials.com/esp32-flash-memory/)
Title: Re: ESP WROOM 32 SPI Flash Memory
Post by: gbafamily on Jan 24, 2019, 09:50 am
If you want to read/write lots data use SPIFFS (SPI Flash File System). One option is to configure 1MB for code and 3MB for SPIFFS.

https://github.com/espressif/arduino-esp32/blob/master/libraries/SPIFFS/examples/SPIFFS_Test/SPIFFS_Test.ino
Title: Re: ESP WROOM 32 SPI Flash Memory
Post by: ViW on Jan 26, 2019, 04:34 pm
Thanks for your answer DrDooom and gbafamily.

DrDooom, I try this solution but I can not save much data just 4kbytes.

Gbafamily, this solution works when the card is linked to the PC but in the case of an embedded system it is not functional.

Finally, I find solution to write in flash memory. I use ESP.flashWrite and ESP.flashRead.


Vincent