aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32F2xx
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/platforms/STM32F2xx')
-rw-r--r--os/hal/platforms/STM32F2xx/hal_lld.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/os/hal/platforms/STM32F2xx/hal_lld.c b/os/hal/platforms/STM32F2xx/hal_lld.c
index b9af01a92..7cc24f2a0 100644
--- a/os/hal/platforms/STM32F2xx/hal_lld.c
+++ b/os/hal/platforms/STM32F2xx/hal_lld.c
@@ -54,6 +54,7 @@ static void hal_lld_backup_domain_init(void) {
if ((RCC->BDCR & RCC_BDCR_LSEON) == 0) {
/* Backup domain reset.*/
RCC->BDCR = RCC_BDCR_BDRST;
+ RCC->BDCR = 0;
RCC->BDCR = RCC_BDCR_LSEON;
while ((RCC->BDCR & RCC_BDCR_LSERDY) == 0)
; /* Waits until LSE is stable. */