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.

LAUNCHXL-F28379D: CAN Mailbox Multiple Ids reading Issue

Part Number: LAUNCHXL-F28379D

Dear Sir, 

I am using Launchxl-28379D . I have configured CANB Mailbox 32 for Receiving multiple IDs .code looks like below 

CAN_setupMessageObject(CANB_BASE, 32, 0x20,
CAN_MSG_FRAME_STD, CAN_MSG_OBJ_TYPE_RX, 0xF,
CAN_MSG_OBJ_NO_FLAGS, MSG_DATA_LENGTH); 

if(((HWREGH(CANB_BASE + CAN_O_ES) & CAN_ES_RXOK)) == CAN_ES_RXOK) //CANA_BASE
{
//
// Get the received message
//
CAN_readMessage(CANB_BASE, 32, rxMsgData); 
rxMsgCount++;

}

I need to access received message ID, so that accordingly i can assign the received data, 

please do provide the command line for reading message ID very fastly 

  • Your mailbox setup does not appear to be correct. Please look at can_ex10_msk.c and the associated description in www.ti.com/lit/sprace5. Specifically, you need to use CAN_MSG_OBJ_ID_FILTER.

    For reading the message ID, you can use CAN_readMessageWithID(). 

    If you want to directly access the ARB register, you can use HWREG_BP(ui32Base + CAN_O_IF1ARB). You can then extract the message ID.