cancel
Showing results for 
Search instead for 
Did you mean: 

Should HAL_RTC_Init be preceded by HAL_PWR_EnableBkUpAccess

frackers
Senior

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?

1 REPLY 1
Imen.D
ST Employee

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