Use Of NVS data partition

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
LisaM
Posts: 19
Joined: Tue Nov 07, 2017 6:11 pm

Use Of NVS data partition

Post by LisaM » Thu Aug 09, 2018 4:12 pm

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

loboris
Posts: 344
Joined: Fri Oct 02, 2015 6:19 pm

Re: Use Of NVS data partition

Post by loboris » Thu Aug 09, 2018 6:45 pm

NVS is supported in my MicroPython port.
24 KB is the default NVS partition size, it can be much larger if needed.

LisaM
Posts: 19
Joined: Tue Nov 07, 2017 6:11 pm

Re: Use Of NVS data partition

Post by LisaM » Thu Aug 09, 2018 9:37 pm

loboris wrote:
Thu Aug 09, 2018 6:45 pm
NVS is supported in my MicroPython port.
24 KB is the default NVS partition size, it can be much larger if needed.
I know, but your port isn't compatible with the standard uasyncio (webserver) libs which i'm using heavily, so that's no option...
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).

Post Reply