STM32U575 LPUART: what am I missing?
I have LL-API based UART/USART code which runs on an STM32U575 (tested on a NUCLEO-U575ZI-Q board), no problem (@ 115200).
I would like to move this code to the LPUART (pins D0/D1, PG8/PG7, of the board). However, I have failed; not even TX works (a probe connected to PG7/D1 shows low all the time when I transmit data on the LPUART).
The changes I have made to my code are:
- Use the LL_LPUART_ functions instead of the LL_USART_ ones,
- Set AF8 for the pins,
- Use pin PG7 for TX (D1), PG8 for RX (D0),
- Call LL_APB3_GRP1_EnableClock().
- Select LL_RCC_LPUART1_CLKSOURCE_SYSCLK as the clock source for the LPUART (with LL_RCC_SetLPUARTClockSource()) so that it can achieve 115200.
All configurations functions with a return value (e.g. LL_LPUART_Init()) returned success. What have I missed?
