S32k344 Baud Rate Issue

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32k344 Baud Rate Issue

8,948 次查看
Vamsi421
Contributor II

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 

标记 (1)
0 项奖励
回复
7 回复数

8,909 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

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.
-------------------------------------------------------------------------------

0 项奖励
回复

8,873 次查看
Vamsi421
Contributor II
Hi,
Autosar Version : 4.7.0
* Autosar Revision : ASR_REL_4_7_REV_0000
* Autosar Conf.Variant :
* SW Version : 3.0.0
* Build Version : S32K3_RTD_3_0_0_D2303_ASR_REL_4_7_REV_0000_20230331
* Development board model:S32K344HMS
0 项奖励
回复

8,857 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

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.

0 项奖励
回复

8,844 次查看
Vamsi421
Contributor II
0 项奖励
回复

8,822 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

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?

0 项奖励
回复

8,812 次查看
Vamsi421
Contributor II
send me the test project with 115200 baudrate
0 项奖励
回复

8,797 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

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.

0 项奖励
回复