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.

TMS320F28379D的中断服务程序怎么样在运行时拷贝到RAM中运行



烧写进FLASH,运行时拷贝到RAM

下面是搬运的CMD

#ifdef __TI_COMPILER_VERSION__
#if __TI_COMPILER_VERSION__ >= 15009000
.TI.ramfunc : {} LOAD = FLASHD, RUN = RAMLS0 | RAMLS1 | RAMLS2 |RAMLS3,
LOAD_START(_RamfuncsLoadStart),
LOAD_SIZE(_RamfuncsLoadSize),
LOAD_END(_RamfuncsLoadEnd),
RUN_START(_RamfuncsRunStart),
RUN_SIZE(_RamfuncsRunSize),
RUN_END(_RamfuncsRunEnd),
PAGE = 0, ALIGN(4)

#else

.TI.ramfunc : LOAD = FLASHD,
RUN = RAMLS0 | RAMLS1 | RAMLS2 |RAMLS3|RAMGS14|RAMGS15,
LOAD_START(_RamfuncsLoadStart),
LOAD_SIZE(_RamfuncsLoadSize),
LOAD_END(_RamfuncsLoadEnd),
RUN_START(_RamfuncsRunStart),
RUN_SIZE(_RamfuncsRunSize),
RUN_END(_RamfuncsRunEnd),
PAGE = 0, ALIGN(4)
#endif
#endif

这是要搬运的中断服务程序

__interrupt void epwm1ISR(void);
__interrupt void cpuTimer0ISR(void);
/#ifdef FLASH
/#pragma CODE_SECTION(epwm1ISR,"TI.ramfunc");
/#endif

#ifdef FLASH
#pragma CODE_SECTION(cpuTimer0ISR,"TI.ramfunc");
#pragma INTERRUPT(cpuTimer0ISR,HPI);
#endif

编译时报告警

Description Resource Path Location Type
#10247-D null: creating output section "TI.ramfunc" without a SECTIONS specification TMS28379D_test_20200522 C/C++ Problem