ESP32 1.0.6 : NVS_KEYS gives unknown partition sub-type

This is a special forum devoted to educators using Adafruit and Arduino products for teaching.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
am1
 
Posts: 3
Joined: Tue May 11, 2021 4:47 pm

ESP32 1.0.6 : NVS_KEYS gives unknown partition sub-type

Post by am1 »

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.

User avatar
mikeysklar
 
Posts: 14194
Joined: Mon Aug 01, 2016 8:10 pm

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

Post by mikeysklar »

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

Code: Select all

 ESP_PARTITION_SUBTYPE_DATA_NVS
(note keys not included)

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

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

Post by am1 »

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?

User avatar
mikeysklar
 
Posts: 14194
Joined: Mon Aug 01, 2016 8:10 pm

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

Post by mikeysklar »

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

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

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

Post by am1 »

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.

Locked
Please be positive and constructive with your questions and comments.

Return to “For Educators”