Search found 39 matches

by plusorc
Wed Jan 29, 2020 1:02 am
Forum: ESP-IDF
Topic: Flash Encryption & Pre Generated Key , must manually burn efuses ?
Replies: 4
Views: 3921

Flash Encryption & Pre Generated Key , must manually burn efuses ?

Hello Let's say I have this scenario -Firmware is in plainText -No Flash Encryption Enabled -No keys , efuses burned .. chip is brand new Now .. I -Generate a Flash Encryption Key -Burn it to efuse -didn't burn any efuses manually (no encrypt_cnt , cnf ..etc ) -Now I open menuconfig , enable flash e...
by plusorc
Tue Jan 14, 2020 2:38 pm
Forum: ESP-IDF
Topic: Extra NVS Partition with Flash Encryption , Can't Init the partition
Replies: 4
Views: 4353

Re: Extra NVS Partition with Flash Encryption , Can't Init the partition

Thank you so much You're a life saver my friend .. thank you . I have one more question .. what is the proper workflow for this ? right now .. I have a cmake script that writes to the flash during the Build process ! , to escape the encrypt-flash process and flash as a plain text , so .. Ignoring th...
by plusorc
Tue Jan 14, 2020 2:23 am
Forum: ESP-IDF
Topic: Extra NVS Partition with Flash Encryption , Can't Init the partition
Replies: 4
Views: 4353

Re: Extra NVS Partition with Flash Encryption , Can't Init the partition

I looked again at this subject , and I figured out what should be done create the Key partition and NVS partition , find them in the software and then access them . but in the Test Case (the link above) , the keys are in a bin format that gets combined with the firmware itself and then read and writ...
by plusorc
Sun Jan 12, 2020 12:16 am
Forum: ESP-IDF
Topic: Extra NVS Partition with Flash Encryption , Can't Init the partition
Replies: 4
Views: 4353

Extra NVS Partition with Flash Encryption , Can't Init the partition

Hello I'm totally confused about how to manage an extra NVS partition . As far as I understand the documentation , THE NVS partition (the main one) is not encrypted , So I initialize it with nvs_flash_init(); // only for the main NVS even if Flash encryption is enabled Now my other NVS partition is ...
by plusorc
Wed Dec 04, 2019 3:24 pm
Forum: ESP-IDF
Topic: (resolved) problem with esptool.py
Replies: 10
Views: 17417

Re: problem with esptool.py

@mzimmers Can you test this ? Put the full address of the Bin file you're flashing .. not the IDF environment I recently has a similar issue and it was esptool needing the full path of the Bin file @ESP_Angus With all due respect , I found the IDF Command in windows is very inconvenient I wish ther...
by plusorc
Wed Dec 04, 2019 1:30 pm
Forum: ESP-IDF
Topic: How to include a Custom Bin in the Flash ?
Replies: 0
Views: 1961

How to include a Custom Bin in the Flash ?

Hello I made a Custom NVS partition to include some sensitive data and used cmake to automate the process. Things are working with some defects . for example .. If I execute idf.py flash monitor All is done and the partition is built and flashed but the problem is if I execute idf.py menuconfig the ...
by plusorc
Fri Nov 29, 2019 1:26 pm
Forum: ESP-IDF
Topic: Store Certificates in encrypted partition , how ?
Replies: 5
Views: 6300

Re: Store Certificates in encrypted partition , how ?

Thanks for pointing that out I'm not sure how to work with offsets in that case My partition table has no offsets (only partition sizes) in anticipation for the bootloader expansion after enabling secure boot and flash encryption. I'm looking for a similar way like spiffs because it will save me the...
by plusorc
Thu Nov 28, 2019 2:00 am
Forum: ESP-IDF
Topic: Store Certificates in encrypted partition , how ?
Replies: 5
Views: 6300

Re: Store Certificates in encrypted partition , how ?

jcsbanks wrote: NVS as blob to avoid string limit. There is an Espressif tool to make NVS partition data.
Thank you for the suggestion , But this will require the 2 stage flashing as well
by plusorc
Wed Nov 27, 2019 2:52 am
Forum: ESP-IDF
Topic: Store Certificates in encrypted partition , how ?
Replies: 5
Views: 6300

Store Certificates in encrypted partition , how ?

Hello I always used SPIFFS , they are great for storage .. they have a way to upload while building and they are super easy to work with . The only down side now is it can't be encrypted , So I look for NVS .. I found lots of posts here about sector size and each file shouldn't exceed 2KB ?? Some Ce...