Using FlexCAN with software ID filter

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

Using FlexCAN with software ID filter

Jump to solution
857 Views
wolframwagner
Contributor I

I need some help for my actual project with the

 

-TWR-KE18F Board

 

I want to initialize the FlexCAN. My aim is to monitor the whole bitstream with the CAN0.

With every CAN-telegram an interrupt shall be triggered.

 

Then the ID`s and payload shall be analyzed by the ISR.

 

The examples from SDK 2.3 only show the filtering of the ID`s via the hardware. But I want to filter the ID`s via the software.

 

Do you have any tips or solutions for me?

 

Thank you very much.

0 Kudos
1 Solution
539 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

Customer need to set Rx Mailboxes Global Mask Registers value to 0x0.
Then the CAN master without ID filter and can receive all CAN data from slave.

Please keep Module Configuration Register (CANx_MCR) [IRMQ] bit with reset value (0b0).

Then, the hardware ID filter was ignored.

After CAN frame received, customer can use software to do further data processing.

Wish it helps.


Have a great day,
Mike

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

2 Replies
539 Views
wolframwagner
Contributor I

Hi Mike,

Thanks for the quick reply. My can now works as wanted

Have a gread day

Wolfram

0 Kudos
540 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

Customer need to set Rx Mailboxes Global Mask Registers value to 0x0.
Then the CAN master without ID filter and can receive all CAN data from slave.

Please keep Module Configuration Register (CANx_MCR) [IRMQ] bit with reset value (0b0).

Then, the hardware ID filter was ignored.

After CAN frame received, customer can use software to do further data processing.

Wish it helps.


Have a great day,
Mike

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------