mmoskal / uf2-stm32f

UF2 bootloader for STM32F4
Other
114 stars 62 forks source link

WIP - STM32F405 examples #8

Closed ladyada closed 5 years ago

ladyada commented 5 years ago

one is 'arcady' where it has gpio + TFT defined. one is generic. both enumerate MSD, amazing!

@mmoskal is there a CLI-friendly interface to the bootloaders (e.g. like bossa for samdx1) like DFU or is it MSD only?

test artifact stm32f405 feather.zip

ShawnHymel commented 5 years ago

@ladyada From some testing, the uf2conv.py tool (https://github.com/microsoft/uf2/tree/master/utils) will automatically upload the converted binary to the attached MSD if you don't use the -c option when converting .bin to .uf2.

ladyada commented 5 years ago

okidoke - can you use that in your workflow?

ShawnHymel commented 5 years ago

I haven't gotten a converted uf2 file to work properly yet, and I just finished filming the episode today (showing dfu-util and how to attach the ST-LINK to the board). If we get uf2 working, maybe that could be a blog post?

ladyada commented 5 years ago

sure!

mmoskal commented 5 years ago

This bootloader does HF2 over WebUSB, which can be also accessed from command line. PXT command line tool does it, but there isn't a standalone version right now.

ladyada commented 5 years ago

ok can always use python to copy the file over. is there a way to 'kick' the bootloader, like the 1200baud for arduino?