RT1064-EVK CAN Bus receive both FrameFormat

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RT1064-EVK CAN Bus receive both FrameFormat

473 Views
Dannii
Contributor II

Hey Guys,

I want to set up the Can Bus buffer to receive all Messages on a CAN line Standard and Extendet Format. I always just found the settings and masks to change between them, but not a way to receive all of them. I know it has to do something with the IDE Bit, but is there a way to detect it and set the Buffer according to it while recieving the message? 

Best regards

Daniel

Tags (1)
0 Kudos
1 Reply

453 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @Dannii,

If you want to receive multiple messages in a single mailbox the best way would be to use the filters, if you configure the filter mask to 0 it would receive any message in the specific mailbox:

FLEXCAN_SetRxMbGlobalMask(EXAMPLE_CAN, FLEXCAN_RX_MB_STD_MASK(0, 0, 0));
FLEXCAN_SetRxIndividualMask(EXAMPLE_CAN, RX_MESSAGE_BUFFER_NUM, FLEXCAN_RX_MB_STD_MASK(0, 0, 0));

Best Regards,

Alexis Andalon

0 Kudos