Page 1 of 1

Flash encryption size limitation

Posted: Wed Mar 16, 2022 3:27 pm
by daniSi
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

Re: Flash encryption size limitation

Posted: Wed Mar 16, 2022 4:08 pm
by WiFive
No, where is that written?

Re: Flash encryption size limitation

Posted: Wed Mar 16, 2022 5:14 pm
by daniSi
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.

Re: Flash encryption size limitation

Posted: Wed Mar 16, 2022 7:12 pm
by WiFive
Ok I see how it is potentially confusing but the cache also works with flash encryption so there is no additional restriction.

Re: Flash encryption size limitation

Posted: Thu Mar 17, 2022 10:47 am
by daniSi
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?

Re: Flash encryption size limitation

Posted: Sun Apr 02, 2023 6:52 pm
by krzywy1607
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.

Re: Flash encryption size limitation

Posted: Tue Apr 04, 2023 7:34 am
by daniSi
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.