Sign In

Build Failed With "c:/winavr-20100110/bin/../lib/gcc/avr/4.3.3/../../../../avr/bin/ld.exe: IRremote.elf Section .text Will Not Fit In Region Text" Error

Mayurkumar Takodara mayurnt@gmail.com India

Hardware: ATmega8 Running At 12MHz With Development Board (soldered) Software: AVR Studio 4

sir,
im facing problem while build in avr studio C compiler for my project of reading IR remote signal through ATmega8 with LCD display help.
I have included all source files.
Getting following 2 errors while compiling

c:/winavr-20100110/bin/../lib/gcc/avr/4.3.3/../../../../avr/bin/ld.exe: IRremote.elf section .text will not fit in region text
c:/winavr-20100110/bin/../lib/gcc/avr/4.3.3/../../../../avr/bin/ld.exe: region text overflowed by 5694 bytes


help me to avoid these errors.

Images

build failed with

Program



#include <avr/io.h>

#include "remote.h"
#include "lcd.h"

void main()
{
   uint8_t cmd=0;

   RemoteInit();

   LCDInit(LS_BLINK);

   LCDClear();

   LCDWriteString("IR RemoteDecoder");
   LCDWriteStringXY(0,1,"Key Code:");

   while(1)
   {
      cmd=GetRemoteCmd(1);
      LCDWriteIntXY(10,1,cmd,3);
   }
}

Replies

R Avinash Ofc PC
2017-10-18 07:07:35
Set optimization level to O2

Post a reply to Mayurkumar Takodara

Think you can help Mayurkumar Takodara ? Then post your thoughts that might help Mayurkumar Takodara. You will earn a lot of reputation in the technical community.

If your program is in multiple files, then ZIP the entire folder and attach below

Images and Screenshots

These helps other better understand your suggestion.