Skip to main content
HChen.13
Visitor II
July 1, 2023
Question

HAL_RCCEx_PeriphCLKConfig() failed on Step RUN in debug mode

  • July 1, 2023
  • 0 replies
  • 786 views

Dear Sir,
My program is failed due to "void SystemClock_Config(void)" function of main.c
on:
if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK)
{
Error_Handler();
}
1) I am just using STM32CubeIDE 1.11.2 for NUCLEO-L053R8 on STM32 Nucleo-64 boards (MB1136).
By the way, I also solderd 8MHz crystal on that board for using 500KHz RTC's Clock.
2) Why while(1) { } of main.c always be cleaned as following while I regenerated code ?
while (1)
{
/* USER CODE END WHILE */

/* USER CODE BEGIN 3 */
}
/* USER CODE END 3 */
3) Enclosed is the RTC.ioc file

 

 

    This topic has been closed for replies.