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]

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)
Example:
tinyupdi -f firmware.bin -fs 6:0x04 7:0x00 8:0x00 -t 8000000

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.6.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.6.0
File Size Uploaded Provenance Actions
tinyupdi-1.6.0.tar.gz 13.0 kB Without provenance Details for tinyupdi-1.6.0.tar.gz

Built distribution (wheel)

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

Total release size: 24.8 kB

Release files / tinyupdi-1.6.0.tar.gz

Download URL tinyupdi-1.6.0.tar.gz
Size 13.0 kB
Tags Source
SHA-256 checksum
How to use checksums
bb5d24306e17180bc4025819bbd2e861cc1efa2a7f658f9ab6d63a6538749445
BLAKE2b-256 checksum
How to use checksums
578bcf1bba2f040c1fd16da8b5a68b14b11664e4071323e64628c29719946022
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.6.0-py3-none-any.whl

Download URL tinyupdi-1.6.0-py3-none-any.whl
Size 11.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd8de6f05e60a2b74f5fea65bf317b2999b22d9ca9d0ee17938b504f8c6a7a55
BLAKE2b-256 checksum
How to use checksums
bc8ac93ee3a9815593a9361dfdd7bbdd8a56dcfa0ef9d89661ba35a495b5463f
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.6.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