avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] Code Size Causes Crash?


From: wbounce
Subject: [avr-gcc-list] Code Size Causes Crash?
Date: Thu, 27 Jan 2005 23:20:07 -0500

I can tell you GCC will do more than that my current program is roughly
14000 and it runs fine. 
---original ---
Subject: [avr-gcc-list] Code Size Causes Crash?
Message-ID:
<address@hidden>
Content-Type: TEXT/PLAIN; charset=US-ASCII
MIME-Version: 1.0
Precedence: list
Message: 1


I am writing code for the ATMEGA128.  After my program reached a certain
size it crashes/resets in the middle of the program.  If I increase the
size of the program further, even if that code won't be executed, the
MCU crashes very early in the program and hangs.

While investigating this problem, I made a simple program to test code
size (which is included below).  I've incremented and deincremented 'i'
many times to increase the code size.  with 404 increment and decrement
statements, the code is run correctly (the LED blinks).  The addition of
one statement beyond that breaks the program.

It's interesting that the critical size of this program is much smaller
than my application, which did not exhibit code size sensative behavior
until it was 6.5 kB.  My test program stopped working at 4.3 kB.

Any ideas about what could cause this problem?

--Kevin Neff



reply via email to

[Prev in Thread] Current Thread [Next in Thread]