I need to place part of the SYS/BIOS code in RAM, for performance reasons. Especially the .knl package needs to be executed from there, because the flash on my C28x Piccolo is too slow.
I found this in the FAQ:
I modified it for the C2000 architecture:
SECTIONS
{
.knl: { *.*(.text:*ti_sysbios_knl*) } > L03SARAM PAGE = 1
}
It works in so far that the code is executed from RAM, but: Because the code is only loaded to RAM by the debugger, I cannot run the controller without a debugger attached. Usually, on the C2000 one would mark a function with
#pragma CODE_SECTION(name, "ramfuncs");
and load it from flash to RAM at the beginning of the program. What do I have to do to achieve something similar with SYS/BIOS code?
Any help would be greatly appreciated!
Torben Frenzel