Minimal UPDI Programming Tool for tinyAVR
Project description
tinyUPDI - 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
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
tinyupdi-1.5.0.tar.gz
(12.2 kB
view details)
Built Distribution
tinyupdi-1.5.0-py3-none-any.whl
(11.1 kB
view details)
File details
Details for the file tinyupdi-1.5.0.tar.gz
.
File metadata
- Download URL: tinyupdi-1.5.0.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c457bdd49167ceb8222d86b444ecc5751fedea4c2db8806e886b8ff6bc694829 |
|
MD5 | 2346493148fda5afa0060204de3ffae2 |
|
BLAKE2b-256 | 1d6c8be77c87f58a8ddb38f3044c19ddb1f061e64a3796c6d40619e0c7df987d |
File details
Details for the file tinyupdi-1.5.0-py3-none-any.whl
.
File metadata
- Download URL: tinyupdi-1.5.0-py3-none-any.whl
- Upload date:
- Size: 11.1 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 | 638fd4394c0d0670e7685550d3a507f4669092c300cfe17cdbd7c6aab92bb036 |
|
MD5 | 4fec140cba7093cc19fcd83f7cd5ad31 |
|
BLAKE2b-256 | 29bd85e316c319737e26c4d0f6703a06612bce9e8009cb2d7419af6fb6daa5de |