-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OTA invalid magic byte (IDFGH-10674) #11903
Comments
My board use octal flash communication( i configured in this way ), so, i think that docs not apply and my memory chip is different, i think it is MX25UM25645G. And i dont have sure if the problem is the memory size ( 32MB ). |
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: |
hi @baldhead69 |
hi @ESP32DE, In my case the ota update by wifi achieves flash the image on flash memory without problems. When the ota update restart the chip, the message "OTA invalid magic byte" appear and the esp32-s3 use the old firmware to start. The problem only appears if the address of the new firmware is above 16 MB( specified in the partition file ). Thank's. |
ota_32M.txt |
Hi @mythbuster5, I applied the patch and errors appeared. esp-idf: v5.1 |
5.1? My version is based on the latest, let me check. |
5.1 is the latest stable version, no ? |
you can change the latest stable version of esp idf. I download the latest stable version, just tell me what it is, I think it's version 5.1.1 (give me the download link so we can be sure we are working with the same version of esp-idf). Thank's. |
you can change the latest stable version of esp idf. I download the latest stable version, just tell me what it is, I think it's version 5.1.1 (give me the download link so we can be sure we are working with the same version of esp-idf). Completed ? |
please reopen this issue |
Please pick this commit to your branch 6cea72b The backport on 5.1 has not been arrived. |
Work on latest stable version ? I think latest stable version is v5.1.1 |
I updated esp-idf to v5.2-dev-3775-gb4268c874a and got errors yet. @igrr, could you help me with this issue ? |
Hi, Someone can open this issue again, since this hasn't been solved yet. |
????????? |
Hi @baldhead69 5.1.2 is going to be released soon, you may wait for that. |
@mythbuster5 and @igrr and @ginkgm , I want to know why this issue was not reopened ??? Open this issue again, please. This issue is not solved yet. I have already asked to reopen this issue several times, I don't know why espressif team closed this issue Close the issue when i confirm that the solution worked. I downloaded esp-idf v5.1.2 and the SAME problem persists.
|
Reopened as apparently this is not fixed yet. |
Considering that my idea is to divide the 32 MB memory into two 16 MB partitions and that for accessing the first 16 MB only need 3 bytes of address ( 2^24 = 16.777.216 -> 0 to 16.777.215 ), 16.777.215 = 11111111 11111111 11111111 and for acessing 32 MB only need 25 bits ( 2^25 = 33.554.432 -> 0 to 33.554.431 ), 33.554.431 = 0001 11111111 11111111 11111111, means that only bit 24 changes the value when accessing the two partitions. For performance reasons, wouldn't there be a way (command on flash memory) informing the memory that which partition will be accessed in that moment, ie: 0 - 16MB or 16MB-32MB ? This way only need to send 3 bytes of address to memory instead of 4 bytes. |
Do you have some position on this ? Thanks. |
The fix on release/v5.1 branch is linked above — bb7544e. This commit is not in v5.1.2 release, it will be included in v5.1.3. |
I have version 5.1.2. How do I use this commit in version 5.1.2 ?
|
???? |
@baldhead69 Please try this:
(the 2nd commit is the fix for the compilation issue reported in #12850, linked above) |
Is esp_idf v5.1.3 already available ? |
I tried this: But not worked. |
The ota is working now. Solution here: |
Thanks for sharing the feedback, feel free to reopen. |
Answers checklist.
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 ).
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.
The text was updated successfully, but these errors were encountered: