Hi,
I have some troubles with my .cmd-file (Sitara CPU using StarterWare). I want to move a C-function and may be later some variables to internal RAM of the CPU. Thus I modified my .cmd- file as follows:
GROUP { IRAM_CODE : { } IRAM_DATA : { } }load=DDR_MEM, run=INT_MEM, START(iram_start), SIZE(iram_size), RUN_START(relocstart) .text:DMTimerIsr : load > IRAM_CODE
IRAM_CODE points to start address of internal RAM which has a size of 0xFFFF. DMTimerIsr is the function I want to relocate. The whole thing fails during compilation with a warning
#10097 memory range not found: gpioLEDBlink.cmd /gpioLEDBlink line 87
and an error
#10099-D program will not fit into gpioLEDBlink.cmd /gpioLEDBlink line 87
for line
.text:DMTimerIsr : load > IRAM_CODE
So...what is wrong here? DMTimerIsr is smaller than 0xFFFF bytes (as well as the whole application). And where should iram_start, iram_size and relocstart be defined to specify the correct size of internal RAM? The StarterWare demo-application I have taken this example from does not define values for both...
Thanks!