ElTangas / jtag2updi

UPDI programmer software for Arduino (targets Tiny AVR-0/1/2, Mega AVR-0 and AVR-DA/DB MCUs)
MIT License
329 stars 90 forks source link

Added ATTiny3224 and platformio init, builts, not tested #65

Closed ieb closed 2 years ago

ieb commented 2 years ago

This adds support to build the programmer for an ATTiny3224 using the same settings as the ATTiny 0 1 settings. The avrdude settings are copied and checked against the datasheet with the signatures. Have not changed or looked at the pin assignments yet. Have not built a board or tested for real, hence draft. Added platformio.ini for convenience.

Is there anything more you can see I would need to do to the code to make this work ?

(why am I thinking of using a ATTiny3224? they are currently available at pre-pandemic prices and are shipping)

Build output


Processing attiny3226 (platform: atmelmegaavr; board: attiny3226; framework: arduino)
--------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelmegaavr/attiny3226.html
PLATFORM: Atmel megaAVR (1.6.0) > ATtiny3226
HARDWARE: ATTINY3226 16MHz, 3KB RAM, 32KB Flash
PACKAGES: 
 - framework-arduino-megaavr-megatinycore @ 2.5.11 
 - toolchain-atmelavr @ 3.70300.220127 (7.3.0)
Converting jtag2updi.ino
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 15 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Compiling .pio/build/attiny3226/src/jtag2updi.ino.cpp.o
Linking .pio/build/attiny3226/firmware.elf
Checking size .pio/build/attiny3226/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [==        ]  23.3% (used 715 bytes from 3072 bytes)
Flash: [=         ]  12.4% (used 4047 bytes from 32768 bytes)
================================================= [SUCCESS] Took 4.07 seconds =================================================
ieb commented 2 years ago

avrdude.conf tested ok (Uno -> 3224), although a 3224 (14pins) sourced from Farnell (ie genuine) reports with the chip ID of a 3227 (24pins). Will prototype a pcb to see if a 3224 works as the programmer.

ieb commented 2 years ago

Works fine, but have decided not to build a programmer based on a Attiny3224.