Skip to main content
frackers
Senior
November 2, 2018
Question

Should HAL_RTC_Init be preceded by HAL_PWR_EnableBkUpAccess

  • November 2, 2018
  • 1 reply
  • 498 views

CubeMX generated code to enable RTC Wakeup starts with HAL_RTC_Init but the examples in the HAL library 'unlock' the RTC via the PWR module using HAL_PWR_EnableBkUpAccess.

Which is correct? CubeMX or Example code in HAL?

This topic has been closed for replies.

1 reply

Technical Moderator
November 2, 2018

Hello @frackers​ ,

We will check this issue, then we come back to you as soon as possible.

Kind Regards,

Imen.

When your question is answered, please close this topic by clicking "Accept as Solution".Thanks Imen