Author Topic: Build error using LCD library  (Read 1447 times)

0 Members and 1 Guest are viewing this topic.

Offline adanvascoTopic starter

  • Full Member
  • ***
  • Posts: 107
  • Helpful? 6
  • Necessity is the mother of invention.
Build error using LCD library
« on: June 15, 2011, 02:09:02 PM »
Hello.

I'm getting the following error when building the $50 robot project. Everything was fine until I added the LCD library.

c:/winavr/bin/../lib/gcc/avr/4.3.3/../../../../avr/bin/ld.exe: Photovore_v1.elf section .text will not fit in region text
c:/winavr/bin/../lib/gcc/avr/4.3.3/../../../../avr/bin/ld.exe: region text overflowed by 2224 bytes

Any idea what this is? I don't really think the program is too big for my ATmega8. I'm not sure if there is any error with type casting. I already included the lcd.c source file to the makefile. Please take a look at the attached code.

Thanks.
Knowledge does not weigh.

Offline adanvascoTopic starter

  • Full Member
  • ***
  • Posts: 107
  • Helpful? 6
  • Necessity is the mother of invention.
Re: Build error using LCD library
« Reply #1 on: June 15, 2011, 02:47:54 PM »
Found the solution. Needed to turn optimization on. Level 2 made it work.  8)
Knowledge does not weigh.

 


Get Your Ad Here

data_list