How to receive communication from multiple CAN IDs with one RX MAILBOX

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

How to receive communication from multiple CAN IDs with one RX MAILBOX

201 Views
jwjung
Contributor II

 

i'm using s32k312 chip.

 

i tried to Receive CAN message which has specific id value.

 

from now on, i used flowing paragraph on the CAN initialize() block

 

FlexCAN_Ip_ConfigRxMb(INST_FLEXCAN_2, CAN2_RXMAILBOX, &rx_info, 0x3c2ul); 

 

I tried to get multiple CAN ID values messages from one RX MAILBOX, but it didn't work as expected.(not only 0x3c2ul )

 

I know that if I use 0x00, can receive messages of all CAN ID values in mcu, but it doesn't work properly.

(FlexCAN_Ip_ConfigRxMb(INST_FLEXCAN_2, CAN2_RXMAILBOX, &rx_info, 0x00);) 

 

Please share how to receive multi CAN ID values(range or anyway) and to receive all of the CAN ID message.

 

Thank you.

0 Kudos
Reply
1 Reply

167 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@jwjung

you can take a look at this routine by petr.

https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K344-FlexCAN-Ip-TX-RX-EnhanceRXFIFO-test...

also you can take a look at this article regarding how to set flexcan mask bit for S32K1.(this is for S32K1 but also amolst same for S32K3)

https://community.nxp.com/t5/S32K-Knowledge-Base/S32K1xx-FlexCAN-Mask-Setting-Demo/ta-p/1519753

 

0 Kudos
Reply