Page 1 of 1

Esp32S3 : Is it possible to access the OTA partition where the firmware is running in order to change some bytes ?

Posted: Mon Jun 24, 2024 3:28 pm
by ThomasESP32
Good afternoon,


I would like to change some bytes of the OTA partition where my firmware is running in order to create a CRC problem.
The goal would be to detect this CRC problem using the function esp_partition_get_sha256.

Unfortunately, when I try to write some bytes of the current OTA partition using esp_flash_write (I try to change the 4 last bytes of the partition which are unused), or when I try to erase the last region of the current OTA partition using esp_flash_erase_region (The same way I try to erase the last region of the OTA partition), I get an abort() message and the chip is resetted.

However, when I do the same thing on the other OTA partition (Which is unused), the functions are called normally.

Do you have any idea please ?
The goal would be to change some bytes of the firmware in order to test my CRC check function.

Best regards,
Thank you for your help,

Thomas TRUILHE

Re: Esp32S3 : Is it possible to access the OTA partition where the firmware is running in order to change some bytes ?

Posted: Mon Jun 24, 2024 3:34 pm
by MicroController

Re: Esp32S3 : Is it possible to access the OTA partition where the firmware is running in order to change some bytes ?

Posted: Wed Jun 26, 2024 4:40 pm
by Bryght-Richard
Does it need to be during app operation? If not, you could erase 1 page of your firmware using esptool, like https://docs.espressif.com/projects/esp ... ase-region