MobiFlight-Connector
MobiFlight-Connector copied to clipboard
Proof of concept flashing Picos via copy to mounted USB drive.
This is just a proof of concept illustrating the possibility of flashing Picos directly from MobiFlight by copying the firmware over with a simple file copy to the removable disk.
It is based on the approach used by PlatformIO to copy to Picos without using picotool. Thanks to @elral for digging in to how PlatformIO is now doing this.
I'm amazed at how simple this was to get working. The code to force a COM reset is already there for Arduinos and gets reused as-is. Adding a new block to the board config file with USB flash settings is the trigger to run the new code flow. The new code is straightforward as well.
I still can't believe this actually works and took me less than an hour to write!
Before this is ready for prime time there's some testing that has to be done:
- Verify Arduino flashing still works.
- Verify a USB stick called
RPI-RP2
without anINFO-UF2.TXT
file present fails (as it should) - Verify flashing when more than one Pico is connected and all of them need updates
Great! I will test it also with more than one Pico.
Ralf
Closing this since it was just a proof of concept. Can always do it again when we decide we really want to support Pico.
This needs to be updated to handle the new firmware reset flow.
Will make a new PR