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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file picchick-0.4.1.tar.gz.

File metadata

  • Download URL: picchick-0.4.1.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for picchick-0.4.1.tar.gz
Algorithm Hash digest
SHA256 871b4cff972ea1aaa6d11aac96018400443384fdccc813d01fd7e7c18abad2ed
MD5 d6858a987695bb6d5f36fc81a7f35b4a
BLAKE2b-256 310a4455c6d3552b890c0f9c918eb488cca10a4f4a604d62e5df5131f941bf34

See more details on using hashes here.

File details

Details for the file picchick-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: picchick-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 20.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for picchick-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 66a3361d6a4aaf5c39d00a88d82c142179f4de5e72f6a37375d5db9dc0420413
MD5 7564d81285f39e3d246efd094d639b9c
BLAKE2b-256 8f7b55a53268ecd31c48c67799b4f09a4fcad49c00867ea4a4c67af403302d6d

See more details on using hashes here.

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