TI中文支持网
TI专业的中文技术问题搜集分享网站

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

jinyan fan:

回复 Green Deng:

谢谢,你真棒!

Green Deng:

回复 jinyan fan:

客气了,祝你后期调试顺利。

赞(0)
未经允许不得转载:TI中文支持网 » TMS320F28379D的中断服务程序怎么样在运行时拷贝到RAM中运行
分享到: 更多 (0)