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.

TMS320F28P650DK: Example linker syntax for “run-from-RAM, load-from-flash” at the object-file level

Part Number: TMS320F28P650DK
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Hi,

To reduce ISR utilization and improve performance, I am trying to move code to executing from RAM instead of FLASH.
Rather than tagging every function with #pragma CODE_SECTION(fn, ".TI.ramfunc") , I’d like to relocate entire object files to execute from RAM LS8 during link step.
Can you point me to a C28x example snippet, CCS example project or the recommended linker syntax for "run from RAM, load from flash, at an object file level instead of function level?
I came across the "GROUP" command in this document, (software-dl.ti.com/ccs/esd/documents/sdto_cgt_Linker-Command-File-Primer.html#group-output-sections-together), and this is what I have so far,
   GROUP
         LOAD = APPFLASH_CPU1
         RUN  = RAMLS8
         PAGE = 0
         ALIGN(4)
         LOAD_START(CtrlLoadStart)
         LOAD_SIZE (CtrlLoadSize)
         RUN_START (CtrlRunStart)
         RUN_END   (CtrlRunEnd)
   {
      state_voltage_match.obj (.text, .switch)
      fault_monitor.obj       (.text)
      converter_control.obj   (.text)
   }
Is this the right way to go about this? Please let me know if you are able to help me with this.