Search found 13 matches

by mpulis
Fri Mar 09, 2018 1:26 pm
Forum: General Discussion
Topic: Flash Encryption Query
Replies: 10
Views: 768

Re: Flash Encryption Query

I've received the new batch of modules and managed to run the Flash Encryption + Secure Boot operation successfully, so the issue can be closed now.

@WiFive I suspect the problem might have been some previous attempt at Flash Encryption which set off some Fuses.

Thank you for your help!
by mpulis
Fri Feb 23, 2018 1:54 pm
Forum: General Discussion
Topic: Flash Encryption Query
Replies: 10
Views: 768

Re: Flash Encryption Query

I am still able to boot up normal firmware even after burning the key. Erasing the flash and re-flashing with new firmware after disabling flash encryption allows the firmware to boot up normally, although the fuses remain burned. I'm currently waiting for new chips to arrive as I'm currently out of...
by mpulis
Thu Feb 15, 2018 9:02 am
Forum: General Discussion
Topic: Flash Encryption Query
Replies: 10
Views: 768

Re: Flash Encryption Query

So I tried the procedure on another chip. The initial state of the fuses seems correct and is as seen in Figure 1. 1.PNG After this, I set the relevant security options in the project menu for Secure Bootloader and Flash Encryption, as seen in Figure 2. 4.PNG I then burnt the pre-generated key to BL...
by mpulis
Wed Feb 14, 2018 10:35 am
Forum: General Discussion
Topic: Flash Encryption Query
Replies: 10
Views: 768

Re: Flash Encryption Query

I've changed the chip to a new one which didn't have the FLASH_CRYPT_CNT fuse as write protected. Following the same procedure, I'm still getting the error on booting up after step 4. I've noticed that the FLASH_CRYPT_CNT fuse remains as 0 after the first boot, event though if I'm understanding the ...
by mpulis
Wed Feb 14, 2018 10:23 am
Forum: General Discussion
Topic: Flash Encryption Query
Replies: 10
Views: 768

Re: Flash Encryption Query

No, I didn't manage to boot up successfully.

Looking at the eFuse summary, I've noticed that the FLASH_CRYPT_CNT fuse is write protected and set to 0. Could this have anything to do with the problem?
by mpulis
Tue Feb 13, 2018 2:32 pm
Forum: General Discussion
Topic: Flash Encryption Query
Replies: 10
Views: 768

Flash Encryption Query

Hi all, I've been trying to set up flash encryption using the following procedure: 1. Set Enable secure boot and Enable flash encryption on boot to true 2. Burn a pre-generated key to the flash-encryption eFuse block (BLK 1) 3. make 4. make flash 5. Encrypt app bin file using the same pre-generated ...
by mpulis
Fri Jan 05, 2018 2:12 pm
Forum: General Discussion
Topic: OTA updates with flash encryption
Replies: 2
Views: 277

Re: OTA updates with flash encryption

Brilliant, thanks.
by mpulis
Fri Jan 05, 2018 11:06 am
Forum: General Discussion
Topic: OTA updates with flash encryption
Replies: 2
Views: 277

OTA updates with flash encryption

Hi all, The ESP-IDF-Programming-Guide specifies that if you want to perform an OTA update on a module with flash encryption enabled, it shouldn't be a problem as long as esp_partition_write() is used. In my application I'm using esp_ota_write() during the update. Would it be correct to still use thi...
by mpulis
Fri Dec 22, 2017 9:15 am
Forum: General Discussion
Topic: Netconn memory leak issue
Replies: 2
Views: 287

Re: Netconn memory leak issue

Ah brilliant, that seems to have solved the issue! There still is a memory leak in another part of the code, which I assume is coming from the netconn_accept() function.

Thankyou very much!
by mpulis
Thu Dec 21, 2017 10:18 am
Forum: General Discussion
Topic: Netconn memory leak issue
Replies: 2
Views: 287

Netconn memory leak issue

Hi all, I'm working on a project using the ESP32 and the netconn api. While servicing incoming data on a connection, I've observed a continuous memory leak of 40 bytes on each iteration of a while loop. I've commented out most of the code in order to trace the issue until all that remained from the ...