2025-04-07 6:10 PM - edited 2025-04-07 6:32 PM
NUCLEO-U5A5ZJ-Q
STM32CubeIDE Version 1.17.0
STM32Cube MCU Package for STM32U5 Series 1.7.0
In the call chain from main() -> SystemClock_Config() -> HAL_RCC_OscConfig(), HAL_OK is not being returned.
It seems that the HSE configuration is failing. After calling __HAL_RCC_HSE_CONFIG, the code waits for the HSE to become ready, but it appears to be timing out.
I created and built the project as described below.
(1) STM32 project -> Borad Selector -> NUCLEO-U5A5ZJ-Q -> Finish
(2) Project -> Build All
I haven't made any code changes, but if anyone has an idea of what might be causing this, I would appreciate your input.
Solved! Go to Solution.
2025-04-09 4:40 AM
Hello @Seiji_Hiraki
Actually, in SystemClock_Config() function, HSE state is generated by default as RCC_HSE_BYPASS, please make sure to update it to state ON (RCC_OscInitStruct.HSEState = RCC_HSE_ON)
With regards
2025-04-08 2:11 AM
Hello @Seiji_Hiraki, which example exactly you are testing please ?
2025-04-08 4:47 PM
Hi, @SirineST , Thank you for your reply.
The example is generated using the steps below.
Project Explorer -> New -> STM32 project -> Board Selector -> NUCLEO-U5A5ZJ-Q -> Finish
When I click 'Finish', the 'Board Project Options' dialog appears. In the dialog, I made the following selections. A screenshot is also attached.
Checked 'Generate demonstration code'
Checked 'USER LED GREEN', 'USER LED BLUE', 'USER LED RED',
Checked 'USER BUTTON', 'Virtual Com Port'
Pressed OK
2025-04-09 4:40 AM
Hello @Seiji_Hiraki
Actually, in SystemClock_Config() function, HSE state is generated by default as RCC_HSE_BYPASS, please make sure to update it to state ON (RCC_OscInitStruct.HSEState = RCC_HSE_ON)
With regards
2025-04-09 6:10 PM
Hi, @SirineST
It worked after I made the update as you suggested.
I understand that since the evaluation board is equipped with a crystal, it is necessary to set RCC_HSE_ON.
I hope the default value in the example will be updated accordingly.
Thank you very much.