EasyLogger on a Tiny25

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
PHermansson
Posts: 10
Joined: Tue Oct 07, 2008 11:44 am

EasyLogger on a Tiny25

Post by PHermansson » Tue Oct 07, 2008 11:47 am

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?

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Thu Oct 09, 2008 4:53 pm

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.

Post Reply