Prior to 2.x, I used a “tool” from the tools menu for building UF2 files to distribute and update devices that I have made running on QTPY SAMD21.
How do I create a UF2 file in 2.x?
Prior to 2.x, I used a “tool” from the tools menu for building UF2 files to distribute and update devices that I have made running on QTPY SAMD21.
How do I create a UF2 file in 2.x?
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.
First you need to download that bin2uf2.js
file:
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:
build\adafruit.samd.adafruit_qtpy_m0
subfolder of the sketch folder.node <path to bin2uf2.js> <.bin filename>
(where <path to bin2uf2.js>
is the path to the location where you saved bin2uf2.js
while following the instructions above, and <.bin filename>
is the filename of the .bin
file from the build\adafruit.samd.adafruit_qtpy_m0
folder.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.
Thank you so much for this. I just tested it out and it seems to work just fine.
Super clear instructions with great detail. I appreciate it.
You are welcome. I'm glad if I was able to be of assistance.
Regards, Per
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.