Hi,
I would like to allocate some variables in the ROM memory address of the Espressif, so I can acess to them, change it's value and keep its value constant between each turn off-on process.
I know I can do it with an EEPROM memory, but I would prefer not using this peripheral.
How do I allocate those variables?<br/>
I'm coding in C and using ESP-IDF Eclipse and CMAKE to build the project.<br/>
Thanks,
Pablo
ESP32 fixed variables in ROM
ESP32 fixed variables in ROM
Last edited by pablo1610 on Fri Oct 29, 2021 6:48 am, edited 1 time in total.
Re: ESP32 fixed variables in ROM
The ROM in ESP chips is Mask ROM not EEPROM. So it is literally Read Only Memory.
-
- Posts: 9770
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP32 fixed variables in ROM
As an alternative, nvs probably approximates what you want (although you still need to save your values manually)
Who is online
Users browsing this forum: Google [Bot] and 63 guests