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
已解决! 转到解答。
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.
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)
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.
-------------------------------------------------------------------------------
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
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
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.
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
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.
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.
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.