ESP01S - UART Data

Is there any way to store incoming UART data to Flash memory in ESP01S (Black colour module) ? I have to save 864,000 bytes in flash memory/program memory. This data will come only once time. After that permanently it will store inside ESP01S & I can access them Even after power down & return back.

Is there any way of doing it?

You can reserve some flash memory for filesystem use but AFAIK the ESP01S has only a 1M flash memory chip so not enough space for what you want. It is possible to buy 4M memory chips and replace the 1M chip if you have good soldering skills or you could maybe just use something like the WEMOS D1 Mini that already has a 4M flash memory chip.

1 Like

flash memories usually have an SPI interface which is difficult to interface with the ESP-01S due to lack of GPIO pins (SPI requires 4 pins)
consider using an FRAM, e.g. Adafruit I2C Non-Volatile FRAM , which uses an I2C interface which can be connected to the ESP-01S, e.g. SCL to GP2 and SDA to GP0

ESP-01 is WiFi enabled, so could it use storage on a remote server to store the data?

Very Nice & thanks.I'll consider. replacing a large memory chip.

Can that UART data save in RAM (non volatile) & use it after even after power down & comes back?

The ESP01S does not have enough RAM to store all the 864,000 bytes of data and it would not survive a power cycle anyway.
You should be able to store the 864,000 bytes in one or more LittleFS files in flash memory (that would survive a power cycle) and read some of it into a RAM buffer to work on.

FRAM is non-volatile - you receive the data from the UART store it to FRAM
if you loose power - on powerup the original data can be restored from FRAM
note that FRAM does not have the write limitations of EEPROM

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