Chapter 2. API Reference
(continued from previous page)
| | ␣
,→ |
+-----------------+-------------------------------------------------------
,→-------------+
| --outdir OUTDIR | Output directory to store files created ␣
,→ |
| | (Default: current directory) ␣
,→ |
+-----------------+-------------------------------------------------------
,→-------------+
You can run the utility to generate NVS partition using the command below: A sample CSV file is provided with the
utility:
python nvs_partition_gen.py generate sample_singlepage_blob.csv sample.bin 0x3000
To generate only encryption keys:
Usage:
python nvs_partition_gen.py generate-key [-h] [--keyfile KEYFILE]
[--outdir OUTDIR]
Optional Arguments:
+--------------------+----------------------------------------------------
,→------------------+
| Parameter | Description ␣
,→ |
+====================+======================================================================+
| -h, --help | show this help message and exit ␣
,→ |
+--------------------+----------------------------------------------------
,→------------------+
| --keyfile KEYFILE | Path to output encryption keys file ␣
,→ |
+--------------------+----------------------------------------------------
,→------------------+
| --outdir OUTDIR | Output directory to store files created. ␣
,→ |
| | (Default: current directory) ␣
,→ |
+--------------------+----------------------------------------------------
,→------------------+
You can run the utility to generate only encryption keys using the command below:
python nvs_partition_gen.py generate-key
To generate encrypted NVS partition:
Usage:
python nvs_partition_gen.py encrypt [-h] [--version {1,2}] [--keygen]
[--keyfile KEYFILE] [--inputkey␣
,→INPUTKEY]
[--outdir OUTDIR]
input output size
Positional Arguments:
(continues on next page)
Espressif Systems 728
Submit Document Feedback
Release v4.4