(over the air) firmware update second time onward.

snahmad75
Posts: 263
Joined: Wed Jan 24, 2018 6:32 pm

(over the air) firmware update second time onward.

Postby snahmad75 » Mon Apr 23, 2018 3:00 pm

Hi,

I need to update firmware overlay.

This example (https://github.com/espressif/esp-idf/tr ... system/ota) works first time to update firmware

but for second time onward I need to fo make erase_flash flash. How can I do do this programmatically in C++/C after OTA is successful so it works every time.

Thanks,
Naeem

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

Re: (over the air) firmware update second time onward.

Postby chegewara » Mon Apr 23, 2018 3:21 pm


User avatar
fly135
Posts: 392
Joined: Wed Jan 03, 2018 8:33 pm
Location: Orlando, FL

Re: (over the air) firmware update second time onward.

Postby fly135 » Mon Apr 23, 2018 3:21 pm

I just did this based on the example in the SDK and it works fine repeatedly. Do you have two OTA partitions? I burn my code to the factory partition. Then every OTA update bounces back and forth between the two OTA partitions. The factory is unused after that.

I have a thread in the general discussion where I was having issues that were mainly because I didn't pay enough attention to the partition table defined in the example.

John

snahmad75
Posts: 263
Joined: Wed Jan 24, 2018 6:32 pm

Re: (over the air) firmware update second time onward.

Postby snahmad75 » Mon Apr 23, 2018 8:58 pm

Hi John,

Thanks, I will try out in few days.

Thanks,
Naeem

Who is online

Users browsing this forum: kostbill, YaCy [Bot] and 6 guests