Slow processing after enabling flash encryption

newhobby
Posts: 35
Joined: Sun Aug 19, 2018 4:36 am

Slow processing after enabling flash encryption

Postby newhobby » Thu Jan 20, 2022 9:34 pm

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 2834 times
And here is after:
after.JPG
after.JPG (67.35 KiB) Viewed 2834 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?

ESP_Sprite
Posts: 9757
Joined: Thu Nov 26, 2015 4:08 am

Re: Slow processing after enabling flash encryption

Postby ESP_Sprite » Fri Jan 21, 2022 2:15 am

That is not really expected. Can you post your code? Also, what chip and ESP-IDF version are you using?

newhobby
Posts: 35
Joined: Sun Aug 19, 2018 4:36 am

Re: Slow processing after enabling flash encryption

Postby newhobby » Fri Jan 21, 2022 5:01 am

I am using chip rev3 on esp-idf 4.2
I PM'ed you the code.

Who is online

Users browsing this forum: No registered users and 395 guests