I was building firmware for a nice!nano / nRF52840 board with PlatformIO and got tired of manually converting output and hunting for the correct mounted UF2 drive each time.
I made a small post-build helper for projects using the Adafruit UF2 bootloader. It produces the UF2/DFU output after the normal PlatformIO build and can target a selected mounted bootloader volume, so the repetitive “build -> convert -> find drive -> copy file” part is scripted.
It is written around the Adafruit UF2/nRF52840 flow and includes a guide for the usual nice!nano macOS workflow. I’m sharing it because this is the kind of one-off tooling that saves time when iterating on a board.
GitHub: https://github.com/adm1nsys/Adafruit-UF2-bootloader-auto-flash
Guide: https://adm1nsys.github.io/Adafruit-UF2-bootloader-auto-flash/
I’m the author; it is free and open source.