esp32 Update from spiffs
esp32 Update from spiffs
Hi, I am trying to update esp32 from the spiffs. I had stored a bin file in the spiffs which will be used to update the esp32.
the update is almost getting finished but ended up in a strange problem.
I (14464) OTA: esp_ota_begin succeeded
I (16664) OTA: Total Write binary data length: 11139072
E (16674) boot_comm: mismatch chip ID, expected 0, found 13115
E (16674) boot_comm: can't run on lower chip revision, expected 1, found 50
E (16684) OTA: esp_ota_end failed!
E (16684) OTA: Exiting task due to fatal error...
I am not sure how this can be resolved. any idea guys.
........................................................................................................................
attaching my partition table also. I am not sure whether this has anything to do with the problem, just providing the details.
nvs data nvs 0x4000
otadata data ota 0x2000
phy_init data phy 0x1000
factory app factory 1M
ota_0 app ota_0 0x8000
ota_1 app ota_1 0x8000
storage data spiffs 0xF0000
...........................................................................................................................................
the update is almost getting finished but ended up in a strange problem.
I (14464) OTA: esp_ota_begin succeeded
I (16664) OTA: Total Write binary data length: 11139072
E (16674) boot_comm: mismatch chip ID, expected 0, found 13115
E (16674) boot_comm: can't run on lower chip revision, expected 1, found 50
E (16684) OTA: esp_ota_end failed!
E (16684) OTA: Exiting task due to fatal error...
I am not sure how this can be resolved. any idea guys.
........................................................................................................................
attaching my partition table also. I am not sure whether this has anything to do with the problem, just providing the details.
nvs data nvs 0x4000
otadata data ota 0x2000
phy_init data phy 0x1000
factory app factory 1M
ota_0 app ota_0 0x8000
ota_1 app ota_1 0x8000
storage data spiffs 0xF0000
...........................................................................................................................................
Re: esp32 Update from spiffs
any idea? iam really stuck here.
-
- Posts: 9757
- Joined: Thu Nov 26, 2015 4:08 am
Re: esp32 Update from spiffs
Why are your OTA partitions only 32K? No way your app fits in that.
Re: esp32 Update from spiffs
It would be really appreciated if you could explain a little more in detail. I am a bit confused here.
Last edited by Swagger on Mon Jun 15, 2020 2:39 am, edited 2 times in total.
Re: esp32 Update from spiffs
It would be really appreciated if you could explain a little more in detail. I am a bit confused here.ESP_Sprite wrote: ↑Sun Jun 14, 2020 8:15 amWhy are your OTA partitions only 32K? No way your app fits in that.
I tried with the below partition also but ended with the same result.
# Name Type SubType Offset Size Flags
# Note: if you have increased the bootloader size make sure to update the offsets to avoid overlap
nvs data nvs 0x9000 0x4000
otadata data ota 0xd000 0x2000
phy_init data phy 0xf000 0x1000
factory app factory 0x10000 1M
ota_0 app ota_0 1M
ota_1 app ota_1 1M
storage data spiffs 0xF0000
Last edited by Swagger on Mon Jun 15, 2020 12:05 pm, edited 1 time in total.
-
- Posts: 9757
- Joined: Thu Nov 26, 2015 4:08 am
Re: esp32 Update from spiffs
How much flash does your module have?
Re: esp32 Update from spiffs
Hi, Total 4 MB
Re: esp32 Update from spiffs
Is this partition table configuration is causing the problem? or is it something else?
Re: esp32 Update from spiffs
I too have the same issue. I am also trying to update OTA from spiffs but encountered the same problem. not sure if it is causing due to partition table because it seems to be working fine when OTA over WiFi is being done with the same partition table. Does anybody have any idea?
-
- Posts: 9757
- Joined: Thu Nov 26, 2015 4:08 am
Re: esp32 Update from spiffs
FYI, the partition table would be *a* reason why this could not work, but given that you now corrected it and you still have the error, it's not that. Perhaps you can show the code you're using? Maybe that helps us.
Who is online
Users browsing this forum: No registered users and 198 guests