s32k118 uart AsyncReceive MCAL not working

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

s32k118 uart AsyncReceive MCAL not working

815件の閲覧回数
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 返信

795件の閲覧回数
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 件の賞賛
返信