Part Number: TMS320F280049C
Other Parts Discussed in Thread: C2000WARE
Dear team:
Once my customer enables the "Interrupt_enable(CLLLC_ISR2_TRIG);" interrupt in the project, the program will report the following error, what is the reason?


register configuration:

ECAP7 configuration:
int32_t ecap_ticks = (int32_t) ((float32_t)(pwmSysClkFreq_Hz / pwmFreq_Hz));
ECAP_enableAPWMMode(ECAP7_BASE);//使能ECAP在APWM模式下
ECAP_setAPWMPeriod(ECAP7_BASE, ecap_ticks);//配置APWM周期
ECAP_setAPWMCompare(ECAP7_BASE, ecap_ticks >> 1);//配置APWM计数器为周期值的一半
ECAP_setAPWMShadowPeriod(ECAP7_BASE, ecap_ticks);//
ECAP_setAPWMShadowCompare(ECAP7_BASE, ecap_ticks >> 1);
ECAP_clearInterrupt(ECAP7_BASE, 0xFF);
ECAP_clearGlobalInterrupt(ECAP7_BASE);
ECAP_startCounter(ECAP7_BASE);
ECAP_enableInterrupt(CLLLC_ISR2_ECAP_BASE, ECAP_ISR_SOURCE_COUNTER_PERIOD);
Interrupt_register(CLLLC_ISR2_TRIG, &ISR2_PowerFlow);
CLLLC_HAL_clearISR2InterruputFlag();
Interrupt_enable(CLLLC_ISR2_TRIG);
The customer's CLA startup source is ADCB1, the interrupt source of ADCB1 is triggered by ADCB-SOC0, and SOC0 is triggered by EPWM5.
When both CLA and ECAP are started, the error in the figure will appear, and CLA does not need to start to trigger, as long as the function that configures the memory is called, it will run away. But the CLA code is fine if the customer does not enable ECAP interrupts
Best regards
