Hi,
I am using Nxp S32k344 board in my project . In this sending data through UART using 115200 Baud rate is working fine but in receiving the data is corrupted in the buffer. I am trying to receive "12345678" but i am receiving some garbage characters as provided in the below attachments.
Note: I am using LPUART instance 8 with clock frequency 80MHZ
Hi
Please tell me the S32K3 RTD version, development board model, AUTOSAR MCAL or non-AUTOSAR. Otherwise, I can only suggest you refer to the LPUART routine in S32K3 RTD.
If you use DMA, it is recommended to refer to The S32K344 Lpuart transfer cannot receive data correctly when DMA enable
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.
-------------------------------------------------------------------------------
Sorry, I don't know which development board you mean by S32K344HMS. Please send me the link. If it is convenient, please upload a simple test project. Otherwise, it is difficult to find the cause quickly with so little information.
Did you use TTL-USB serial module to connect UART signals of S32K3 to PC? Have you used an oscilloscope or logic analyzer to measure the serial port signals sent from the PC and the signals sent from the S32K3, such as baud rate and size of the data frame\parity\Stop bits?
The information you provided is too little, so I can't help you find the cause of the problem quickly. Would you mind sending me the test project?
Please test the example K344_UART_DMA_Working.zip (S32K3_RTD_3_0_0_D2303) that I gave you in the web link to ensure that your TTL-USB serial module and PC host computer are working properly.
PTA29(lpuart2_tx) and PTA30(lpuart2_rx)
9600 baudrate
If it can be received correctly, then only a slight modification is needed.