ESP32: Slow OTA on encrypted flash
Posted: Thu Nov 09, 2023 2:25 pm
Hi, I have a problem with flash write speed on encrypted flash when using esp_ota_write().
The time needed to flash a 8kByte array increases from 25ms to ~400ms after flash encryption and secure boot v2 is enabled.
Esptool.py wite times increase from 17s to only 22s which I assume as correct (this is the write time of a 1.2M image). This implies that the bare flash write+encryption is fast but for some reason esp_ota_write() is slow.
Has anyone encountered such issue?
Thanks,
Viktor
The time needed to flash a 8kByte array increases from 25ms to ~400ms after flash encryption and secure boot v2 is enabled.
Esptool.py wite times increase from 17s to only 22s which I assume as correct (this is the write time of a 1.2M image). This implies that the bare flash write+encryption is fast but for some reason esp_ota_write() is slow.
Has anyone encountered such issue?
Thanks,
Viktor