Documentation Talk:NGW/TinyFirmware

From AVRFreaks Wiki

Jump to: navigation, search

I noticed that the resulting binary is too big for the on board controller. After compiling I got an size of 0x81E bytes which is 0x1E too much. I noticed that the copyright string in pmbus.c is quite verbose. Reducing it a little solved the problem. Sorry David but now it does what it should. Another solution could be to replace the attiny24 by an device with more ROM.


This is a problem seen with AVR-GCC 4.3.x/WinAVR 2008xxyy I added two additional parameters in the Makefile to make the resulting binary fit in the ATtiny24 device.

CFLAGS += -fno-tree-scev-cprop
CFLAGS += -fno-inline-small-functions
Personal tools