One of the values in NVS is called `serialno`. It is a 32-bit serial number that should be unique to each device.
There are other values stored in NVS. Some of them are constant, but others may be set during operation of the device (such as calibration data).
If I never need to update the serial number at a later date, is there a way I can do this without affecting the other data already stored in NVS?
I've tried using
Code: Select all
parttool.py write_partitionI'm thinking that it may be possible to achieve by doing something like
Code: Select all
parttool.py read_partition -n nvs --output nvs.bin
# Do something here to modify nvs.bin to have new serial number
parttool.py write_partition -n nvs --input nvs.bin
