microsoft / uf2

UF2 file format specification
Other
849 stars 164 forks source link

converting .bin file to .UF2 #57

Open pblase opened 3 years ago

pblase commented 3 years ago

Forgive my confusion, but how does this whole thing work? UF2tool isn't a PC executable, it's a c file. I can't run c on a pc to convert a .bin file. Some directions would be greatly appreciated.

tannewt commented 3 years ago

In CircuitPython we use uf2conv.py and it's documented here: https://github.com/microsoft/uf2/blob/master/utils/uf2conv.md

One example of our use is here: https://github.com/adafruit/circuitpython/blob/main/ports/atmel-samd/Makefile#L411

adityathakekar commented 1 year ago
vkottler commented 1 year ago

I updated the Python implementation in another package that's available on PyPI (see: https://github.com/microsoft/uf2/issues/42#issuecomment-1551077808), as another option.