How to setup a filter for FlexCan Receiving MB to exclude an ID

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

How to setup a filter for FlexCan Receiving MB to exclude an ID

ソリューションへジャンプ
1,683件の閲覧回数
davidzhou
Contributor V

Hi,

How to setup a CAN ID filter and Mask register for a receiving MB to exclude an ID?

For example, I want MB[0] to receive extended ID 0x0C10FF00 while MB[1] to receive all other extended IDs except the above ID: 0xC10FF00.

Is there anyway to do that?

I have K60.

Thank you,

David

0 件の賞賛
返信
1 解決策
1,134件の閲覧回数
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi

Kinetis FlexCAN Rx mailbox ID filter can't exclude a standalone ID with receiving other ID.

For the MB has the priority, if the extended ID 0x0C10FF00 data frame coming, it will be received by MB0 if MB0 in active state. Otherwise, that extended ID 0x0C10FF00 data frame will be received by MB1.

My suggest to set more MB as a receive buffer to receive extended ID 0x0C10FF00 data frame, such as using MB[0~3].

And using MB4 to receive other ID data frame.


Wish it helps.

Have a great day,
Ma Hui
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,135件の閲覧回数
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi

Kinetis FlexCAN Rx mailbox ID filter can't exclude a standalone ID with receiving other ID.

For the MB has the priority, if the extended ID 0x0C10FF00 data frame coming, it will be received by MB0 if MB0 in active state. Otherwise, that extended ID 0x0C10FF00 data frame will be received by MB1.

My suggest to set more MB as a receive buffer to receive extended ID 0x0C10FF00 data frame, such as using MB[0~3].

And using MB4 to receive other ID data frame.


Wish it helps.

Have a great day,
Ma Hui
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信
1,134件の閲覧回数
davidzhou
Contributor V

Thank you, Hui Ma.

David

0 件の賞賛
返信