Page 1 of 1

Esp32S3 : How to clear a nvs partition when programming ?

Posted: Tue Jan 16, 2024 10:52 am
by ThomasESP32
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

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

Posted: Tue Jan 16, 2024 11:10 am
by ok-home
Hi
use parttool.py before flashing/

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