Page 1 of 1

Slow processing after enabling flash encryption

Posted: Thu Jan 20, 2022 9:34 pm
by newhobby
Hi,

I am experiencing very slow processing after I enabled flash encryption.
It's very clear on my I2c communication.
Here is a screenshot before:
before.JPG
before.JPG (81.35 KiB) Viewed 2850 times
And here is after:
after.JPG
after.JPG (67.35 KiB) Viewed 2850 times
The total time for the entire I2C communication was less than 10ms before.
It is now over 30ms
It gets much worse when I need to read a couple hundred bytes.
Is it normal or there is something I can do to improve?

Re: Slow processing after enabling flash encryption

Posted: Fri Jan 21, 2022 2:15 am
by ESP_Sprite
That is not really expected. Can you post your code? Also, what chip and ESP-IDF version are you using?

Re: Slow processing after enabling flash encryption

Posted: Fri Jan 21, 2022 5:01 am
by newhobby
I am using chip rev3 on esp-idf 4.2
I PM'ed you the code.