Try this.
MEMORY
{
CODE (rx) : ORIGIN = 0x00000000, LENGTH = 0x0001E000
DATA (rw) : ORIGIN = 0x40000000, LENGTH = 0x00003FE0
}
/* Section Definitions */
SECTIONS
{
...
_etext = . ;
PROVIDE (etext = .);
/* .data section which is used for initialized data */
.data : AT (_etext)
{
_data = . ;
*(.data)
. = ALIGN(4)
*(.ram_func)
SORT(CONSTRUCTORS)
} >DATA
...
Regards
-Bill Knight
R O SoftWareMessage
Re: How to get a function running in RAM (Lpc21xx+GnuArm)?
2006-01-19 by wmk6341