[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] Any constant to locate first and last byte of ram?
From: |
Bernard Fouché |
Subject: |
[avr-gcc-list] Any constant to locate first and last byte of ram? |
Date: |
Fri, 13 Aug 2004 10:20:49 +0200 |
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:
for(i=RAM_START;i<=RAM_END;i++)
printf_P(PSTR("%04x: %02x\n\r"),read_ram_byte(i));
RAM_START would skip registers and RAM_END would point to the very last byte
of ram of the chip. Maybe some functions are to be used instead of
constants?
Thanks
- [avr-gcc-list] Any constant to locate first and last byte of ram?,
Bernard Fouché <=