S32K344 CAN and PCAN problem

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

S32K344 CAN and PCAN problem

804 Views
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

Tags (1)
0 Kudos
Reply
4 Replies

779 Views
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 Kudos
Reply

746 Views
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 Kudos
Reply

734 Views
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 Kudos
Reply

760 Views
Voledi
Contributor II

Thanks a lot sir, this helped me solve my problem

0 Kudos
Reply