Associate III
January 27, 2026
Question
STM32WL blocked in RTC initialization
- January 27, 2026
- 0 replies
- 114 views
Hi,
I'm working with a STM32WL5MOC with the STM32Cube FW_WL V1.4.0. In my main.c I have this initialization:
MX_GPIO_Init();
MX_DMA_Init();
MX_RTC_Init();
MX_LPUART1_UART_Init();
MX_USART1_UART_Init();
MX_ADC_Init();
MX_CRC_Init();
MX_SPI1_Init();
MX_LoRaWAN_Init();I put the MX_LoRaWAN_Init after all inizialization. However, I noticed that the code get stacked in MX_RTC_Init();, in particular on here if (HAL_RTCEx_SetSSRU_IT(&hrtc) != HAL_OK).
I attach the ioc file and the main.
Thanks.
