Problem while using S32K344 CAN0 and CAN1 at same time to receive data in interrupt callback.

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

Problem while using S32K344 CAN0 and CAN1 at same time to receive data in interrupt callback.

86 Views
jerryrig
Contributor II

Hello,

 

I am trying to send 1 Message with 10mS period on CAN0 also i configured CAN0 Receive callback interrupt to receive one message through callback function. Also, at same time i configured CAN1 Receive callback interrupt to receive one message through callback function.

If i run two things separately it works properly when i try to use two CAN buses at same time it is giving some error frames on CAN1 where i am not transmitting anything on CAN1, I am transmitting messages on CAN0 only still i can see some garbage frames coming on CAN1.

 

I am using RTD3.0.0, Design studio 3.5, And flexCan module in driver layer, I am doing this activity on S32K344-T172 board.

 

If anyone is having such example code, please share.

 

Thanks

#s32k344 #CAN0 #CAN1 #FlexCAN

0 Kudos
Reply
3 Replies

69 Views
PetrS
NXP TechSupport
NXP TechSupport

HI,

what is your connection in fact? Do you use some external CAN transceiver for second CAN module? There is just single one on the EVB.

BR, Petr

0 Kudos
Reply

65 Views
jerryrig
Contributor II

@PetrS  Thanks for the reply,

 

Yes, I am using external transceivers on PTB1 and PTB0 for CAN0 and for CAN1 i am using one more transceiver on PTC8 and PTC9.

 

Thanks

0 Kudos
Reply

11 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

can you share some log for CAN buses and register content to see error detected?
Or better simplified project showing an issue.

BR, Petr 

0 Kudos
Reply