Skip to content

Commit f9b701b

Browse files
committed
[RTC] Do not reset RTC Domain
Backup domain is handled by HAL_RCCEx_PeriphCLKConfig() when changing RTC clock source. If one other peripheral uses LSE and RTC do not use it, force reset of the backup domain will break this peripheral. Signed-off-by: Frederic.Pillon <[email protected]>
1 parent 1e80170 commit f9b701b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

cores/arduino/stm32/rtc.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,6 @@ void RTC_init(hourFormat_t format, sourceClock_t source)
321321
/* Allow access to Backup domain */
322322
HAL_PWR_EnableBkUpAccess();
323323
#endif
324-
/* Reset RTC Domain */
325-
__HAL_RCC_BACKUPRESET_FORCE();
326-
__HAL_RCC_BACKUPRESET_RELEASE();
327324

328325
/* Init RTC clock */
329326
RTC_initClock(source);

0 commit comments

Comments
 (0)