Re: AVR stack problem
- From: "Roland Zitzke" <NZEONTQYRAHL@xxxxxxxxxxxxx>
- Date: Mon, 9 May 2005 09:47:14 +0200
Hi,
> I just got my deign up and running using an AVR Mega128. For some odd
> reason it looks like my stack is disabled. Within AVRStudio the stack
Have a look at:
http://ftp.gnu.org/savannah/files/avr-libc/doc/avr-libc-user-manual/FAQ.html
It appears that your fuse bits are still in compatibility mode i.e.
pretending that you are using an Atmega 103.
....Well, certain odd problems arise out of the situation that the AVR
devices as shipped by Atmel often come with a default fuse bit configuration
that doesn't
match the user's expectations. Here is a list of things to care for:
.....
.. The ATmega128 ships with the fuse enabled that turns this device into
ATmega103 compatibility mode. This means that some ports are not fully
usable, and
in particular that the internal SRAM is located at lower addresses. Since by
default, the stack is located at the top of internal SRAM, a program
compiled
for an ATmega128 running on such a device will immediately crash upon the
first function call (or rather, upon the first function return).
.....
/Roland
.
- References:
- AVR stack problem
- From: n . prophet
- AVR stack problem
- Prev by Date: Re: MSP430 Programming problem using MSPGCC win32 pkg - help!
- Next by Date: TDK 71M6513
- Previous by thread: Re: AVR stack problem
- Next by thread: reg Scatter Load files in ADS1.2
- Index(es):
Relevant Pages
|