Hello,
I am new to espressif and bought a devkit based on esp32 with 4MB embedded flash. i have some questions.
What type of flash is included in the SOC?
What are the maximum number of write cycles for this flash?
I cannot find example code on how to access this flash, i want to store a float value on this flash.
Thanks in advance
ESP32C3 internal flash memory
-
- Posts: 826
- Joined: Mon Jul 22, 2019 3:20 pm
Re: ESP32C3 internal flash memory
it is quad SPI flash
It is rated for about 10000 cycles. It is not appropriate for storing highly volatile data. It will likely work for most uses, even to the point of storing somewhat ephemeral data like authentication cookies, particularly if you use a write method with wear leveling (eg fatfs or nvs).
The Preferences library will show you some examples of storing basic keypair data.
https://github.com/espressif/arduino-es ... ounter.ino
It is rated for about 10000 cycles. It is not appropriate for storing highly volatile data. It will likely work for most uses, even to the point of storing somewhat ephemeral data like authentication cookies, particularly if you use a write method with wear leveling (eg fatfs or nvs).
The Preferences library will show you some examples of storing basic keypair data.
https://github.com/espressif/arduino-es ... ounter.ino
Re: ESP32C3 internal flash memory
Thanks for the info, i am still not able to access this memory to store some data permanently. have any hints? there is no example included with the IDF for this tasklbernstone wrote: ↑Mon Aug 22, 2022 3:52 amit is quad SPI flash
It is rated for about 10000 cycles. It is not appropriate for storing highly volatile data. It will likely work for most uses, even to the point of storing somewhat ephemeral data like authentication cookies, particularly if you use a write method with wear leveling (eg fatfs or nvs).
The Preferences library will show you some examples of storing basic keypair data.
https://github.com/espressif/arduino-es ... ounter.ino
-
- Posts: 9729
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP32C3 internal flash memory
There's multiple ways to do that; if all you want to do is store a float then nvs seems to be the most applicable. Nvs has examples in the esp-idf directory if you need them. I believe the Arduino equivalent would be the 'preferences' library.
Re: ESP32C3 internal flash memory
Thanks, i was able to write data and read after power lossESP_Sprite wrote: ↑Fri Sep 02, 2022 12:41 amThere's multiple ways to do that; if all you want to do is store a float then nvs seems to be the most applicable. Nvs has examples in the esp-idf directory if you need them. I believe the Arduino equivalent would be the 'preferences' library.
Who is online
Users browsing this forum: Bing [Bot] and 78 guests