Page 1 of 1

Can't change current partition running

Posted: Mon Jun 07, 2021 12:15 pm
by rwel59
Using both OTA and normal flashing to update code under development. Occasionally, when I flash new code, I cannot get the new code to execute without deleting one of the partitions using partition table.

Is this expected behavior? Is there a command to select current partition?

Re: Can't change current partition running

Posted: Mon Jun 07, 2021 3:10 pm
by chegewara
Yes it expected.
When you flash with UART you dont change ota_data partition, so when you got updated esp32 with OTA and current active partition is ota1 then your new code wont run.
You can fix it easy with:

Code: Select all

idf.py erase_otadata

Re: Can't change current partition running

Posted: Mon Jun 07, 2021 10:20 pm
by rwel59
If I have 2 ota partitions defined and no factory partition, does this still work.

I feel like I should know this but haven't found the right docs. Do you have a link that would describe?

Re: Can't change current partition running

Posted: Mon Jun 07, 2021 10:35 pm
by chegewara

Re: Can't change current partition running

Posted: Mon Jun 07, 2021 11:13 pm
by rwel59
thanks