openvehicles/Open-Vehicle-Monitoring-System-3

Provide ability to select destination OTA when flashing from file

Closed this issue · 4 comments

When I am writing and testing code, I prefer to flash the new code to OTA_1 in case I have a problem after rebooting.
I can then reset back to OTA_0 from the terminal if the module is locked up.
Is it possible to add a destination OTA (Auto/OTA_0/OTA_1) on the "Firmware setup & update" page when flashing from a file.

markwj commented

Yes, I have noticed that we were gradually creeping to the 4MB file size. Less than 12 months left in my calculation. Probably a good time to get rid of the factory partition if that’s possible. Perhaps new firmware could go to OTA_1 with OTA_0 on a known stable build. Similar to the factory now I guess. As for my original question, would it be possible to have a destination selection for flashing from a file or would you prefer to concentrate on fixing the 4MB flash limit?

markwj commented

Yes. Of course you can’t flash the running partition. Silly me.