Please note: Friday June 18 is a holiday celebrating Juneteenth, please allow extra time for your order to arrive and plan accordingly.
0

ESP32 1.0.6 : NVS_KEYS gives unknown partition sub-type
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

ESP32 1.0.6 : NVS_KEYS gives unknown partition sub-type

by am1 on Tue May 11, 2021 5:00 pm

Board: ESP32 Hazzmat Feather with 4 MB flash

I have updated min_spiff.csv with
nvs_key, data, nvs_keys, , 0x1000, encrypted,

Using Arduino and ESP32 version 1.0.6 which is equivalent to ESP-IDF-v3.3.5.
ESP_PARTITION_SUBTYPE_DATA_NVS_KEYS gives error subtype UNKNOWN_PARTITION_SUBTYPE when I try to find it. I believe it is not created.


However, in ESP-IDF-v3.3.5 this works file. I am able to create a partition with sub-type "nvs_keys" and find it.

Let me know what am I missing.

am1
 
Posts: 3
Joined: Tue May 11, 2021 4:47 pm

Re: ESP32 1.0.6 : NVS_KEYS gives unknown partition sub-type

by mikeysklar on Wed May 12, 2021 3:04 pm

Maybe a subtle change to the subtype spelling between the different releases?

Code: Select all | TOGGLE FULL SIZE
 ESP_PARTITION_SUBTYPE_DATA_NVS


(note keys not included)

mikeysklar
 
Posts: 4566
Joined: Mon Aug 01, 2016 8:10 pm

Re: ESP32 1.0.6 : NVS_KEYS gives unknown partition sub-type

by am1 on Wed May 12, 2021 10:23 pm

1. What value does having a sub-type NVS_KEYS add?

2 How to make a custom partition CSV file that appears in Arduino IDE->Tools->Partition scheme as a selectable option?
I created a customer partition CSV file in ...Arduino/hardware/espressif/esp32/tools/partitions directory but does not get displayed in the Partition scheme. Do I have to add the name of this CSV file in some settings/preference file?

am1
 
Posts: 3
Joined: Tue May 11, 2021 4:47 pm

Re: ESP32 1.0.6 : NVS_KEYS gives unknown partition sub-type

by mikeysklar on Thu May 13, 2021 2:17 pm

Have you been following the espressif documentation on using NVS keys and partitions? I believe partitions are used when trying to store keys not generated from your app to roughly paraphrase this page:

https://docs.espressif.com/projects/esp ... -partition

I'm not sure how to get partitions to be selectable from the Arduino IDE. There are some partition utilities that all appear to be command line based (idf.py, parttool.py and nvs_partition_gen.py).

https://docs.espressif.com/projects/esp ... n_gen.html

mikeysklar
 
Posts: 4566
Joined: Mon Aug 01, 2016 8:10 pm

Re: ESP32 1.0.6 : NVS_KEYS gives unknown partition sub-type

by am1 on Thu May 13, 2021 4:24 pm

We are fairly new to ESP32. Your inputs are very valuable to us.
Our goal is to automate pre-production, production and after market for firmware update management.
Thanks for the pointers and information noted.

am1
 
Posts: 3
Joined: Tue May 11, 2021 4:47 pm

Please be positive and constructive with your questions and comments.