Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STM32F1: HAL_RTC_SetAlarm_IT corrupts system time #8399

Closed
Arjun765 opened this issue Oct 12, 2018 · 4 comments
Closed

STM32F1: HAL_RTC_SetAlarm_IT corrupts system time #8399

Arjun765 opened this issue Oct 12, 2018 · 4 comments

Comments

@Arjun765
Copy link

Arjun765 commented Oct 12, 2018

Description

Trying to set RTC wakeup by calling HAL_RTC_SetAlarm_IT corrupts system time.
Related: #8213 #8191

Issue request type

[ ] Question
[ ] Enhancement
[x] Bug

@ciarmcom
Copy link
Member

Internal Jira reference: https://jira.arm.com/browse/MBOCUSTRIA-28

@elm3
Copy link

elm3 commented Jan 7, 2019

@ARMmbed/team-st-mcd

@LMESTM
Copy link
Contributor

LMESTM commented Jan 7, 2019

@Arjun765
By calling HAL_RTC_SetAlarm_IT you're bypassing mbed Time layer so this is not recommended to do so. You should rather use mbed APIs.

mbed is designed so that you can program any timer and mbed-os is in charge of programing RTC or low power tickers to wake-up the system when needed, you don't have to program an RTC alarm explicitly.

There have been many similar discussions for instance here : #7156

@TacoGrandeTX
Copy link
Contributor

@Arjun765 We're going to close this as a non-issue based on the comments from @LMESTM. If you have a problem using the Mbed API please raise a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants