Can't change current partition running

rwel59
Posts: 97
Joined: Thu Oct 12, 2017 3:32 pm

Can't change current partition running

Postby rwel59 » Mon Jun 07, 2021 12:15 pm

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?

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

Re: Can't change current partition running

Postby chegewara » Mon Jun 07, 2021 3:10 pm

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

rwel59
Posts: 97
Joined: Thu Oct 12, 2017 3:32 pm

Re: Can't change current partition running

Postby rwel59 » Mon Jun 07, 2021 10:20 pm

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?


rwel59
Posts: 97
Joined: Thu Oct 12, 2017 3:32 pm

Re: Can't change current partition running

Postby rwel59 » Mon Jun 07, 2021 11:13 pm

thanks

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Majestic-12 [Bot] and 425 guests