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

RTC bug in HAL (Clearing RTC_CR_BYPSHAD bit) - wrong retype (uint8_t) #79

Open
ravo opened this issue Nov 11, 2024 · 0 comments
Open

RTC bug in HAL (Clearing RTC_CR_BYPSHAD bit) - wrong retype (uint8_t) #79

ravo opened this issue Nov 11, 2024 · 0 comments

Comments

@ravo
Copy link

ravo commented Nov 11, 2024

Dears,

I found same error as STMicroelectronics/stm32f4xx-hal-driver#36. I forgot to mention also that these error could be in whole HAL across different MCUs. I also using STM32H7 and in 1.11.2 same error. I am not "expert" in github. Pleas apologize me if I double the original issue 36.

hrtc->Instance->CR |= (uint8_t)RTC_CR_BYPSHAD;

Which produce upper 24 bits are zeroed when modifying 32 bit RTC_CR register. Please correct to
hrtc->Instance->CR &= ~RTC_CR_BYPSHAD;

Regards
Radim

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

No branches or pull requests

1 participant