Delete "esp32.NVS("label" ) or Erase complete NVS partition in ESP32 #11163
nastiliano
started this conversation in
General
Replies: 1 comment 4 replies
-
See related #11023. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everybody:
I've been searching for a lot of pages and documentation and I cannot find the way to delete a "esp32.NVS("label" ) or Erase complete NVS partition in ESP32.
I have "boot.py" and "main.py" like this:
#BOOT.PY
param_area = esp32.NVS("param_area ")
param_area .set_blob("usuari" , "")
param_area .set_blob("cp_instal" , "")
area_param.set_i32("sen_man_mot_1" , -1)
.
.
.
param_area.commit()
#Change the name of "Boot.py" to not execute anymore
time.sleep(1)
os.rename("boot.py" , "no_boot.py")
time.sleep(2)
#MAIN.PY
.
.
.
time.sleep(1)
os.rename("no_boot.py" , "boot.py")
time.sleep(2)
machine.reset()
And an error occurs like: "NOT ENOUGHT SPACE IN NVS".
I would need to delete the NVS space before machine.reset() not to overload my original NVS namespace.
Somebady have any ideas, please?
Thank you very much
Beta Was this translation helpful? Give feedback.
All reactions