S32K344-T172 CAN can not communicate with S32G399ARDB3

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

S32K344-T172 CAN can not communicate with S32G399ARDB3

260 Views
GG0712
Contributor III

Hi NXP team,

 

Currently we have 

  1. s32g399ardb3 as a reference for our custom design board and using BSP 35
  2. 2 pcs s32k344-T172
  3. 1 pcs s32g399arbd3 and using BSP 39
  4. Raspberry pi 4B
  5. Arduino UNO

S32K344 can use CAN to communicate with arduino and reapberry pi.

s32g399ardb3 can use CAN to communicate with arduino, raspberry pi and our design board

Our design board can use CAN to communicate with arduino, raspberry pi and s32g399ardb3

 

But s32k344 can not communicate with s32g399ardb3 and our design board.

Our s32k344 CAN related source code was reference s32k MCAL CAN example code

 

Thanks

0 Kudos
Reply
3 Replies

239 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

there can be several reasons why correct communication cannot be established. Assuming proper initialization is done, CAN transceiver is active and bus properly terminated, check FlexCAN module ECR/ESR1 registers within debugger to know what errors are detected. Also measuring CAN bus line MCU TXD/RXD lines with scope/analyzer can help.
Maybe just message is not ACKed, which could point for wrong CAN bit timing used. You should have same bitrate and sample points used on all nodes. If possible do not use FIRC as source for CAN protocol clock. A below tool can be used for CAN bit timing calculation;
https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/MPC5xxx-S32Kxx-LPCxxxx-CAN-CAN-FD-bit-timing-cal...
 
BR, Petr
0 Kudos
Reply

233 Views
GG0712
Contributor III

Hi PetrS,

 

We set the CAN bitrate as 500k/125k and sample point as 0.75 for s32k 

Both FIRC and PLL_PHI0 clock are we tested

 

Thanks

0 Kudos
Reply

219 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

as I wrote, to analyze possible issue, check FlexCAN module MCR/ECR/ESR1 registers within debugger to know status and what errors are detected. Also measuring CAN bus line MCU TXD/RXD lines with scope/analyzer can help.
Share CAN PE clock and bitrate setting and content of relevant registers.

BR, petr

0 Kudos
Reply