How to properly configure several FLEXCAN message buffers

Showing results for 
Search instead for 
Did you mean: 

How to properly configure several FLEXCAN message buffers

Contributor I


I  am running a modified flexcan_interrupt_transfer.c example on an iMXQM6 processor. I am using CAN FD and only care about receiving messages from a PCAN-View probe which I use for testing. 

From the PCAN-View probe, I am sending several messages with a cycle time of 1ms to the same ID which as in the example is set by default to 0x123h. 

I observed that some of the messages were lost, so I configured all the message buffers from 0x01 to 0x14 to receive data from the same ID. However, the messages are still being lost and it seems that only the first message (with the highest priority) is used. 

I checked that bit 16 (IRMQ) from the MCR register is set and I configured the Rx Mb Gobal Mask:FLEXCAN_SetRxMbGlobalMask(EXAMPLE_CANFLEXCAN_RX_MB_STD_MASK(rxIdentifier00)); but with no success.

Is there something else that I am missing?

Thank you in advance for your support!


0 Kudos
0 Replies