UART

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

UART

2,698 次查看
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,499 次查看
AhmedRiad
Contributor I

hi PetrS , 
Issue solved ,thank you 

0 项奖励
回复

1,832 次查看
sbusc
Contributor I

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

0 项奖励
回复

2,603 次查看
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,502 次查看
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,651 次查看
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,639 次查看
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,663 次查看
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 项奖励
回复