app-flash and ota
Posted: Sun May 22, 2022 12:28 pm
Is there a hidden option (aka "something I overlooked) to use use `app-flash` when using ota partitions?
Background: I'm using `idf.py app-flash` / `Ctl-T Ctl-A` in the serial monitor during development to speed up firmware flashing. Unfortunately, when I'm testing OTA, `app-flash` flashes to the `factory` partition, but the reboot will take place into an OTA partition. I'm aware I _could_ call `erase_otadata` to perform the next reboot from the factory partition, but I'd prefer avoiding the additional step: either a command that resets ota_data automatically, or just flashes the app into the next ota partition and updates ota_data to boot from there.
Any pointers? If this doesn't exist, would the IDF team be open for a patch?
Sorry if this is redundant: I'm having a bit of difficulty searching for this, I think both the forum and github issues don't handle '-' dashes well or, more likely, I'm an idiot.
Background: I'm using `idf.py app-flash` / `Ctl-T Ctl-A` in the serial monitor during development to speed up firmware flashing. Unfortunately, when I'm testing OTA, `app-flash` flashes to the `factory` partition, but the reboot will take place into an OTA partition. I'm aware I _could_ call `erase_otadata` to perform the next reboot from the factory partition, but I'd prefer avoiding the additional step: either a command that resets ota_data automatically, or just flashes the app into the next ota partition and updates ota_data to boot from there.
Any pointers? If this doesn't exist, would the IDF team be open for a patch?
Sorry if this is redundant: I'm having a bit of difficulty searching for this, I think both the forum and github issues don't handle '-' dashes well or, more likely, I'm an idiot.