Using FlexCAN with software ID filter

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Using FlexCAN with software ID filter

跳至解决方案
1,787 次查看
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 项奖励
回复
1 解答
1,469 次查看
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!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

2 回复数
1,469 次查看
wolframwagner
Contributor I

Hi Mike,

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

Have a gread day

Wolfram

0 项奖励
回复
1,470 次查看
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!
-----------------------------------------------------------------------------------------------------------------------