Hello
In TI provideded file bl_can.c
C:\ti\simplelink_msp432e4_sdk_4_20_00_12\source\ti\devices\msp432e4\boot_loader\
At
function
CANMessageGetRx(uint8_t *pui8Data, uint32_t *pui32MsgID)
I'm finding that once CAN_IF1MCTL_MSGLST is set, it is stuck there and won't clear.
What's the right way to clear it?
I tried at line 381:
if((ui16MsgCtrl & CAN_IF1MCTL_MSGLST) == CAN_IF1MCTL_MSGLST)
{
CAN0->IF2CMSK = CAN_IF1CMSK_NEWDAT;
CAN0->IF2CRQ = MSG_OBJ_BCAST_RX_ID;
CAN0->IF2MCTL &= 0x3FFF; // clear newdat & lost
while(CAN0->IF2CRQ & CAN_IF2CRQ_BUSY)
{
}
}