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

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

Re: [avr-gcc-list] Any constant to locate first and last byte of ram?


From: Joerg Wunsch
Subject: Re: [avr-gcc-list] Any constant to locate first and last byte of ram?
Date: Fri, 13 Aug 2004 11:14:31 +0200 (MET DST)

Bernard Fouché <address@hidden> wrote:

> I'd like to offer a ram dump option to a product. Is there a way to do it
> using already existing constants to have portable code in all the avr
> product range? For instance to be able to write:

The end of each memory range gets a #define'd constant in each
<avr/ioXXX.h> header file, RAMEND in your case.

There's no such constant for the start of RAM.  Either you hardcode
the few exceptions from the default of 0x60 (ATmega128 plus a few
more, basically any MCU that has an extended IO register range), or if
you didn't change your .data section from its default location, you
could use the global symbol __data_start for that purpose.

-- 
J"org Wunsch                                           Unix support engineer
address@hidden        http://www.interface-systems.de/~j/


reply via email to

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