UART

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

UART

2,782件の閲覧回数
AhmedRiad
Contributor I

Hello NXP , 
I'm using EVK S32K118-64
For LPUART0 
Tx is working fine (Tested the Pin itself on the board for example PTB1 and read the Tx frame sent from the EVK using oscilloscope )
but Rx pins doesn't detect UART frames .

my question here is related to the EVK schematic for LPUART0, is LPUART0 RX pins are connected to Open-SDA debug interface by default and I can't use the LPUART0 pins on the S32K118 (PTB0 ,PTC2,PTA2)?

is there a jumper I need to remove , to be able to use Rx LPUART0 pins (PTB0 ,PTC2,PTA2)? 

Thanks in advance.

0 件の賞賛
返信
7 返答(返信)

2,583件の閲覧回数
AhmedRiad
Contributor I

hi PetrS , 
Issue solved ,thank you 

0 件の賞賛
返信

1,916件の閲覧回数
sbusc
Contributor I

Hi Ahmed what is the finally solution ? Thank you in advance

0 件の賞賛
返信

2,687件の閲覧回数
AhmedRiad
Contributor I

Hello PetrS, 
Thanks for your reply, I have now LPUART0-Tx (PTB1) Pin connected with LPUART0-RX (PTC2) Pin. (HW connection)
I was trying to test UART RX pin by sending TX uart frames from PTB1
using EB Tresos plugins for uart  I use the following : 
Uart_SyncSend to send UART frames  (API returns E_OK ) (Actual uart messages are sent on PTB1)
Uart_SyncReceive to receive UART frames after calling Uart_SyncSend  ( API always timeout , and returns E_NOT_OK )


0 件の賞賛
返信

2,586件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

I do not know this HLD driver much but try first call Uart_AsyncReceive and then Uart_SyncSend.

BR, Petr

0 件の賞賛
返信

2,735件の閲覧回数
AhmedRiad
Contributor I

Hi ,
Thanks for your reply , if I used  openSDA JTAG (Connected a debugger) instead of using OPenSDA USB with Design stuido ,will I be able to use PTB0 ?

0 件の賞賛
返信

2,724件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

as the OpenSDA MCU drives through level shifter this PTB0 pin, then you cannot connect another output signal to it, or configure PTB0 as output, unless you remove R24 or R666.

BR, Petr

0 件の賞賛
返信

2,747件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

yes, PTB0 is directly connected to OpenSDA UART interface via R24&R666 zero ohms resistors.
If you want to use LPUART RX function on different pins do not configure PTB0 for LPUART RX but rather config different pin, either PTC2 or PTA2.

BR, Petr

0 件の賞賛
返信