Skip to main content

Flash firmware to devices running Microchip's 16-bit bootloader.

Project description

mcbootflash

Documentation Status Codacy Badge Codacy Badge

Mcbootflash is a tool for flashing firmware to 16-bit Microchip MCUs and DSPs 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 is 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
  Flashing firmware.hex
  Existing application detected, erasing...
  No application detected; flash erase successful
  100%  88.7 KiB |########################################| Elapsed Time: 0:00:05
  Self verify OK

Copyright

MIT License, (C) 2022 Alexander Bessman

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcbootflash-4.1.0.tar.gz (86.1 kB view details)

Uploaded Source

Built Distribution

mcbootflash-4.1.0-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file mcbootflash-4.1.0.tar.gz.

File metadata

  • Download URL: mcbootflash-4.1.0.tar.gz
  • Upload date:
  • Size: 86.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.27.1

File hashes

Hashes for mcbootflash-4.1.0.tar.gz
Algorithm Hash digest
SHA256 d0300267cc7aef772cefa5a41d2b26d2dd7f5b9b7cc693e082acf4b7fd56ee3a
MD5 073654a06c48c73be20f10e30e7c25d3
BLAKE2b-256 5d34759a88d540b1c5afc3d3677de9482b180103ec1d74a1a5922e0ceaa05689

See more details on using hashes here.

Provenance

File details

Details for the file mcbootflash-4.1.0-py3-none-any.whl.

File metadata

  • Download URL: mcbootflash-4.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.27.1

File hashes

Hashes for mcbootflash-4.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6069a36f9356a5f88c9bd00675d22bb045f170d85550ebc8bacf9687a2440bf9
MD5 337decdc361114aac2178c0fece6dcdf
BLAKE2b-256 7b26aad4e62ba4484d8d70ebf9db7ad94986812aad05d243f891c80be6f11ff5

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page