STM32H5: Adjusting RTC Prescaler Periodically Not Working (Works on STM32H7)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-15 10:17 PM
In my project, I use the RTC with LSI and calibrate it by adjusting the prescaler at regular intervals (e.g., once per day). This method works well on STM32H7, but it doesn't work on STM32H5.
On STM32H5, after changing the prescaler, the RTC either stops or doesn't keep correct time.
Why is this not possible on STM32H5
Solved! Go to Solution.
- Labels:
-
RTC
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-16 12:53 AM
Hello @geoVjohnson
First let me thank you for posting.
Could you please share your IOC so I can check the configuration and reproduce the issue?
THX
Ghofrane
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-16 12:53 AM
Hello @geoVjohnson
First let me thank you for posting.
Could you please share your IOC so I can check the configuration and reproduce the issue?
THX
Ghofrane
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-16 1:15 AM
This code works perfectly for me on the STM32H7. However, when I try the same approach on the STM32H5, it doesn't work. After a lot of searching, I found that some people say you cannot change the RTC prescaler on the STM32H5 due to security features. It seems the hardware keeps returning the same prescaler value as before, even after trying to change it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-19 5:32 AM
@Ghofrane GSOURI Same issue also here, Any solution?
