LpuartFlexio_Uart_Ip_Example_S32K344 example not working with S32k3x4EVB-Q172

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

LpuartFlexio_Uart_Ip_Example_S32K344 example not working with S32k3x4EVB-Q172

Jump to solution
2,472 Views
janakiraman-NTL
Contributor II

Hi NXP team,

I'm new to NXP S32DS IDE. I'm trying to debug the example code "LpuartFlexio_Uart_Ip_Example_S32K344" with the "S32k3x4EVB-Q172" board. Although the code compiles without errors, the Flexio_Uart_Ip_AsyncSend() function always returns the FLEXIO_UART_IP_STATUS_BUSY status.

Please assist me with resolving this issue. I have attached my code for your review.

Thanks & Regards,

Janakiraman S

0 Kudos
Reply
1 Solution
2,228 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Do not call strncpy((char *)Rx_Buffer,(const char *)UserData,50);  The received data already in Rx_Buffer. For the detail, please check the Lpuart_Uart_Ip_GetData in Lpuart_Uart_Ip_RxIrqHandler.

Change the Optimization Level from -Os to -O0 or -O1.

change Optimization Level.png

View solution in original post

14 Replies
2,447 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

Did you modify the LpuartFlexio_Uart_Ip_Example_S32K344 example? If not, did you follow the 2.1.2 Connections of description.txt? With S32K3XXEVB-Q172 51972 PCB RevA SCH RevA: Connect PTA0(J2.22) - PTD3(J2.10) and PTA1(J2.19) - PTD2(J2.7)

description LpuartFlexio_Uart_Ip_Example_S32K344_RTD300.png


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply
2,443 Views
janakiraman-NTL
Contributor II

Hi Robin Shen,

Thanks for your reply.

I followed the 2.1.2 connections in the text file without any modifications, but there hasn't been any progress.

after shorting these pins, PTD3 and PTD2 connected to the TTL converter to check the data on the Putty application.

Thanks & Regards

Janakiraman

0 Kudos
Reply
2,437 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Sorry. The Connections in description.txt is wrong. This project actually uses these pins:

LpuartFlexio_Uart_Ip_Example_S32K344_RTD300 Pins Connections.png

If it still doesn't work, try updating S32K3 RTD 3.0.0 P07 and test it again.

0 Kudos
Reply
2,378 Views
janakiraman-NTL
Contributor II

Hi Robin,

I have tried, still its not working.

I wired PTD2 to TTL rx and PTD3 to TTL tx.

I then verified in Putty that I had not received any data.

Please assist me in resolving this problem.

Thanks,

Janakiraman

Screenshot (18).png

0 Kudos
Reply
2,374 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Would you please connect PTD0(J37.3) - PTD3(J2.10) and PTD1(J37.1) - PTD2(J2.7) and test it again?

I don't have an S32k3x4EVB-Q172 development board, but when I connect the signals on S32k3x4EVB-Q257, the Flexio_Uart_Ip_AsyncSend() function returns the FLEXIO_UART_IP_STATUS_SUCCESS status.
According to description.txt, no TTL converter or Putty application is required to test this example.

FLEXIO_UART_IP_STATUS_SUCCESS.png

0 Kudos
Reply
2,369 Views
janakiraman-NTL
Contributor II

Hi Robin,

Thanks, Its working fine.

I would like to view the WELCOME_MSG_1 and WELCOME_MSG_2 in the Putty application. Could you please tell me the steps to take or if I can use another sample code?

Thanks

Janakiraman

0 Kudos
Reply
2,153 Views
rookie_engineer
Contributor I

您好,我也是一位新手,目前在测试UART,想知道您测试这个例程中有没有使用TTL,十分感谢

0 Kudos
Reply
2,364 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

You don't have to call Send_Data, Send_Data is to implement FlexIO_UART and LPUART communication. If you just want to receive data from LPUART3_TX(PTD2), Lpuart_Uart_Ip_AsyncSend can be called to achieve it.

Lpuart_Uart_Ip_AsyncSend.png

0 Kudos
Reply
2,337 Views
janakiraman-NTL
Contributor II

Hi Robin,

"I have attempted it, but it is not functioning. I am not receiving any output ."

"Please let me know if I am missing something."

Thanks,

Janakiraman

0 Kudos
Reply
2,257 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

It looks like transmission is working now, let's discuss the receiving issue in your new question: LpuartFlexio_Uart_Ip_Example_S32K344 with interrupt not working.

0 Kudos
Reply
2,249 Views
janakiraman-NTL
Contributor II

Hi Robin,

Both the transmission and reception are working fine. The data that I am sending from Putty is being received, but the received data cannot be sent back to Putty.

"Can you please help me resolve this issue?"

Thanks,

Janakiraman 

0 Kudos
Reply
2,229 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Do not call strncpy((char *)Rx_Buffer,(const char *)UserData,50);  The received data already in Rx_Buffer. For the detail, please check the Lpuart_Uart_Ip_GetData in Lpuart_Uart_Ip_RxIrqHandler.

Change the Optimization Level from -Os to -O0 or -O1.

change Optimization Level.png

2,223 Views
janakiraman-NTL
Contributor II

Dear Robin,

I wanted to take a moment to express my gratitude for your assistance. Thank you very much for your help.

Best regards,
Janakiraman

0 Kudos
Reply
2,220 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

You are welcome.

0 Kudos
Reply