Create nvs in advance

wifitier
Posts: 4
Joined: Fri Oct 19, 2018 9:18 am

Create nvs in advance

Postby wifitier » Mon Feb 23, 2026 8:48 am

For some projects it want to pre-create the content of the NVS partition before starting the code for the first time. Therefore i added a nvs.csv file to the project-root. I've read about how to convert this to a binary partition and flash only this partition, but the steps are complex to figure out start-address and length.

What would be the simplest way to get the data of an project nvs.csv into the flash-image of the build?

MicroController
Posts: 2661
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Create nvs in advance

Postby MicroController » Mon Feb 23, 2026 9:56 am

parttool.py

Code: Select all

parttool.py --port ... write_partition --partition-name=nvs --input "nvs.bin"

Who is online

Users browsing this forum: Bytespider, Google [Bot], meta-externalagent and 18 guests