I have a Factory and two OTA partitions.
When I upload from PIO via VSCode, it always uploads to the Factory partition.
It doesn’t however set the active partition to Factory. So if the bootloader is already pointing at an OTA partition (after prevously updating the firmware via OTA) then on reboot it just boots back to the OTA partition and not the new Factory partition…
Is there a way to either tell PIO to upload the current active partition, or to have it upload to Factory but to reset the active partition to Factory from OTA?
I’d like to do this without doing a full erase as I’ve got data in other partitions which I want to keep between flashings.
Thanks