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.

330件の閲覧回数
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 返答(返信)

313件の閲覧回数
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 件の賞賛
返信

309件の閲覧回数
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 件の賞賛
返信

255件の閲覧回数
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 件の賞賛
返信

190件の閲覧回数
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 件の賞賛
返信