2025-04-12 7:13 AM
Hello,
I am working with the STM32-Nucleo-H7S3L8 board.
I am using the template project from the repository, which includes the Boot project, Appli project, and the External Memory Loader project.
The clock was configured in the Boot project.
I want to change the clock prescalers from within the Appli project, but I can't manage to do it.
After I added code to update the clock, nothing happened—I verified this by checking the RCC registers.
My question is: why can't I change the clock configuration from the Appli project?
2025-04-12 7:24 AM
Show the code, ensure HAL_* functions return HAL_OK, which generally indicates success. Ensure the code to change the clock is run before you check the RCC registers. Step through code to see where and why it fails to change clocks.
2025-04-12 7:42 AM
IYou're right — the HAL_* functions are returning HAL_OK, so from the HAL's perspective, everything seems fine. However, the issue likely stems from the fact that the clock configuration is only done in the boot project, and the application project just calls SystemCoreClockUpdate() without reconfiguring the clock tree. So i think i can't change the clock from the appli project.