Flash firmware to devices running Microchip's 16-bit bootloader.
Project description
mcbootflash
Mcbootflash is a tool for flashing firmware to 16-bit Microchip MCUs and DSCs from the PIC24 and dsPIC33 families of devices, which are running a bootloader generated by the MPLAB Code Configurator tool.
Microchip provides an official GUI tool for this purpose, called the Unified Bootloader Host Application. Mcbootflash is intended to be a drop-in replacement, with some differences:
- No GUI
- Free and open source
- Written in Python instead of Java
Additionally, mcbootflash can be used as a library by applications which want to implement firmware flashing as part of a larger suite of features. See the documentation for details.
Installation
pip install mcbootflash
Usage
Once installed, mcbootflash can be run from the command line:
$ mcbootflash --port=/dev/ttyUSB0 --baudrate=460800 firmware.hex
Connecting to bootloader...
Connected
Existing application detected, erasing...
No application detected; flash erase successful
Flashing firmware.hex
100% 88.7 KiB |########################################| Elapsed Time: 0:00:05
Self verify OK
Copyright
MIT License, (C) 2022-2023 Alexander Bessman
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mcbootflash-6.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 901dcc86844dc047d14f63306fa93b708f7515a9f423cc92217fdd456d5102e1 |
|
MD5 | bfcdf7fa2cb0ed40af797baa1ad33931 |
|
BLAKE2b-256 | 24af4ddf8e82a5fc6225e85f5ea0b4277d8d3774d3d9a41731da06913197708c |