You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
python3 uf2conv.py flash.bin -o NEW.UF2 -> create new firmware
To reflash firmware: drag your new UF2 file back into the drive and it should automatically reboot
Compiling
clang -O2 -nostdlib -mthumb --target=armv6-none-eabi music.c -> compile to elf
If you are on MacOS: use homebrew to install a full clang build (brew install llvm) as lld isn't a thing on the default clang for some fucking reason
llvm-objcopy --dump-section .text=target.bin a.out -> dump text section (should just be _start) to bin
Usage
Open target.bin and flash.bin in a hex editor
Overwrite post-initialization main function in flash.bin with target.bin contents (file offset 0x1E8) with your favorite hex editor of choice (make sure you overwrite bytes, not insert new ones)