various fixes resolving the BOARD_NAME for the board descriptions
fix version with trailing .
improve extraction of build number
replaced lookop of the board description by import of a constant for a host pre-processed module
Add type information for machine.Pin.cpu.xx
board_stubber.py:
default to using full non minified version due to suspected bugs in minification
Switch from uname to sys.implementation as primary source of info.
Add Build distribution package step
Various fixes resolving the BOARD_NAME for the board descriptions
fix version with trailing .
add lookup of board description on host to avoid overly long delays (2m+) on the MCU reading the file from the host
add CLI using rich-click
Firmware downloader
scripts/get_firmwares.ipynb
Efficient download of firmwares from the micropython site.
Firmware Flash Helper
scripts/flash.ipynb
Add notebook to flash most MCUs in bulk
this simplifies updating a loadof different MCUs to a new firmware
Supports UF2(rp2, samd and others) , esp32 / esp32S3 and STM32
Other:
improved discovering BOARD_NAMES and descriptions from the MicroPython repository
stubber get-docstubs crashed on a missing version tag in the micropython-lib repo, now defaults to checkout master
Fixes:
This pull request fixes the issue with sys.implementation.version in MicroPython v1.22.0. The issue caused an extraneous empty node to be present in the version tuple. This pull request removes the empty node, ensuring that the version tuple is correct.
createstubs.py
board_stubber.py:
Firmware downloader
Firmware Flash Helper
scripts/flash.ipynb
Other:
Fixes:
This pull request fixes the issue with
sys.implementation.version
in MicroPython v1.22.0. The issue caused an extraneous empty node to be present in the version tuple. This pull request removes the empty node, ensuring that the version tuple is correct.related: micropython/micropython#13317