-
Notifications
You must be signed in to change notification settings - Fork 2
Automatically exported from code.google.com/p/mphidflash
License
EmbeddedMan/mphidflash
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
'mphidflash' is a simple command-line tool for communicating with Microchips USB HID-Bootloader and downloading new firmware. mphidflash supports Linux, Mac OS X (Leopard and later), and Windows. The 'mphidflash' project is hosted on http://code.google.com/p/mphidflash/ Building and Installing ======================= Linux ----- For Linux, you'll need the 'libhid' development library (and associated dependencies) installed, which can be handled by most package managers or from the command line: sudo apt-get install libhid-dev Assuming you're reading this as the README.txt alongside the source code, to compile mphidflash for a 32 or 64 bit x86 system, in the Terminal window type: make mphidflash32 or make mphidflash64 To compile for arm, run make mphidflasharm Then install with the command: sudo make install32 or sudo make install64 This will copy the appropriate executable to /usr/local/bin/mphidflash so you don't need to specify a complete path to the program each time. Mac OS X -------- To build mphidflash for Mac, you'll need to have Xcode (Apple's developer tools) already installed. The IDE portion is not used here, just the command line interface. Assuming you're reading this as the README.txt alongside the source code, to compile mphidflash for a 32 or 64 bit system, in the Terminal window type: make mphidflash32 or make mphidflash64 Then install with the command: sudo make install32 or sudo make install64 This will copy the appropriate executable to /usr/local/bin/mphidflash so you don't need to specify a complete path to the program each time. Windows ------- To build mphidflash for Windows, you can use mingw32 (cross) compiler. For cross compiling on Linux, you'll need the 'mingw32' toolchain (and associated dependencies) installed, which can be handled by most package mangager or from the command line: sudo apt-get install mingw32 Assuming you're reading this as the README.txt alongside the source code, to compile mphidflash, in the Terminal window type: make -f Makefile.win This will create a .exe in the binaries sub-directory, which can be called from the Windows commmand line - e.g. 'mphidflash-1.6-win-32.exe'. You should copy this file somewhere on your executable path and rename it to 'mphidflash.exe'. Usage ===== To upload a new program to your PIC, it must be connected to your computer and set into bootloader mode. mphidflash can then be used with the following options: -help Display help screen (alternately: -?) -write <file> Upload given file to PIC -reset Reset PIC -noverify Skip verification step -erase Erase PIC memory -vendor <hex> Use given USB vendor id instead of default id -product <hex> Use given USB product id instead of default id Note that you likley will need to use 'sudo' with mphidflahs on Linux. Example: To upload the program test.hex to the PIC and to reset the PIC thereafter the following command line can be used: mphidflash -write test.hex -reset Or for Linux: sudo mphidflash -write test.hex -reset
About
Automatically exported from code.google.com/p/mphidflash
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published