Skip to main content

A utility for programming and debugging microcontrollers.

Project description

picchick

picchick is a command-line utility used for programming and debugging microcontrollers.

The function is the same as avrdude, i.e. to provide a way to flash a compiled .hex file onto a microcontroller.

The latest documentation is available in the docs/ folder, or hosted online at rex.mckinnon.ninja/picchick

Installation

Requirements

  • python >= 3.10
    • pyserial
  • Compatible serial programmer
    • Checkout the docs for a list of compatible programmers.

From PyPi

picchick can be installed using pip:

$ pip install picchick
$ picchick -h

From Source

Building the latest git version is as simple as pip installing the repo directory. The -e, --editable flag can be added so a git pull will update the picchick command automatically.

$ git clone https://github.com/Rex--/picchick.git
$ cd picchick/
$ pip install [-e] .
$ picchick -h

Instead of installing the package, picchick can also be run as a python module:

$ python -m picchick -h

A wrapper script is provided that does this, providing a bit cleaner interface:

$ chmod +x picchick.sh
$ ./picchick.sh -h

NOTE: You may have to install pyserial for the above methods.

Usage

$ picchick -h
usage: picchick [-d <mcu>] [-c <programmer>] [-r <addr> [len] | -w <addr> <word> | -f] [-e [addr]] [-v] [hexfile]
       picchick [-d <mcu>] [--map | --list-ports] [hexfile]

A utility for programming and debugging microcontrollers.

positional arguments:
  hexfile                 path to a hexfile

options:
  -c programmer           type of programmer
  -d mcu, --device mcu    device to be programmed
  --version               print version number and exit
  -h, --help              print this message and exit

actions:
  -r, --read addr [len]   read bytes from specified address
  -w, --write addr word   write word to specified address
  -f, --flash             flash hexfile onto the device
  -e, --erase [addr]      erase device or specified address
  -v, --verify            verify device memory
  --map                   display the hexfile
  --list-ports            list available serial ports

Resources

Documentation: https://rex.mckinnon.ninja/picchick

Github: https://github.com/rex--/picchick

PyPi: https://pypi.org/project/picchick/

Copying

Copyright (C) 2022-2024 Rex McKinnon
This software is released under the University of Illinois/NCSA Open Source License. Check the LICENSE file for more details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

picchick-0.4.1.tar.gz (17.9 kB view hashes)

Uploaded Source

Built Distribution

picchick-0.4.1-py3-none-any.whl (20.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page