FlexCAN driver (on S32K3X4EVB-T172 EVB) can't access via PCAN

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

FlexCAN driver (on S32K3X4EVB-T172 EVB) can't access via PCAN

Jump to solution
1,806 Views
Jireh
Contributor III

Hi, Sirs,

Please help us as following, Thanks.

 

(1) Our Environment: 

  • HW: S32K3X4EVB-T172
  • S32K DS: 3.42023-09-13 08 59 58.png
  • sample code: FlexCAN on S32K344
  • 2023-09-13 09 19 56.png
  •  

 

 

 

 

 

(2) Pins config. :

  • our config.
  • 2023-09-13 09 26 23.png

 

 

  • EVB user manual: PHY is TJA1443.
  • 2023-09-13 09 51 45.png

 

 

 

 

 

 

(3) clock config. : 24MHz

2023-09-13 09 57 03.png

 

(4) Peripherals config. : 

  • FlexCAN: 

2023-09-13 10 09 10.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  • Interrupt: 
  • 2023-09-13 10 14 51.png2023-09-13 10 15 37.png

 

 

 

 

 

 

 

(5) main.c 

image.png

 

 

 

 

 

 

(6) result is NG : check PHY TJA1443 & connect with PCAN

  • measured each pins of PHY
  • image.png

     

  • used PCAN to send package: 
  • Jireh_2-1694572308988.png
0 Kudos
Reply
1 Solution
1,742 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Jireh

TJA1443 needs to do some configuration first.

please refer to this demo posted by Peter.

(the can transceiver on this demo is TJA1153, which is similar to TJA1143 I guess)

https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K344-FlexCAN-Ip-TX-RX-EnhanceRXFIFO-test... 

It worsks fine on myside.

Senlent_1-1694585779135.png

 

 

 

View solution in original post

5 Replies
1,269 Views
JonAnder_Amante
Contributor I

Hi Jireh,

Could you send me the project which you have sent to Support, because I am trying compile but I can´t transmite and receive the information by the channels of CAN. I am trying to use the PCAN but I have problems too because I don´t receive any information. 

Thank you for all,

0 Kudos
Reply
1,702 Views
Jireh
Contributor III

thanks a lot, it was working~ (CAN FD)

then, I'm going to check what's the difference with FlexCAN example (CAN only). 

Jireh_0-1694657861224.png

0 Kudos
Reply
1,743 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Jireh

TJA1443 needs to do some configuration first.

please refer to this demo posted by Peter.

(the can transceiver on this demo is TJA1153, which is similar to TJA1143 I guess)

https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K344-FlexCAN-Ip-TX-RX-EnhanceRXFIFO-test... 

It worsks fine on myside.

Senlent_1-1694585779135.png

 

 

 

1,496 Views
ToHoangLinh
NXP Employee
NXP Employee

Hello, I tried this solution on T172 EVB. 

It works - nonworks (if reload ELF or reset board) - works (if reload ELF again)

Do you have the similar issue?

0 Kudos
Reply
1,660 Views
Jireh
Contributor III
 
0 Kudos
Reply