s32k118 uart AsyncReceive MCAL not working

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

s32k118 uart AsyncReceive MCAL not working

330 次查看
sbusc
Contributor I

Hi everyone, 
I have an evaluation board with a s32k118. I progam with S32 Design Studio and use S32K1 AUTOSAR 4.4 - R21 RTD 2.0.0 D2308 Example Projets for the uart_Eample_S32118. When I want to run the program, I get stuck on this line because the status is in error:

sbusc_0-1714142047789.png

I don't modify the example code. This is my main : 

sbusc_1-1714142128022.png

 

This is the function send_Data : 

sbusc_7-1714142468709.png

When I use UartSyncReceive, it's working well. 

Can you please help me with this ? 

PS : The Uart_AsyncSend is working well. 

Thank you in advance

sbusc_2-1714142313192.pngsbusc_3-1714142343464.pngsbusc_4-1714142371697.png

sbusc_5-1714142390825.pngsbusc_6-1714142398917.png

 

 

标签 (1)
0 项奖励
回复
1 回复

310 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @sbusc 

The examples are provided to work out of the box. As your code gets stuck in Uart_GetStatus() the first time it is used, it looks like the receiver in this case UART_RX has a problem. Verify that the pins are connected correctly, Lpuart instance 0, communicates with Flexio instance 0 channel 0 for Rx, and channel 1 for Tx. 

The available board schematics can be downloaded from S32K118EVB Evaluation Board – Schematics and S32K118EVB Evaluation Board - REV A Design Files

 

B.R.

VaneB

0 项奖励
回复