Flash encryption size limitation

daniSi
Posts: 47
Joined: Thu Dec 23, 2021 9:43 am

Flash encryption size limitation

Postby daniSi » Wed Mar 16, 2022 3:27 pm

Dear,

In the documentation its written that if flash encryption is enabled the binary after encryption is stored to the IRAM. I couldn't find further details if the whole binary is stored or this is performed somehow partially. Therefore, I would ask if the encryption is enabled the binary size is limited to the IRAM size?
Thank you

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Flash encryption size limitation

Postby WiFive » Wed Mar 16, 2022 4:08 pm

No, where is that written?

daniSi
Posts: 47
Joined: Thu Dec 23, 2021 9:43 am

Re: Flash encryption size limitation

Postby daniSi » Wed Mar 16, 2022 5:14 pm

I found this here https://docs.espressif.com/projects/esp ... ption.html
The device is then rebooted to start executing the encrypted image. The firmware bootloader calls the flash decryption block to decrypt the flash contents and then loads the decrypted contents into IRAM.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Flash encryption size limitation

Postby WiFive » Wed Mar 16, 2022 7:12 pm

Ok I see how it is potentially confusing but the cache also works with flash encryption so there is no additional restriction.

daniSi
Posts: 47
Joined: Thu Dec 23, 2021 9:43 am

Re: Flash encryption size limitation

Postby daniSi » Thu Mar 17, 2022 10:47 am

Thank you for the answer. I would just ask if the encryption somehow influences on the execution of the program while running or the speed remains the same?

krzywy1607
Posts: 1
Joined: Sun Apr 02, 2023 6:49 pm

Re: Flash encryption size limitation

Postby krzywy1607 » Sun Apr 02, 2023 6:52 pm

daniSi wrote:
Thu Mar 17, 2022 10:47 am
Thank you for the answer. I would just ask if the encryption somehow influences on the execution of the program while running or the speed remains the same?
Up. I have the same question.

daniSi
Posts: 47
Joined: Thu Dec 23, 2021 9:43 am

Re: Flash encryption size limitation

Postby daniSi » Tue Apr 04, 2023 7:34 am

krzywy1607 wrote:
Sun Apr 02, 2023 6:52 pm
daniSi wrote:
Thu Mar 17, 2022 10:47 am
Thank you for the answer. I would just ask if the encryption somehow influences on the execution of the program while running or the speed remains the same?
Up. I have the same question.
Until now we have not experienced any difference and we run a lot of peripherals and wifi.

Who is online

Users browsing this forum: Bing [Bot] and 59 guests