Erlang escript to work with .uf2 files, initially developed to flash Raspberry Pi Pico microcontrollers with AtomVM virtual machine and Erlang applications.
$ rebar3 escriptize
$ _build/default/bin/uf2tool
Display some help message
uf2tool join -o combined.uf2 first.uf2 second.uf2...
Join two or more UF2 binaries. There is no check that UF2 files do not overlap.
uf2tool create -o new.uf2 -s start_addr image.avm
Create a new UF2 file from a given binary file, for example an .avm
generated
by packbeam.
The start address can be written in decimal or hexadecimal prefixed with 0x
or 16#
.