STOP mode and DWT
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-05-27 5:06 AM
Hello everyone,
stm32l series MCU going in STOP mode and dwt has been enabled before, RTC wake it up with 20 seconds. Callback is called with 20 seconds and always dw_val increments with 2 sec. What is going on the backgorund. Normally as much as I got it , MCU all clocks must be stop in stop mode and dwt can't count.
void HAL_RTCEx_WakeUpTimerEventCallback(RTC_HandleTypeDef *hrtc)
{
SystemClock_Config();
HAL_SuspendTick();
dw_val = DWT->CYCCNT / (SystemCoreClock / 1000);
}
Labels:
- Labels:
-
RTC
This discussion is locked. Please start a new topic to ask your question.
0 REPLIES 0
