Sure, no problem
the best way is to use a macro instead of a variable :
i.e.:
definition :
#define fix_adr (*(volatile unsigned long *)0xe0000000)
code :
fix_adr = something_else;
best regards
Klaus
-----Original Message-----
From: lpc2000@yahoogroups.com [mailto:lpc2000@yahoogroups.com] On Behalf
Of szemzoandras
Sent: Wednesday, November 09, 2005 3:15 PM
To: lpc2000@yahoogroups.com
Subject: [lpc2000] fixed address variable
Hello,
Is it possible to place a variable to a fixed memory location in gcc,
like in keil, i mean:
unsigned int dd _at_ 0x81000000;
Or I can only do it with separate section in linker script?
__attribute__ ((section (".ysection")))
and
-Wl,--section-start=.mysection=0x81000000
thanks
Andrew
Yahoo! Groups LinksMessage
RE: [lpc2000] fixed address variable
2005-11-09 by Gromann, Klaus
Attachments
- No local attachments were found for this message.