Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Mapping from Board-ID to firmware download URL
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Mapping from Board-ID to firmware download URL

by aivarannamaa on Fri Oct 16, 2020 12:24 pm

I'm developing a MicroPython/CircuitPython firmware flasher for Thonny IDE, which will guide the user to put the board into bootloader mode, detects the path of the mount and downloads the latest firmware onto the device.

For CircuitPython I can get the latest firmware version via GitHub API, but I don't know how to use the information in INFO_UF2.TXT to find the download URL of the firmware. For the devices I own I could create the mapping myself, but it would be nice if I could support more boards.

Is there a mapping published somewhere, which would allow me to go from "SAMD21G18A-CPlay-v0" to "https://downloads.circuitpython.org/bin/circuitplayground_express/en_US/adafruit-circuitpython-circuitplayground_express-en_US-5.3.1.uf2" (or simply "circuitplayground_express" and "adafruit-circuitpython-circuitplayground_express") ?

aivarannamaa
 
Posts: 14
Joined: Tue Jan 30, 2018 8:30 am

Re: Mapping from Board-ID to firmware download URL

by tannewt on Fri Oct 16, 2020 2:21 pm

Dan may know better than me. The closest thing I can think of is https://github.com/adafruit/circuitpyth ... aders.json which configures the bootloader box on the circuitpython.org/downloads page. We likely have info missing there though.

tannewt
 
Posts: 1837
Joined: Thu Oct 06, 2016 8:48 pm

Please be positive and constructive with your questions and comments.