-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed a bug when flashing hexfiles with USERID words.
- Loading branch information
Showing
3 changed files
with
76 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,54 @@ | ||
TODO | ||
# picchick | ||
A utility to aid in programming PIC microcontrollers | ||
|
||
|
||
## Overview | ||
|
||
`piccchick` is a commandline utility written in python that attempts to implement Microchip's ICSP Low-Voltage with just a simple AVR device. | ||
|
||
The function is the same as `avrdude`, i.e. to provide a way to flash a compiled .hex file onto a microcontroller. The typical development stack involving picchick looks like: | ||
|
||
Development (nano) > Compiling (xc8-cc) > Flashing (picchick) | ||
|
||
|
||
## Installation | ||
|
||
### Requirements | ||
- **`xc8` compiler installed to one of**: | ||
> (linux) /opt/microchip/xc8/ | ||
- **python >= 3.10** | ||
- pyserial | ||
|
||
- **Arduino flashed with programmer firmware** | ||
|
||
## Usage | ||
|
||
``` | ||
$> picchick -h | ||
usage: picchick [options] [hexfile] | ||
A utility for programming PIC microcontrollers | ||
positional arguments: | ||
hexfile path to the hexfile | ||
options: | ||
-h, --help show this help message and exit | ||
-f, --flash flash hexfile onto the device | ||
--read addr read specified address or chunk of memory | ||
--write addr word write word to specified address | ||
--erase [addr] erase device or specified address | ||
-d chipID, --device chipID | ||
device to be programmed | ||
-p port, --port port programmer serial port | ||
--baud baud serial connection baudrate | ||
--map display the hexfile | ||
--list-ports list available serial ports | ||
flag arguments: | ||
[addr]: device memory address in hexadecimal | ||
'all' all device memory areas | ||
'flash' user flash area | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters