Tool/software:
Hi Team,
One of my customers used MSPM0G3107 for CAN communication, found that CAN had no response and locked after a period of time, and the communication would be resumed after POR.
Customer use Jlink to debug but MCU will not get into CAN interrupt, at the same time, main program and other interrupts work correctly. Customer use example code as below, the interrupt is set at default program, but main process is not got into default program, could you please help to analysis this issue? Thanks.
switch (DL_MCAN_getPendingInterrupt(MCAN0_INST)) {
case DL_MCAN_IIDX_LINE1:
/* Check MCAN interrupts fired during TX/RX of CAN package */
m_gInterruptLine1Status |= DL_MCAN_getIntrStatus(MCAN0_INST);
DL_MCAN_clearIntrStatus(MCAN0_INST, m_gInterruptLine1Status,
DL_MCAN_INTR_SRC_MCAN_LINE_1);
m_bCanServiceInt = true;
break;
default:
USER_MCAN0_init(UserData.Speed);
NVIC_EnableIRQ(MCAN0_INST_INT_IRQN);
DL_MCAN_clearIntrStatus(MCAN0_INST, m_gInterruptLine1Status,
DL_MCAN_INTR_SRC_MCA