This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28388D: Loading Function from FLASH to RAM

Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE

Hello,

I have a COFF abi build SCI kernel build  for RAM. I am trying to change its build configuration from RAM to FLASH. 

1.   #ifdef __cplusplus
      #pragma CODE_SECTION(Init_Flash_Sectors,".TI.ramfunc");
      #endif

Is this the correct pragma i should use for COFF abi projects , Here i am trying to load ' Init_Flash_Sectors ' function from flash to ram. 

2.Can i use same linker file for both COFF and EABI projects, any example for COFF build FLASH linker files available?

3. i have used _FLASH and builded a seperate configuration for FLASH build , used this pragma , linker file is also modified 

Is there anyother thing other than this i should take care to run flash API's in SCI kernel to run in RAM.

Thanks and regards,

Stevin

  • Stevin, 

    1. The syntax looks correct, but I don't believe this function needs the pragma. Is there a reason why you want to place the function in RAM?

    2. You can do this, the 2838x_FLASH_lnk_cpu1 file in C2000Ware_3_04_00_00\device_support\f2838x\common\cmd has both EABI and COFF configurations. 

    3. There is one linker command file change, please refer to the parent thread for the code. You may also need to specify a file search path to the Flash API lib file in the project settings. 

    Thanks, 

    Anu