How to properly configure several FLEXCAN message buffers

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

How to properly configure several FLEXCAN message buffers

686 Views
stefpopa
Contributor I

Hello,

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!

-Stefan

0 Kudos
1 Reply

613 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

If my understanding is correct you have your board as A node in the example, if that is the case please make sure that your modifications are working correctly for this node.

Would be great if you could share the modifications to the example.

Best regards,
Aldo.

0 Kudos