Yahoo Groups archive

Lpc2000

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

Message

Fixed address ARRAY

2005-11-29 by gomolava1

Hello,


Is it exist simple method to place an ARRAY to a fixed memory location 
in gcc,like in Keil:
const unsigned char eeprom[EE_SIZE]_at_EE_ADDR_L;
 
For a variable
unsigned int dd _at_ 0x81000000;
 
previous answers suggested:
int * dd = ((unsigned int *)0x81000000);

Have I to use separate section in linker script?

Thanks
Zoltan Gobor

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.