I want to connect NUCLEO-L031K6 with my PC by UART. I use STM32CubeMX to generate project.
In the project, LPUART1 is always disable and cannot be configured.
I configure USART2 to asynchronous, consequently PA2 and PA15 become green.
Unfortunately, PA2 and PA15 is connected with ST-Link.
Now both of LPUART1 and USART2 are not available, so I cannot connect NUCLEO-L031K6 with my PC by UART.
Could anyone tell me how to do for connection of NUCLEO-L031K6 with my PC by UART?