Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 1.73 KB

nvs_partition_editor.md

File metadata and controls

36 lines (22 loc) · 1.73 KB

NVS Partition editor

The ESP-IDF: Open NVS Partition Editor allows the user 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... and search for ESP-IDF: Open NVS Partition Editor (to create a new file) or right click an existing CSV file.

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

NVS Partition editor

  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 the user needs 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 tutorial for this feature to work properly.