- Notifications
You must be signed in to change notification settings - Fork3
Command-line tool for downloading new firmware to the PIC18FXXK80 family microcontrollers
License
qnx425/mpcanflash
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a fork of themphidflash utility adapted to use withCAN Bootloader. There are no functional but technical changes only.
It is assumed that target PIC18FXXK80 MCU has pre-installedCAN 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 withUSBtin,CAN232 orCANUSB device. And evenELM327SLCAN.
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.
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 fromMicrochip Libraries for Applications collection.
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, downloadtest1.hex ortest2.hex as shown below.
After typing 'g' command inTermite window you get response:
Later you can download real workingfirmware, sign it ...
... and watch thatit works.