Skip to content

mraardvark/pyupdi

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
August 20, 2020 22:07
October 27, 2021 22:42
November 21, 2016 13:43
November 21, 2016 13:43

pyupdi

Python UPDI driver for programming "new" tinyAVR and megaAVR devices

DEPRECATION NOTICE!

This repository is no longer maintained. Use the serialupdi feature of pymcuprog.

pyupdi functionality has been incorporated as a part of pymcuprog:

pymcuprog can be installed as a CLI, or used as a library, and new devices will be added continuously.

If you have a Microchip debugger (eg: Atmel-ICE, PICkit4) you can also use pymcuprog with AVR UPDI devices.

pyupdi

pyupdi is a Python utility for programming AVR devices with UPDI interface using a standard TTL serial port.

Connect RX and TX together with a suitable resistor and connect this node to the UPDI pin of the AVR device.

Be sure to connect a common ground, and use a TTL serial adapter running at the same voltage as the AVR device.

                        Vcc                     Vcc
                        +-+                     +-+
                         |                       |
 +---------------------+ |                       | +--------------------+
 | Serial port         +-+                       +-+  AVR device        |
 |                     |      +----------+         |                    |
 |                  TX +------+   1k     +---------+ UPDI               |
 |                     |      +----------+    |    |                    |
 |                     |                      |    |                    |
 |                  RX +----------------------+    |                    |
 |                     |                           |                    |
 |                     +--+                     +--+                    |
 +---------------------+  |                     |  +--------------------+
                         +-+                   +-+
                         GND                   GND

When running pyupdi on Raspberry pi, use GPIOs 14 and 15 for UART TX and RX. On rpi3, be sure to apply the device tree overlay to map UART0/ttyAMA0 to these pins (relocate or disable Bluetooth device). More information here: https://www.raspberrypi.org/documentation/configuration/uart.md

install

Install pyupdi.py with pip directly from GitHub:

pip install https://github.com/mraardvark/pyupdi/archive/master.zip

About

Python UPDI driver for programming "new" tinyAVR and megaAVR devices

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages