FlexCAN Message Filtering

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

FlexCAN Message Filtering

438 Views
juanigevo
Contributor I

Hello,

I'm developing an application on one of the Cortex-M4 using flexCAN.

Using the "flexcan_interrupt_transfer" from the SDK as a base for my development a question about ID filtering arised. I'm using standard ID and data frames, nothing out of the ordinary. At this point I am able to filter a single ID or let all ID pass. However, I'd like to know if it is possible to filter determined ranges of ID. The software I'm doing is for a device controller that sends and receives messages to and from a bunch of other devices (CAN nodes), so I want to filter all the messages that my device is supposed to receive from the other devices and not all of the spectrum of ID (from 1 to 2047).

Also, I'd like to know if it is possible to assign a Message Buffer to a determined range of ID, for example, ID 1 to 100 to Rx MB 1, ID 101 to 200 to Rx MB 2, and so on.

Thanks in advance,

Juan

0 Kudos
1 Reply

426 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

You may try by modifying the rxIdentifier value to the ID you expect to receive from.

Best regards,
Aldo.

0 Kudos