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.
Solved! Go to Solution.
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!
-----------------------------------------------------------------------------------------------------------------------
Hi Mike,
Thanks for the quick reply. My can now works as wanted
Have a gread day
Wolfram
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!
-----------------------------------------------------------------------------------------------------------------------