I used OTA to flash application code. However, there is an exception during init that causes the system to reboot. It reboots, hits the exception, reboots, hits the exception....
I then rebuilt a new app without the problematic code.
OTA not longer works because of the reboots. So I hold the reset button and run make flash. When it catches the right time window the new app is flashed. However, the new app does not run. Instead the OTA app continues to run!
How does one delete the OTA app and/or force the "make flash" app to run?
Thanks
How to use delete OTA app?
Re: How to use delete OTA app?
In recent versions of esp-idf, when you run 'make flash', otadata partition responsible for selecting the app to boot is erased, in order to run the factory app. Can you check the output of 'make flash' and see which regions it writes? If it doesn't clear otadata, you may try doing 'make erase_flash' to clear entire flash contents, and then the 'make flash' again.
Re: How to use delete OTA app?
You can also erase OTADATA by...
Change the com port, offset, and size to match your setup.
John A
Code: Select all
$IDF_PATH/components/esptool_py/esptool/esptool.py --port com3 erase_region 0xd000 0x2000
John A
Who is online
Users browsing this forum: jm2935, MicroController and 118 guests