I wrote a code for atmega2561. The code's memory usage in prog memory is almost
153000 bytes.

The problem is, code doesn't work properly. the mcu getting reset or something
like this... I think compiled

code calls wrong addresses in somewhere of the memory. When I comment some of
part of text messages in the memory, the total memory usage become 126000 bytes
and the code works good....

I had also had a problem with eicall in winavr. I had fixed it like this:

EIND = 1;
asm("ldi r30,0x00");
asm("ldi r31,0xf0");
asm("eicall");

I guess avr-gcc doesn't set "EIND = 1;" for atmega2561 while compiling.

So i cannot using the other part of mega2561 (nearly 128K) because of this
BUG.

Please somebody fix it, it is very urgent...

Thanks....


-- 
           Summary: BUG: AVR-GCC ATMega2561 wrong addressing (probably
                    eicall).
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: optech_tr at yahoo dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38057

Reply via email to