The goal would be to flash the firmware without needing to seperate add the firmware to the database first
command : mpflash flas -f <path>
optionally --port can be provided
example paths :
port: rp2:
- /home/jos/micropython/ports/rp2/build-RPI_PICO2_W/firmware
port: esp32
- lib/micropython/ports/esp32/build-ESP32_GENERIC-SPIRAM/micropython.bin
if no port or board are specified as parameters :
the path or url should be inspected to see id there is a clear match to one of the known ports ,
and in case of the ESP32 the path should be inspected for the esp32 hardware variant - C6 / S3 / H2 / C3 / C5 , as that is required to know the correct flash start address
If the port ( or in case of esp32, also the board) is unclear , the user shoud be prompted to select the approriate port or board
Then flashing should be done , respecting any other commandline params that are supplied
The goal would be to flash the firmware without needing to seperate add the firmware to the database first
command :
mpflash flas -f <path>optionally --port can be provided
example paths :
port: rp2:
port: esp32
if no port or board are specified as parameters :
the path or url should be inspected to see id there is a clear match to one of the known ports ,
and in case of the ESP32 the path should be inspected for the esp32 hardware variant - C6 / S3 / H2 / C3 / C5 , as that is required to know the correct flash start address
If the port ( or in case of esp32, also the board) is unclear , the user shoud be prompted to select the approriate port or board
Then flashing should be done , respecting any other commandline params that are supplied