Hi @distropolis.
Was it this one?:
I see there that the "tool" is based on this JavaScript program:
The script takes the path of a .bin file as its argument.
I'll provide instructions you can follow to use it.
A. Install Prerequisites
Script
First you need to download that bin2uf2.js file:
- Click the following link:
https://raw.githubusercontent.com/adafruit/uf2-samdx1/master/scripts/bin2uf2.js
The plaintext version of the script will open in your web browser. - Press the Ctrl+S keyboard shortcut.
The "Save As" dialog will open. - Save the script to a convenient location on your computer.
Node.js
If you don't already have it, you will need to install Node.js in order to run the JavaScript program. You can follow the instructions here to install it:
B. Convert .bin to UF2
- Open the sketch in Arduino IDE.
- Select Tools > Board > Adafruit SAMD Boards > Adafruit QT Py M0 (SAMD21) from the Arduino IDE menus.
- Select Sketch > Export Compiled Binary from the Arduino IDE menus.
A compilation will start. - Wait for the compilation to finish successfully.
- Select Sketch > Show Sketch Folder from the Arduino IDE menus.
The sketch folder will open in your file manager. - Open a command line terminal in the
build\adafruit.samd.adafruit_qtpy_m0subfolder of the sketch folder.
ⓘ Arduino IDE's "Export Compiled Binary" feature saves the compiled sketch binary in this folder. - Type the following command into the terminal:
(wherenode <path to bin2uf2.js> <.bin filename><path to bin2uf2.js>is the path to the location where you savedbin2uf2.jswhile following the instructions above, and<.bin filename>is the filename of the.binfile from thebuild\adafruit.samd.adafruit_qtpy_m0folder. - Press the Enter key.
The command should run successfully (you might see some deprecation warnings, but you can ignore those). After that, you will find a file named flash.uf2 in the folder.