To configure the wake up timer to 60s the WakeUpCounter is set to 0xFFFF: Wakeup Time Base = 16 /(~32.000KHz) = ~0.5 ms Wakeup Time = 0.5 ms * WakeUpCounter Therefore, with wake-up counter = 0xFFFF = 65,535 Wakeup Time = 0,5 ms * 65,535 = 32,7675 s ~ 33 sec. */ HAL_RTCEx_SetWakeUpTimer_IT(&RTCHandle, 0x0FFFF, RTC_WAKEUPCLOCK_RTCCLK_DIV16); /* Enter the ShutDown mode */ HAL_PWREx_EnterSHUTDOWNMode();