Writing to flash encrypted NVS storage during manufacturing

MalteJ
Posts: 62
Joined: Wed Sep 21, 2016 10:26 pm

Writing to flash encrypted NVS storage during manufacturing

Postby MalteJ » Fri Mar 24, 2017 1:25 pm

Hi,

we are using flash encryption and want to set some device specific variables in NVS flash during manufacturing (Serial No, Crypto Keys etc.).
What is the best way to generate an encrypted flash image containing these variables?
Is there a tool I can use?

Thank you!

Best,
Malte

ESP_igrr
Posts: 1521
Joined: Tue Dec 01, 2015 8:37 am

Re: Writing to flash encrypted NVS storage during manufacturing

Postby ESP_igrr » Fri Mar 24, 2017 5:19 pm

At the moment, nvs doesn't support encrypted partitions. That's something we will be working on for the next version.

The easiest way to generate nvs data is to initialize the contents of nvs on one board, and dump the partition using esptool's read_flash command.

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 17 guests