Updating remote device failed

mohamed.elsabagh
Posts: 6
Joined: Wed Apr 04, 2018 1:44 am

Updating remote device failed

Postby mohamed.elsabagh » Wed Mar 24, 2021 10:59 pm

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?

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

Re: Updating remote device failed

Postby chegewara » Thu Mar 25, 2021 12:46 am

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

mohamed.elsabagh
Posts: 6
Joined: Wed Apr 04, 2018 1:44 am

Re: Updating remote device failed

Postby mohamed.elsabagh » Thu Mar 25, 2021 1:05 am

But we were able to update several times before not only once, we more than one update and it gets the update.

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

Re: Updating remote device failed

Postby chegewara » Thu Mar 25, 2021 1:23 am

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

mohamed.elsabagh
Posts: 6
Joined: Wed Apr 04, 2018 1:44 am

Re: Updating remote device failed

Postby mohamed.elsabagh » Thu Mar 25, 2021 2:28 pm

ok thanks for your help

Who is online

Users browsing this forum: No registered users and 105 guests