Skip to main content
Associate
April 12, 2025
Question

Stm32h7rs clock change

  • April 12, 2025
  • 1 reply
  • 381 views

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?

1 reply

TDK
Super User
April 12, 2025

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.

"If you feel a post has answered your question, please click ""Accept as Solution""."
MedFediAuthor
Associate
April 12, 2025

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.