Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

RE: [lpc2000] fixed address variable

2005-11-09 by Gromann, Klaus

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 Links

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.