Hello Sofia,
Thank you for your previous explanation.
Based on your reply, my understanding is:
- WDOG WAIT corresponds to a Wait/Sleep-class low-power condition.
- WDOG STOP corresponds to a Stop/Deep-Sleep-class low-power condition.
- The relationship is a functional correspondence rather than a strict one-to-one mapping.
After reviewing the KW47 Reference Manual again, I found the following section:
28.4 Module operation in low power modes
Table 225: Cortex M33 core module operation in low power modes
For WDOGx, the table shows:
- Sleep : ON
- Deep Sleep : Optional
- Power Down : Optional
- Deep Power Down : OFF
From this table, I interpreted that WDOG operation can be configured in at least Deep Sleep and Power Down modes.
To better understand the behavior, I performed a test using a KW47-Loc evaluation board.
Test conditions:
- WDOG enabled
- WDOG refresh is performed from vApplicationIdleHook()
- PWR_EnterLowPower() is executed from FreeRTOS vPortSuppressTicksAndSleep()
- Observe whether a watchdog reset occurs after entering the low-power state
Test results:
Case 1
WAIT=0, STOP=0
→ No watchdog reset occurred
Case 2
WAIT=1, STOP=0
→ Watchdog reset occurred
Case 3
WAIT=0, STOP=1
→ No watchdog reset occurred
My interpretation is that when a watchdog reset occurred, the device entered a low-power state where vApplicationIdleHook() was no longer executed while the watchdog continued running and eventually timed out.
However, a watchdog reset occurred only when WAIT=1 and STOP=0, while no watchdog reset occurred when STOP=1.
Because of this result, I am having difficulty understanding how the WAIT and STOP bits are actually applied to watchdog operation during low-power modes.
Could you please clarify the following points?
1. When the device enters a low-power mode through PWR_EnterLowPower(), is WDOG operation controlled by the WAIT bit or the STOP bit?
2. Does the observed result indicate that the device is actually entering Sleep mode rather than Deep Sleep mode, or should it be interpreted as entering Deep Sleep mode?
3. Does the STOP bit correspond to the Deep Sleep mode described in the Power Modes chapter, or does it refer to a different low-power state?
4. How should the following entries in Table 225 be interpreted with respect to the WDOG WAIT and STOP control bits?
- WDOGx : Optional (Deep Sleep)
- WDOGx : Optional (Power Down)
Thank you for your support.