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.
Generated code on pin_mux.c :
I also created a new component for lpuart2:
This is my initialization on my .c file:
With this simple code it gets stucked on LPUART_DRV_GetTransmitStatus function.
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
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.
You can try with PTC8, PTC9.
Regards,
Daniel