Hello, we have few remote devices that were updating fine for some time now.
recently when we try to update them we get an error "esp_https_ota: esp_ota_begin failed (ESP_ERR_OTA_PARTITION_CONFLICT)".
Our partition table looks like that
```
# Espressif ESP32 Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x4000,
otadata, data, ota, 0xd000, 0x2000
phy_init, data, phy, 0xf000, 0x1000,
factory, app, factory, 0x10000, 0x180000,
ota_0, app, ota_0, , 0x180000,
storage, data, spiffs, , 0xF0000,
```
I think we need to add ota_1 partition, but this has been working for long time with no problems, why did it stop updating and is there a way to fix this remotely?
Updating remote device failed
Re: Updating remote device failed
1) you could update before because you have 1 ota partition, and initial flashing was on factory partition,
2) update options:
factory => ota0 - GOOD
factory => ota1 - GOOD
ota0 => ota1 - GOOD
ota1 => ota0 - GOOD
ota0 => ota0 - WRONG
ota1 => ota1 - WRONG
ota0/1 => factory - WRONG
3) no, you cant fix it remotely
2) update options:
factory => ota0 - GOOD
factory => ota1 - GOOD
ota0 => ota1 - GOOD
ota1 => ota0 - GOOD
ota0 => ota0 - WRONG
ota1 => ota1 - WRONG
ota0/1 => factory - WRONG
3) no, you cant fix it remotely
-
- Posts: 6
- Joined: Wed Apr 04, 2018 1:44 am
Re: Updating remote device failed
But we were able to update several times before not only once, we more than one update and it gets the update.
Re: Updating remote device failed
It was possible only in one case. When ota update was performing write to partition. OTA update api does not allow to write to factory partition or the same partition you are running app from.
This error show you are using API now, so like i said earlier, you cant perform OTA update this way with partition table you pasted.
This error show you are using API now, so like i said earlier, you cant perform OTA update this way with partition table you pasted.
mohamed.elsabagh wrote: recently when we try to update them we get an error "esp_https_ota: esp_ota_begin failed (ESP_ERR_OTA_PARTITION_CONFLICT)".
-
- Posts: 6
- Joined: Wed Apr 04, 2018 1:44 am
Re: Updating remote device failed
ok thanks for your help
Who is online
Users browsing this forum: MicroController, snutw_ and 136 guests