Stm32U083x lpuart3 LSE initialization on CubeMX
Hi,
i working on stm32u083rctx micro with package FW_U0_V1.3.0. I want to report that in CubeMX v6.15 i selected lpuart3 to with LSE oscillator. The execution of product code, when lpuart3 has been initialized goes to Error_Handler() function. In file usart.c into function HAL_UART_MspInit() miss the the line to populate struct PeriphClkInit.Lpuart3ClockSelection with correct clock source. So inside HAL_UART_MspInit(UART_HandleTypeDef* uartHandle) at the appropriate condition (uartHandle->Instance==LPUART3) before to call HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) i inserted:
PeriphClkInit.Lpuart3ClockSelection = RCC_LPUART3CLKSOURCE_LSE;
now is working. I ask to someone to double check this issue. Thank you.
Best regards.
Enrico.
