Issue with CAN Example Code on S32K344Q712 Development Board

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

Issue with CAN Example Code on S32K344Q712 Development Board

617 Views
onkar441
Contributor II

Hello, I have an S32K344EVB-Q172 development board, and the provided CAN example is not working I am not getting any TX or RX messages. SW32K3_S32M27x_RTD_4.4_4.0.0_P20y.

 

 

Tags (2)
0 Kudos
Reply
5 Replies

570 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@onkar441

The FlexCAN demo provided by our S32 DS works in Loop-back mode, so you cannot detect any signal on the TX or RX port

Secondly, the CAN PTH in the S32K344EVB needs to do some special initialization operations, otherwise it will not work properly.

This is a routine based on RTD 2.0.0 version. You can refer to it and port it to the RTD version you are currently using.

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

 

0 Kudos
Reply

552 Views
onkar441
Contributor II

Hi @Senlent I have generated code and manually configured the ports for CAN0 TX and CAN0 RX, and performed initialization in the main function, but I am still not getting any output. Please check the attached generated code. My RTD version is SW32K3_S32M27x_RTD_4.4_4.0.0_P20.

0 Kudos
Reply

538 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@onkar441

You didn't listen to any of my advice


1. Did you configure your port correctly?

Senlent_0-1717469789702.png

Senlent_1-1717469965334.png

 


2. Your configuration is still working in Loop-Back mode

Senlent_2-1717469992764.png

 


3. I emphasized to you that the CAN PHY on the S32K3X4EVB needs some special initialization, and asked you to refer to the link I provided you, but you still did nothing

 

 

0 Kudos
Reply

522 Views
onkar441
Contributor II

Hi @Senlent,

1. I configure port correctly.

onkar441_3-1717586347720.png

 

onkar441_2-1717586321130.png

 

 

Right now i am not using CAN FD . I am working on Normal FLEXCAN0 i just want to TX/RX form the DS example code.  

i resave these output. 

onkar441_4-1717586476716.png

 

 

0 Kudos
Reply

490 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@onkar441

Your newly modified demo is fine, but it still won't work properly if you are using the S32K344Q172 EVB.

On the S32K344EVBQ172, the CAN transceiver it provides needs some special initialization operations,

and we only have a sample program based on RTD 2.0.0(which i provided to you in the first reply)

I hope I have explained it clearly.

0 Kudos
Reply