Using FlexCAN with software ID filter

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Using FlexCAN with software ID filter

ソリューションへジャンプ
1,680件の閲覧回数
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,362件の閲覧回数
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,362件の閲覧回数
wolframwagner
Contributor I

Hi Mike,

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

Have a gread day

Wolfram

0 件の賞賛
返信
1,363件の閲覧回数
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!
-----------------------------------------------------------------------------------------------------------------------