Esp32S3 : How to clear a nvs partition when programming ?

ThomasESP32
Posts: 229
Joined: Thu Jul 14, 2022 5:15 am

Esp32S3 : How to clear a nvs partition when programming ?

Postby ThomasESP32 » Tue Jan 16, 2024 10:52 am

Good morning,

I am working with an Esp32S3 Chip, and I have created a NVS Partition
in a partition.csv file called and defined this way :

Partition1, data, nvs, 0x18000, 0x3000,

The program that I am coding writes/reads datas in this partition at runtime.

Now, I would like that this parition is cleared when I reprogram/reflash the chip via USB.
I have seen that it is not the case. Maybe USB flash does not write anything on NVS partitions ? Does not clear them ?

Do you think that it is possible to create an empty ".bin" file having the size of the partition
and do you think it is possible to flash this empty ".bin" file on the Partition1 NVS automatically when flashing the program ?

Thank you for your help,

Best regards,

Thomas TRUILHE

User avatar
ok-home
Posts: 78
Joined: Sun May 02, 2021 7:23 pm
Location: Russia Novosibirsk
Contact:

Re: Esp32S3 : How to clear a nvs partition when programming ?

Postby ok-home » Tue Jan 16, 2024 11:10 am

Hi
use parttool.py before flashing/

https://docs.espressif.com/projects/esp ... -interface

Who is online

Users browsing this forum: axellin and 88 guests