Part Number: TMS320F28069
Tool/software: Code Composer Studio
Hi, I'm currently using the TMS28069, but I encountered a problem that I want my 28069 to boot from FLASH and then move the function code into RAM to operate. I have already change my .cmd file to flash version and added the code below
memcpy(&RamfuncsRunStart, &RamfuncsLoadStart, (Uint32)&RamfuncsLoadSize);
InitFlash();
And also, I have put my function in "ramfuncs" as shown below
#include "math.h"
#pragma CODE_SECTION(my_func, "ramfuncs");
void my_func(){
float res1;
res1 = cos(angle);
}
Since I used the function "cos" from the library "math.h" in "my_func" and this function is definitely time-consuming, so I want it to run in RAM as well. However, I don't know is it necessary for me to manually put "cos" into "ramfuncs" just like this:
#pragma CODE_SECTION(cos, "ramfuncs");
I have checked the .map file to see the location of the "cos" function and found that it stays always in FLASH area no matter whether I added the code above or not.
Thanks for your help, sincerely.