Skip to main content

picpro a kitsrus PIC CLI programmer.

Project description

picpro a kitsrus PIC CLI programmer

This is complete rewrite of kitsrus_pic_programmer into Python 3 + bunch of fixes and features.

Tox tests

Supported kitsrus programmers

  • K128
  • K149 version A to F
  • K150 (Tested)
  • K182

Note: The programmer must have the latest firmware version, which utilizes the P18A protocol. Firmware versions using older protocols (P018, P016, P014, or earlier) are not supported.

See https://www.kitsrus.com/pic.html.

Installation

PIP (pip3 on some distros)

pip install picpro

Repository

You can also use these repositories maintained by me

Debian and derivatives

Add repository by running these commands

wget -O- https://repository.salamek.cz/deb/salamek.gpg | sudo tee /usr/share/keyrings/salamek-archive-keyring.gpg
echo "deb     [signed-by=/usr/share/keyrings/salamek-archive-keyring.gpg] https://repository.salamek.cz/deb/pub all main" | sudo tee /etc/apt/sources.list.d/salamek.cz.list

And then you can install a package picpro

apt update && apt install picpro

Archlinux

Add repository by adding this at end of file /etc/pacman.conf

[salamek]
Server = https://repository.salamek.cz/arch/pub/any
SigLevel = Optional

and then install by running

pacman -Sy picpro

Usage

Command details:
    program             Program PIC chip.
    verify              Verify PIC flash.
    dump                Dump PIC data as binary.
    erase               Erase PIC.
    chipinfo            Prints chipinfo as JSON in terminal.
    hexinfo             Prints information about hexfile.

Usage:
    picpro program -p PORT -i HEX_FILE -t PIC_TYPE [--id=PIC_ID] [--fuse=FUSE_NAME:FUSE_VALUE...] [--icsp]
    picpro verify -p PORT -i HEX_FILE -t PIC_TYPE [--icsp]
    picpro erase -p PORT -t PIC_TYPE [--icsp]
    picpro dump <mem_type> -p PORT -o HEX_FILE -t PIC_TYPE [--icsp] [--binary]
    picpro chipinfo [<PIC_TYPE>]
    picpro hexinfo <HEX_FILE> <PIC_TYPE>
    picpro (-h | --help)
    picpro (-v | --version)


Options:
    --icsp                           Enable ISCP programming.
    --fuse=FUSE_NAME:FUSE_VALUE      Set fuse value directly.
    --id=PIC_ID                      Set PIC id to be programmed in pic.
    -p PORT --port=PORT              Set serial port where programmer is connected.
    -t PIC_TYPE --pic_type=PIC_TYPE  Pic type you are programming/reading.
    -i HEX_FILE --hex_file=HEX_FILE  Hex file to flash or to read.
    -o HEX_FILE --hex_file=HEX_FILE  Hex file to write.
    --binary                         Input/Output file is in binary.
    -v --version                     Display version info

Example: Program chip

picpro program -p /dev/ttyUSB0 -i YOUR_HEX_FILE.hex -t 12F675

Example: Verify chip program

picpro verify -p /dev/ttyUSB0 -i YOUR_HEX_FILE.hex -t 12F675

Example: Dump ROM as hex file

picpro dump rom -p /dev/ttyUSB0 -o rom.hex -t 12F675

Example: Dump EEPROM as hex file

picpro dump eeprom -p /dev/ttyUSB0 -o eeprom.hex -t 12F675

Example: Dump CONFIG as hex file

picpro dump config -p /dev/ttyUSB0 -o config.hex -t 12F675

Example: Program chip via ISCP

picpro program -p /dev/ttyUSB0 -i YOUR_HEX_FILE.hex -t 12F675 --icsp

Example: Program chip and override fuses provided from HEX file

picpro program -p /dev/ttyUSB0 -i YOUR_HEX_FILE.hex -t 12F675 --fuse=FUSE_NAME:FUSE_VALUE --fuse=FUSE_NAME:FUSE_VALUE

Enable serial port access

To allow the user to access the serial ports (for some distros), run the following command:

sudo usermod -a -G dialout $USER

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

picpro-0.4.1.tar.gz (49.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

picpro-0.4.1-py3-none-any.whl (57.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: picpro-0.4.1.tar.gz
  • Upload date:
  • Size: 49.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for picpro-0.4.1.tar.gz
Algorithm Hash digest
SHA256 8ce79fc0c852260b1e735ddbb6a6e20a92cb49ecd2c5afdd15ff69ca12f89b53
MD5 63f0af02490bc0f946d5feeee3e8b689
BLAKE2b-256 7a250255e40ecbc1ef566ec17883b67b282bddb1f0f3e48fb25784b4aca7ba4b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: picpro-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 57.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for picpro-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d216a25db1ce19a2c80f986e95ee68c0139935cb56ea848b8e2b534e8343b91b
MD5 4e914cfa3a3576b37cef6dca408ac188
BLAKE2b-256 5e6648deaf7808d04bfb6142406bcefe56fb7758375395deb2e262cbb60e3d29

See more details on using hashes here.

Supported by

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