Skip to content

Latest commit

 

History

History
46 lines (25 loc) · 2.04 KB

README.md

File metadata and controls

46 lines (25 loc) · 2.04 KB

mpcanflash

This is a fork of the mphidflash utility adapted to use with CAN Bootloader. There are no functional but technical changes only.

It is assumed that target PIC18FXXK80 MCU has pre-installed CAN Bootloader firmware and works as a CAN-bus node.

To download a new program to your MCU, you must connect your PC to CAN bus with USBtin, CAN232 or CANUSB device. And even ELM327SLCAN.

Building and Installing

To build mpcanflash for Windows, you can use mingw32 compiler. In the Windows commmand line window type:

mingw32-make

This will create a mpcanflash.exe in the bin sub-directory, which can be called from the Windows commmand line. You should copy this file somewhere on your executable path.

Usage

For a description of all available options type: mpcanflash -h

For comprehensive information about the device operation read carefully 'Device - Boot Loader - HID' chapter in 'help_mla_usb' document from Microchip Libraries for Applications collection.

Examples

First you can try to download some piece of firmware for test purposes, without signing. This allows MCU firmware to stay in boot mode and return some information.
For example, download test1.hex or test2.hex as shown below.

After typing 'g' command in Termite window you get response:


or

Later you can download real working firmware, sign it ...

... and watch that it works.