Skip to main content

Minimal UPDI Programming Tool for tinyAVR

Description

This tool allows tinyAVR series 0, 1, and 2 microcontrollers to be programmed using a USB-to-serial converter connected in a special way to the UPDI pin (also called SerialUPDI). More information can be found here.

Supported microcontrollers (all tinyAVR with UPDI):

  • tinyAVR 0-series: ATtiny202, 204, 402, 404, 406, 804, 806, 807, 1604, 1606, 1607
  • tinyAVR 1-series: ATtiny212, 214, 412, 414, 416, 417, 814, 816, 817, 1614, 1616, 1617, 3216, 3217
  • tinyAVR 2-series: ATtiny424, 426, 427, 824, 826, 827, 1624, 1626, 1627, 3224, 3226, 3227

Preparations

If necessary, a driver for the USB-to-serial converter used must be installed.

Installation

Ensure that the prerequisites for installing Python packages are met. Then execute the following command in the command line:

pip install tinyupdi

Usage

Connect the USB-to-serial converter via USB to the PC and via the circuit described below to the UPDI pin of the microcontroller.

USB2SERIAL                       tinyAVR
+--------+                    +-----------+
|     RXD| <------------+---> |UPDI (PA0) |
|        |              |     |           |
|     TXD| ---|1kOhm|---+     |           |
|        |                    |           |
|     VDD| -----------------> |VDD        |
|     GND| -----------------> |GND        |
+--------+                    +-----------+

Alternatively, a pre-assembled SerialUPDI programmer can be used.

Usage: tinyupdi [-h] [-d DEVICE] [-e] [-f FLASH] [-fs [FUSES [FUSES ...]]] [-t TRIM] [--list]

Optional arguments:
  -h, --help                show help message and exit
  -d, --device              set target device (if not set, it will be auto-detected)
  -e, --erase               perform a chip erase (implied with --flash)
  -f FLASH, --flash FLASH   BIN file to flash
  -fs [FUSES [FUSES ...]], --fuses [FUSES [FUSES ...]]
                            fuses to set (syntax: fuse_nr:0xvalue, fuse_nr 0 - 10)
  -t TRIM, --trim TRIM      configure oscillator for given frequency (set fuse 2)
  --list                    list supported devices
Example:
tinyupdi -f firmware.bin -fs 6:0x04 7:0x00 8:0x00 -t 8000000

Without action arguments, tinyupdi shows the device and its fuses.

A locked device is only unlocked (by a chip erase) when -e or -f is given. Changing fuse 5 (SYSCFG0) can disable the UPDI pin; the device can then only be programmed with a high-voltage programmer.

Metadata

Release files for tinyupdi 1.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tinyupdi 1.7.0
File Size Uploaded Provenance Actions
tinyupdi-1.7.0.tar.gz 12.0 kB Without provenance Details for tinyupdi-1.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tinyupdi 1.7.0
File Interpreter ABI Platform Actions
tinyupdi-1.7.0-py3-none-any.whl Python 3 none any Details for tinyupdi-1.7.0-py3-none-any.whl

Total release size: 22.6 kB

Release files / tinyupdi-1.7.0.tar.gz

Download URL tinyupdi-1.7.0.tar.gz
Size 12.0 kB
Tags Source
SHA-256 checksum
How to use checksums
af21e05ad253f5cccd9ea409618f8750b219459655af4e5f3fd2165d24fa3027
BLAKE2b-256 checksum
How to use checksums
3d413c65be35ae8f5bab75776873a522b1f9a8f98c3fd716aecf379b21057b7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / tinyupdi-1.7.0-py3-none-any.whl

Download URL tinyupdi-1.7.0-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7db8b5cdc50b02eea0dddd68f313f217c5e357e59dd06210a7bb615d188b2436
BLAKE2b-256 checksum
How to use checksums
77dfe815ba6d0f126e45b9dedf91d4267ac1561382707e72dbdd061bcd60d539
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for tinyupdi 1.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page