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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

816 次查看
jerryrig
Contributor III

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 项奖励
回复
4 回复数

799 次查看
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 项奖励
回复

795 次查看
jerryrig
Contributor III

@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 项奖励
回复

741 次查看
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 项奖励
回复

676 次查看
jerryrig
Contributor III

Thanks for the support and sorry for the delayed response issue has got resolved as I was using both modules in FD mode that's why it wasn't working.

0 项奖励
回复