Configure LPUART1 on S32K116EVB with Processor Expert

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Configure LPUART1 on S32K116EVB with Processor Expert

1,077 Views
HayZam
Contributor II

Hello community!

I'm trying to work with to UART communications on my S32K116EVB. 

One for communicating with serial PC (LPUART0) and other one to communicate/control a peripheral (LPUART1).

LPUART0 is configured with the SDA and connected through USB to the PC. This one is working well, I'm able to read and write.

For LPUART1 I want to use pins PTC7 and  PTC6 as LPUART1_TX and LPUART1_RX, respectively, as marked in documentation. I'm unable to receive or send data through it, so I think is not well configured. 

I used as a based the example lpuart_echo_s32k116, and I'm using Processor expert to configure my ports. 

ProcessorExpert_PinsConfig.PNG

Generated code on pin_mux.c :

Pin_mux_Cfile.PNG

I also created a new component for lpuart2:

HayZam_3-1649457229736.png

 

This is my initialization on my .c file:

HayZam_2-1649457021231.png

 

With this simple code it gets stucked on LPUART_DRV_GetTransmitStatus function.

HayZam_1-1649456941107.png

Can you please tell me if I'm doing something wrong, or  how to configure my UART channel with processor Expert?

 

Thanks in advance.

HayZam

 

Labels (1)
0 Kudos
1 Reply

1,041 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @HayZam,

There are probably more issues.

But the pins that you use are not connected to the PTC6, PTC7 headers but to the LIN transceiver instead.

danielmartynek_0-1649757017329.png

 

You can try with PTC8, PTC9.

 

Regards,

Daniel

0 Kudos