Now I try to do same task as Martin.
i.e. I want to run my program from RAM .
I want to load .text section into ROM and run from RAM.
I know that the method is described in ARM Assembly Language Tools(spnu118o) and need to edit linker command file.
But I cannot understand. sorry...
Now I use default linker command file generated by HALCoGen.
MEMORY
{
VECTORS (X) : origin = 0x00000000, length = 0x00000020
FLASH0 (RX) : origin = 0x00000020, length = 0x0017FFE0
FLASH1 (RX) : origin = 0x00180000, length = 0x00180000
STACKS (RW) : origin = 0x08000000, length = 0x00001500
RAM (RW) : origin = 0x08001500, length = 0x0003EB00
}
SECTIONS
{
.intvecs : {} > VECTORS
.text : {} > FLASH0 | FLASH1
.const : {} > FLASH0 | FLASH1
.cinit : {} > FLASH0 | FLASH1
.pinit : {} > FLASH0 | FLASH1
.bss : {} > RAM
.data : {} > RAM
.system : {} > RAM
}
If anyone can, pls tell me concretely about editing linker command file.