Page 1 of 1

(over the air) firmware update second time onward.

Posted: Mon Apr 23, 2018 3:00 pm
by snahmad75
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

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

Posted: Mon Apr 23, 2018 3:21 pm
by chegewara

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

Posted: Mon Apr 23, 2018 3:21 pm
by fly135
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

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

Posted: Mon Apr 23, 2018 8:58 pm
by snahmad75
Hi John,

Thanks, I will try out in few days.

Thanks,
Naeem