October 29, 2019

Building "podkalicki" ATtiny13 projects

I fetched the code for these from Github (along with a LOT of other things) via:
git clone https://github.com/lpodkalicki/blog.git
mv blog Lpodkalicki
cd 
Then to build the first example:
cd Lpodkalicki/avr/attiny13/001_blinky_with_delay_function
make

avr-gcc -std=c99 -Wall -g -Os -mmcu=attiny13 -DF_CPU=1200000 -I. -o main.o main.c
avr-ld -o main.elf main.o
avr-objcopy -j .text -j .data -O ihex main.o main.hex
avr-size -C --mcu=attiny13 main.elf
AVR Memory Usage
----------------
Device: attiny13

Program:      72 bytes (7.0% Full)
(.text + .data + .bootloader)

Data:          0 bytes (0.0% Full)
(.data + .bss + .noinit)
Unlike the toykeeper stuff, it just works!

The code is simple and clean, as are the Makefiles. Very nice.


Have any comments? Questions? Drop me a line!

Tom's Electronics pages / tom@mmto.org