Hello,
I would like to link a function, which is written in assembly, to a code section in the internal RAM (section "Code_ExternalRAMTest").
I use the TI compiler 4.9.1
I have tried the name section command (.sect "Code_ExternalRAMTest"), but the compiler throw an error.
I hope somebody can help me?
Best regards,
Philip Hertweck
The function "CP15ICacheDisable" for example:
CP15ICacheDisable:
MRC p15, #0, r0, c1, c0, #0
BIC r0, r0, #0x00001000
MCR p15, #0, r0, c1, c0, #0
BX lr
Memory configuration (a section of linker command file):
MEMORY
{
INTERNAL_RAM : org = 0x402F1000 len = 0x3FFF
EXTERNAL_RAM : org = 0x80000000 len = 0x40000000
}
SECTIONS
{
.init : {
init.obj (.text)
} load > 0x80000000
.cinit > EXTERNAL_RAM
.text > EXTERNAL_RAM
.stack > 0x8F000000
.bss > EXTERNAL_RAM
RUN_START(bss_start)
RUN_END(bss_end)
.const > EXTERNAL_RAM
.data > EXTERNAL_RAM
GROUP
{
Code_ExternalRAMTest:
Data_ExternalRAMTest: type=NOINIT
} LOAD = EXTERNAL_RAM, RUN = INTERNAL_RAM, table(_LINKER_COPY_TABLE)
.ovly > EXTERNAL_RAM
}