NVS Partition Editor
The ESP-IDF: Open NVS Partition Editor allows you to create a NVS partition binary file based on key-value pairs in CSV file.
The resulting binary file is compatible with NVS architecture defined in ESP-IDF Non Volatile Storage.
The expected CSV format is:
key,type,encoding,value <-- column header (must be the first line)
namespace_name,namespace,, <-- First entry must be of type "namespace"
key1,data,u8,1
key2,file,string,/path/to/file
Click menu View > Command Palette…
Type ESP-IDF: Open NVS Partition Editor and select the command (to create a new file) or right click an existing partition table CSV file.
If creating a new file, choose the name of the file. It will be created in the current editor directory.
备注
Make sure first 2 lines of existing CSV file are as shown in expected CSV format above.
Make desired changes to CSV file.
备注
Make sure that the size of partition is enough for inserted data.
Save the CSV data (First time will create the CSV file).
(OPTIONAL) Enable encryption of the binary. If encrypt is enable, can disable the generate key option to use your own key if desired, in which case you need to set the key absolute path.
Generate the partition binary.
This feature is based on ESP-IDF NVS Partition Generator Utility.
Make sure extension is configured as shown in Install ESP-IDF and Tools documentation for this feature to work properly.