Page 1 of 1

EasyLogger on a Tiny25

Posted: Tue Oct 07, 2008 11:47 am
by PHermansson
To start with, I'm an AVR beginner... I've got interested in the EasyLogger and build a circuit, but only had an ATTiny25 at hand.
I've tried to modify the code somewhat and removed the Led-functions, but the code is still a bit to large för the '25.

Code: Select all

avr-objcopy -j .text -j .data -O ihex main.bin main.hex
./checksize main.bin 2048 256
*** code size 2150 exceeds limit of 2048


How can I trim it to fit?

Posted: Thu Oct 09, 2008 4:53 pm
by christian
You can save quite a couple of bytes if you don't output the value in decimal. That would save the division code.

Other than that, I'd recommend gcc 3 since it generates shorter code.