Skip to main content

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

Project description

mcbootflash

build Documentation Status Codacy Badge Codecov

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


Download files

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

Source Distribution

mcbootflash-7.0.5.tar.gz (87.9 kB view details)

Uploaded Source

Built Distribution

mcbootflash-7.0.5-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mcbootflash-7.0.5.tar.gz
Algorithm Hash digest
SHA256 e593e25aa8a60b055b2e48c827ca54765f46a3ac1e4c69aee82699b2c487d970
MD5 bc6e3d70f20500e31a5630f0e2341732
BLAKE2b-256 1bf426c87fa74bbf6c7b632c25b6d515e6a251dc3e87411bdb0c2782e2e0fcfa

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for mcbootflash-7.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 636da87008b258e829f1a55953d2530ba1132b2218ac2a286a372b7f31df9305
MD5 5c974eee3764c32570693dfba42920ed
BLAKE2b-256 b1aae5b8fcd1432753ee47f96fce5d343bcee13f8b7f88df067c602974f05cce

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