qnx425 / mpcanflash

Command-line tool for downloading new firmware to the PIC18FXXK80 family microcontrollers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Command-line tool for downloading new firmware to the PIC18FXXK80 family microcontrollers

License:MIT License


Languages

Language:C 98.1%Language:Makefile 1.0%Language:TXL 0.8%