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
  1. Click menu View > Command Palette…

  2. 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.

  3. If creating a new file, choose the name of the file. It will be created in the current editor directory.

Note

Make sure first 2 lines of existing CSV file are as shown in expected CSV format above.

  1. Make desired changes to CSV file.

Note

Make sure that the size of partition is enough for inserted data.

../_images/nvs_partition_editor.png
  1. Save the CSV data (First time will create the CSV file).

  2. (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.

  3. 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.