The ESP32 has an small (24K) NVS partition that can hold nvs data, it is initialized in the app_main function in the main.c file (nvs_flash_init();).
But... how can i use it in MicroPython?
Lisa
Use Of NVS data partition
Re: Use Of NVS data partition
NVS is supported in my MicroPython port.
24 KB is the default NVS partition size, it can be much larger if needed.
24 KB is the default NVS partition size, it can be much larger if needed.
Re: Use Of NVS data partition
I know, but your port isn't compatible with the standard uasyncio (webserver) libs which i'm using heavily, so that's no option...loboris wrote: ↑Thu Aug 09, 2018 6:45 pmNVS is supported in my MicroPython port.
24 KB is the default NVS partition size, it can be much larger if needed.
Your main.c does have the NVS option, but the code isn't compatible with the standard main.c
The RTC memory can't be used on the ESP32, because the esp is clearing the RTC memory in cpu_start.c . Changing that doesn't help, since the memory is still cleared (issue #4042).