This project will show you how to get started with a tinyAVR-2 processor, specifically an AtTiny3226. We will be using basic tools:
- avrgcc compiler
- make utility
- avrdude firmware utility
- prototype pcb board
- usb to serial-port
- Where to get the compiler
- How to set it up
- Schematic diagram
- Minimal Blink-led application
- UPDI connector for programming
- Example protoboard
- Full sourcecode
- Detailed explanation per section.
Using an easy-to-use make script with step-by-step explanation of each section.
- Setting macros
- Setting compiler options
- Compile sources to .elf
- Extract .hex file from .elf
- Extract assembly listing from .elf
- Write firmware into target
- Update fuses in target
Using avrdude and an USB-serialport
- Required hardware
- How to connect
- Using serialupdi protocol
- What do they mean
- How can you change them
- PROGMEM is no longer required. No more literal strings in SRAM.
- PROGMEM is supported and still works, but only needed for library functions that use pgm_read..() functions from <avr/pgmspace.h>