Minimal UPDI Programming Tool for tinyAVR
Project description
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.
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)
-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
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tinyupdi-1.5.1.tar.gz
.
File metadata
- Download URL: tinyupdi-1.5.1.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d216317544b04f8524de34e3ae1614764fe00026e3ebefdde42bf90432efbe6 |
|
MD5 | 53f7659d95753c01231946bedf626013 |
|
BLAKE2b-256 | 9bc07e238216ede886d259293d68ca043bff2366d590cd3976f10be40e1993c7 |
File details
Details for the file tinyupdi-1.5.1-py3-none-any.whl
.
File metadata
- Download URL: tinyupdi-1.5.1-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e3506a1885f8c311690230127466b3027ca1a8ec92d24ae7641545611e56694 |
|
MD5 | 9848b1f1541ca04d2c2d2e90b8bf87e1 |
|
BLAKE2b-256 | ece99f6d3e53743fc022138afde56d86ed8caf72e8964cd48cf4e67142f56555 |