uf2 icon indicating copy to clipboard operation
uf2 copied to clipboard

converting .bin file to .UF2

Open pblase opened this issue 4 years ago • 3 comments

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.

pblase avatar Jul 17 '21 19:07 pblase

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

tannewt avatar Jul 20 '21 00:07 tannewt

  • I too was facing this issue. Documenting the journey.
  • Check this Arduino repo works great.
  • Uses Make tool UF2-converter
  • Circuit Python is also a great way to implement.
  • Check this guide from Adafruit Circuit python

adityathakekar avatar Nov 29 '22 19:11 adityathakekar

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.

vkottler avatar May 17 '23 09:05 vkottler