S32K348 CAN FD Receive filter set

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

S32K348 CAN FD Receive filter set

Jump to solution
912 Views
youngkin
Contributor III

Hello:

I have studied this example( https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K358-FlexCAN-TXRX-ISR-S32DS35-RTD400-500...), receive can message:

I want to set canid  filter, as sample i want to receive the message from  canid (0x123) 

and I  write code as follow:

youngkin_0-1761568701636.png

but  now  I can not receive any message.

Please take a moment to help answer, thank you!

 

0 Kudos
Reply
1 Solution
874 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@youngkin

FlexCAN_Ip_SetRxIndividualMask_Privileged(INST_FLEXCAN_0, RX_MB_IDX, 0x7FF); // Exact match for standard ID
 
  • For standard ID (11-bit), use 0x7FF for full match.
  • For extended ID (29-bit), use a 29-bit mask like 0x1FFFFFFF.

View solution in original post

0 Kudos
Reply
2 Replies
875 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@youngkin

FlexCAN_Ip_SetRxIndividualMask_Privileged(INST_FLEXCAN_0, RX_MB_IDX, 0x7FF); // Exact match for standard ID
 
  • For standard ID (11-bit), use 0x7FF for full match.
  • For extended ID (29-bit), use a 29-bit mask like 0x1FFFFFFF.

0 Kudos
Reply
872 Views
youngkin
Contributor III
thanks!resolve it
0 Kudos
Reply