Issue with CAN0 Communication on Custom S32K144 Board

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

Issue with CAN0 Communication on Custom S32K144 Board

Jump to solution
636 Views
stark21
Contributor II

Hello team,

We are working with a custom board using the S32K144 (LQFP64 64-pin package) and S32 Design Studio v2.2. Using processor expert we have generated code.

Working Configuration:

  • CAN1 (CANpal component) is configured with PTC6 and PTC7.
  • CAN communication (send/receive) is working as expected.

Non-working Configuration:

  • CAN0 (CANpal component) is configured with PTC2 and PTC3.
  • CAN communication (send/receive) is not functioning.

Could you please advise on steps to resolve this issue?

0 Kudos
Reply
1 Solution
615 Views
stanish
NXP Employee
NXP Employee

Hi,

I assume there is no hardware conflict on your custom board (CAN0 interface) so the CAN_H and CAN_L pins are routed and treated similarly as in case of CAN1 interface.  If you are using higer baudrate please also double-check the presense of termination resistor 120 Ohm.

I'd also validate Sending a data from your board over CAN0 - measure CAN_TX  (TTL) signal using logic analyzer to see the output is present on pin.  You can hook the signal e.g on CAN trancevier (TTL Tx pin).

If you do not see any activity on pin, after sending a data I'd suggest you to run the debug ession with Non-Working Configuration, execute code and stop right after CAN initialization.

Then please check GPIO pinmux registers - so GPIO PTC2 and PTC3 are set to alt 3.

stanish_0-1739387404538.png

stanish_1-1739387527860.png

If it does not help please send us more information about the issue you observe.

Hope it helps.

Stan

View solution in original post

0 Kudos
Reply
1 Reply
616 Views
stanish
NXP Employee
NXP Employee

Hi,

I assume there is no hardware conflict on your custom board (CAN0 interface) so the CAN_H and CAN_L pins are routed and treated similarly as in case of CAN1 interface.  If you are using higer baudrate please also double-check the presense of termination resistor 120 Ohm.

I'd also validate Sending a data from your board over CAN0 - measure CAN_TX  (TTL) signal using logic analyzer to see the output is present on pin.  You can hook the signal e.g on CAN trancevier (TTL Tx pin).

If you do not see any activity on pin, after sending a data I'd suggest you to run the debug ession with Non-Working Configuration, execute code and stop right after CAN initialization.

Then please check GPIO pinmux registers - so GPIO PTC2 and PTC3 are set to alt 3.

stanish_0-1739387404538.png

stanish_1-1739387527860.png

If it does not help please send us more information about the issue you observe.

Hope it helps.

Stan

0 Kudos
Reply