OTA with offset

sjurgw
Posts: 3
Joined: Fri Jan 21, 2022 2:12 pm

OTA with offset

Postby sjurgw » Thu Jan 27, 2022 8:57 am

Hi

I have been working on OTA updates for an ESP32-wroom-32 chip. I have managed to successfully use esp_ota_write to perform the update.
However, the packets may arrive in an arbitrary order, so I have been looking at the esp_ota_write_with_offset function. Using this function I have not been able to perform the OTA, even when they arrive in sequential order. Does anyone have any experience in using esp_ota_write_with_offset? Do I have to perform any padding of some sort to each packet, or at the end of the image?

Link to the API: https://docs.espressif.com/projects/esp ... m/ota.html

ESP_Mahavir
Posts: 188
Joined: Wed Jan 24, 2018 6:51 am

Re: OTA with offset

Postby ESP_Mahavir » Thu Feb 03, 2022 4:04 pm

Hello,

We have some unit tests that perform OTA updates with API `esp_ota_write_with_offset()`, please refer to https://github.com/espressif/esp-idf/bl ... .c#L61-L77.

It will be good if you could share some test application that fails to perform OTA update with this API.

Thanks.

Who is online

Users browsing this forum: No registered users and 126 guests