问题概述:
在使用syscfg配置EPWM中断时,编译出现了error #10234-D: unresolved symbols remain的错误,双击该错误无法跳转到指定位置。
CCS版本:CCS12.7.1;
问题分析:
在Console中可以观察到报错的原因是,没有定义的symbol,如下图
从上图可知,是因为中断函数的名称报错。实际上是因为main.c中没有使用该函数。
解决方法:
在main.c中加入中断服务函数的代码,例如
__interrupt void INT_myEPWM1_ISR(void)
{
// Verifying the ISR
EPwm1TimerIntCount++;
// 你的代码
// 结束中断函数
//
// Clear INT flag for this timer
//
EPWM_clearEventTriggerInterruptFlag(myEPWM1_BASE);
//
// Acknowledge the interrupt
//
Interrupt_clearACKGroup(INTERRUPT_ACK_GROUP3);
}
问题复现与解决方法验证:
step1:将中断函数的Handler改成INT_myEPWM1_ISR666
step2:编译,出现错误
step3:修改main.c中的Handle名称
step4:编译,问题解决
希望对大家有所帮助~ManTou~