AVR Serial UPDI Programmer
Program all AVR microcontrollers with UPDI (tinyAVR 0/1/2, megaAVR 0, AVR DA, DB, DD, DU, EA, EB, EC, LA and SD) with a plain USB-to-serial converter on their one-wire UPDI pin. Write BIN and HEX files, erase the chip, set the fuses and choose the 16 or 20 MHz oscillator.
Firmware
Choose Flash firmware and select the converter's serial port. The chip is erased, the firmware written and verified, and the chip restarts with it.
Clock and fuses
Selects the 16 or 20 MHz internal oscillator with its factory calibration (fuse OSCCFG; tinyAVR, megaAVR 0, AVR EA, EB and LA). The firmware divides it down to the chosen clock with the prescaler, so build it for the same frequency (F_CPU). The AVR DA, DB, DD, DU, EC and SD select their clock in the firmware.
| # | Fuse | Chip | New | Meaning |
|---|
Enter new values as hex (for example 0x04). Empty fields stay as they are. Careful with the UPDI pin setting (SYSCFG0, on the AVR LA fuse 3): if the pin is no longer UPDI, the chip can only be programmed again with a high-voltage programmer. LOCKBIT (tinyAVR, megaAVR 0) locks the chip, and PDICFG (AVR DA-S, DU, EB, EC, LA, SD) can lock UPDI for good.
Chip
Shows chip type, family, flash size, revision, serial number (tinyAVR, megaAVR 0) and fuses. Changes nothing.
Erases flash and EEPROM (unless SYSCFG0 keeps the EEPROM). Also unlocks a locked chip.
Wiring
UPDI needs only one data wire. Join TXD and RXD of the converter through a resistor and connect RXD to the UPDI pin of the chip:
Converter AVR TXD ---[ 1k ]---+ RXD ------------+---> UPDI VCC ----------------> VCC GND ----------------> GND
Any resistor from 470 Ω to 1 kΩ works, as does a Schottky diode with its cathode towards TXD. The converter and the chip must use the same voltage (3.3 V or 5 V). Boards with a built-in USB-to-UPDI circuit connect directly by USB.
Supported chips
The AVRs of megaupdi, recognized by their signature. High-voltage UPDI activation is not supported; EEPROM, user row, boot row and the lock bits of the AVR Dx/Ex/Lx/Sx are not programmed.
| Family | Chips |
|---|