S32K344 CAN and PCAN problem

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

S32K344 CAN and PCAN problem

1,742 次查看
Voledi
Contributor II

Hi NXP team,

I'm using 
-s32k344 EVB 172

-S32DS 3.6 + RTD5.0.0

I have problem blow:
I modified the flexcan_ip_s32k344_example to transmit CAN between 2 boards or with PCAN ( attachment blow)

it works when i communicate between 2 boards:

Voledi_0-1736497263599.png

but when connecting to PCAN it gives error

Voledi_1-1736497398167.pngVoledi_2-1736497427164.png

PCAN site:

Voledi_3-1736497464024.png

 

Can you explain why ? Thanks

标记 (1)
0 项奖励
回复
4 回复数

1,717 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

change CAN protocol clock to FXOSC, not the FIRC and modify CAN bit timing accordingly.
I used below and PCAN works well.

PetrS_0-1736513059712.png

PetrS_2-1736513078715.png

PetrS_3-1736513109242.png

BR, Petr

 

0 项奖励
回复

1,684 次查看
Voledi
Contributor II

hi, i got new problem with same source code (attachment )

I only call FlexCAN_Ip_Send(INST_FLEXCAN_0, TX_MB_IDX, &tx_info, MSG_ID, (uint8 *)&dummyData); 1 time, but after I send a message from PCAN, the s32k344 Board receives the data, but I see on PCAN receiving more Messages from S32K344 sent even though I don't call FlexCAN_Ip_Send() anymore.

Voledi_0-1736761106459.png

Can you help,thanks

 

0 项奖励
回复

1,672 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

a code configures MB1 to receive message with ext ID=0xFACE. Within a callback function, once this MB was updated a FlexCAN_Ip_Send is called to reply back with ext ID=0x14.

PetrS_0-1736763756620.png

BR, Petr

0 项奖励
回复

1,698 次查看
Voledi
Contributor II

Thanks a lot sir, this helped me solve my problem

0 项奖励
回复