esp-idf: OTA invalid magic byte (IDFGH-10674)

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

Hi,

I am implementing the example “advanced_https_ota_example” https://github.com/espressif/esp-idf/bl … _example.c with some particular changes.

After ota app update at new partition( 0x1010000 ), appear this error message, and ESP32-S3 boot from old partition ( 0x20000 ).

E (129) esp_image: image at 0x1010000 has invalid magic byte (nothing flashed here?)
E (137) boot: OTA app partition slot 1 is not bootable

Maybe the size of flash memory with 32MB is not supported ?!

More informations here: https://www.esp32.com/viewtopic.php?f=13&t=34682&p=117009#p117009

Thank’s.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 32 (4 by maintainers)

Commits related to this issue

Most upvoted comments

The fix on release/v5.1 branch is linked above — https://github.com/espressif/esp-idf/commit/bb7544e65aba750aad7dfd641a2b166b9e0a2ffe. This commit is not in v5.1.2 release, it will be included in v5.1.3.

The problem, i think, is flash memory size ( 32MB ).

I changed the partition table to address below 16MB and it worked.

How to make it work for addresses above 16MB too ???

Updated answer here: https://www.esp32.com/viewtopic.php?f=13&t=34682&p=117182#p117182