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.

MSPM0G3107: mspm0G3107 can communication

Part Number: MSPM0G3107

        我使用mspM0G3107做can通信,设备运行一段时间后,发现can接口锁死,不响应can指令,断电重启后通信恢复正常,使用Jlink跟踪到程序中,发现上位机发送指令程序不再进入can通信中断,但单片机主程序和其它中断工作正常,找不到原因所在。can中断我使用咱们例程的程序,如下面代码,在default处设置中断,发现程序并未进入到default程序中。不知道什么原因,急急急!!!

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_MCAN_LINE_1);
break;
}