Search found 30 matches

by GerryTitan
Mon Apr 18, 2022 2:36 am
Forum: Documentation
Topic: Flash Encryption Release Mode Description
Replies: 1
Views: 4102

Flash Encryption Release Mode Description

Hi, I have a small suggestion for the description of Flash Encryption Release Mode in the documentation: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/security/flash-encryption.html#flash-encryption-configuration It says "Release Mode - recommended for manufacturing and production to p...
by GerryTitan
Wed Apr 13, 2022 3:42 pm
Forum: ESP-IDF
Topic: Flash read error when flash encryption is enabled
Replies: 1
Views: 1882

Flash read error when flash encryption is enabled

Hi, I am trying to understand how the flash encryption procedure works. I am using ESP-IDF version 4.4, and I have an ESP-WROOM-32 development board. After I enabled flash encryption (development mode) in the menuconfig and disabled NVS encryption (and increased the partition table offset to 0x10000...
by GerryTitan
Mon Mar 28, 2022 5:33 pm
Forum: Hardware
Topic: Question about UART Bootloader
Replies: 2
Views: 1971

Re: Question about UART Bootloader

Okay, thanks.
by GerryTitan
Fri Mar 25, 2022 1:07 am
Forum: Hardware
Topic: Question about UART Bootloader
Replies: 2
Views: 1971

Question about UART Bootloader

What is the difference between the ESP32's "UART bootloader" and the serial bootloader (download mode)? I assume the UART bootloader is not referring to the software bootloader that loads the partition table and app image. I see that the eFuses DISABLE_DL_ENCRYPT and DISABLE_DL_DECRYPT refer to a UA...
by GerryTitan
Wed Apr 22, 2020 2:38 pm
Forum: ESP-IDF
Topic: Enable security settings via OTA
Replies: 1
Views: 2901

Enable security settings via OTA

Hello,

I was wondering if it was possible to enable the flash encryption and secure boot features on the ESP32 via an OTA update?

Thanks.
by GerryTitan
Thu Feb 13, 2020 2:46 pm
Forum: ESP-IDF
Topic: [Resolved] Writing to flash is faster when flash encryption is enabled??
Replies: 9
Views: 11151

Re: Writing to flash is faster when flash encryption is enabled??

Here is the new code. I generated two data partitions, one encrypted and the other plaintext. I made sure not to measure the erase time, as you can see below. Encrypted writes took 0.34 seconds, plaintext writes took 1.17 seconds. I also tried this with a 512-byte payload. In that case, encrypted wr...
by GerryTitan
Wed Feb 12, 2020 2:10 pm
Forum: ESP-IDF
Topic: [Resolved] Writing to flash is faster when flash encryption is enabled??
Replies: 9
Views: 11151

Re: Writing to flash is faster when flash encryption is enabled??

Okay, after making the changes you suggest, now the non-encrypted chip runs in 49 seconds, while the encrypted chip runs in 43 seconds. Certainly less of a discrepancy than before, but it still doesn't explain why flash encrypted writes are faster. For the record, both chips are the ESP32-WROOM-32 a...
by GerryTitan
Tue Feb 11, 2020 3:57 pm
Forum: ESP-IDF
Topic: [Resolved] Writing to flash is faster when flash encryption is enabled??
Replies: 9
Views: 11151

Re: Writing to flash is faster when flash encryption is enabled??

Can you try checking the error codes returned from esp_partition_erase_range and esp_partition_write? Does the operation actually succeed? Seems the erase operation was failing before. I moved it to outside the for loop and had it erase the whole partition. Now both the erase and write operations r...
by GerryTitan
Tue Feb 11, 2020 1:52 pm
Forum: ESP-IDF
Topic: [Resolved] Writing to flash is faster when flash encryption is enabled??
Replies: 9
Views: 11151

[Resolved] Writing to flash is faster when flash encryption is enabled??

Hi all, I am trying to run some benchmarks on the ESP32 to see how flash encryption affects performance. I am using esp_partition_write to write to an OTA partition, which, to my knowledge, will transparently encrypt the contents of write buffer when flash encryption is enabled. Based on this post ,...
by GerryTitan
Sat Feb 08, 2020 1:30 am
Forum: Hardware
Topic: ESP32 with ATECC608A
Replies: 9
Views: 24319

Re: ESP32 with ATECC608A

Thanks for the response. I have actually succeeded in pairing with the ECC608 since my initial post. :)