cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32U083x lpuart3 LSE initialization on CubeMX

enmarke
Visitor

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.

3 REPLIES 3
Souhaib MAZHOUD
ST Employee

Hello @enmarke 

Could you please provide your IOC file in order to investigate the issue?

KR,

Souhaib

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Hi @Souhaib MAZHOUD

sure, i have attached my .ioc file. Thank you.

Best regards.

Enrico

Hello @enmarke 

Thank you for your contribution.

I escalated the issue to the relevant team for fixing (Internal ticket number: 214195Internal ticket number is only for reference, not accessible or usable outside of ST).

KR,

Souhaib

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.