esp32 Update from spiffs

Swagger
Posts: 28
Joined: Tue May 19, 2020 3:06 am

esp32 Update from spiffs

Postby Swagger » Fri Jun 12, 2020 5:36 am

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
...........................................................................................................................................

Swagger
Posts: 28
Joined: Tue May 19, 2020 3:06 am

Re: esp32 Update from spiffs

Postby Swagger » Sun Jun 14, 2020 7:44 am

any idea? iam really stuck here.

ESP_Sprite
Posts: 9709
Joined: Thu Nov 26, 2015 4:08 am

Re: esp32 Update from spiffs

Postby ESP_Sprite » Sun Jun 14, 2020 8:15 am

Why are your OTA partitions only 32K? No way your app fits in that.

Swagger
Posts: 28
Joined: Tue May 19, 2020 3:06 am

Re: esp32 Update from spiffs

Postby Swagger » Sun Jun 14, 2020 8:49 am

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.

Swagger
Posts: 28
Joined: Tue May 19, 2020 3:06 am

Re: esp32 Update from spiffs

Postby Swagger » Mon Jun 15, 2020 2:38 am

ESP_Sprite wrote:
Sun Jun 14, 2020 8:15 am
Why are your OTA partitions only 32K? No way your app fits in that.
It would be really appreciated if you could explain a little more in detail. I am a bit confused here.
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.

ESP_Sprite
Posts: 9709
Joined: Thu Nov 26, 2015 4:08 am

Re: esp32 Update from spiffs

Postby ESP_Sprite » Mon Jun 15, 2020 10:10 am

How much flash does your module have?

Swagger
Posts: 28
Joined: Tue May 19, 2020 3:06 am

Re: esp32 Update from spiffs

Postby Swagger » Mon Jun 15, 2020 10:38 am

ESP_Sprite wrote:
Mon Jun 15, 2020 10:10 am
How much flash does your module have?
Hi, Total 4 MB

Swagger
Posts: 28
Joined: Tue May 19, 2020 3:06 am

Re: esp32 Update from spiffs

Postby Swagger » Tue Jun 16, 2020 8:32 am

Is this partition table configuration is causing the problem? or is it something else?

kubera
Posts: 23
Joined: Wed May 20, 2020 10:21 am

Re: esp32 Update from spiffs

Postby kubera » Tue Jun 16, 2020 11:17 am

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?

ESP_Sprite
Posts: 9709
Joined: Thu Nov 26, 2015 4:08 am

Re: esp32 Update from spiffs

Postby ESP_Sprite » Tue Jun 16, 2020 2:10 pm

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 44 guests