Other Parts Discussed in Thread: C2000WARE
Tool/software: Code Composer Studio
What are the minimum changes needed to execute code from flash? (no reading/writing data from the executing code to/from flash)
In the flash_programming_cpu examples the linker command file has the following:
#ifdef __TI_COMPILER_VERSION__
#if __TI_COMPILER_VERSION__ >= 15009000
GROUP
{
.TI.ramfunc
{ -l F021_API_F2837xD_FPU32.lib}
} LOAD = FLASHD,
RUN = RAMLS03,
LOAD_START(_RamfuncsLoadStart),
LOAD_SIZE(_RamfuncsLoadSize),
LOAD_END(_RamfuncsLoadEnd),
RUN_START(_RamfuncsRunStart),
RUN_SIZE(_RamfuncsRunSize),
RUN_END(_RamfuncsRunEnd),
PAGE = 0
Q1) Is it necessary to load F021_API_F2837xD_FPU32.lib if code is only executing from flash versus the code actively reading/writing data from the code to flash?
Q2) What else besides updating the MEMORY and SECTION areas to map the flash memory is required?
Kindly,
Graham