Skip to main content
Associate
Nov 18, 2026 6:57 AM UTC
Question

STM32U375 STOP3 mode: IWDG resets the device although IWDG_STOP option byte is set to Freeze

 

Hello,

I am using an STM32U375 and trying to enter STOP3 mode without any wakeup source.

Device configuration

Option Bytes:

IWDG_SW    = 1
IWDG_STOP = 0
IWDG_STDBY = 1

According to RM, IWDG_STOP = 0 means:

Bit 17 IWDG_STOP:
0: IWDG counter frozen in Stop mode
1: IWDG counter running in Stop mode

The OPTR register value is:

FLASH->OPTR = 0x1FEDF0AA

IWDG configuration

C

hiwdg.Instance = IWDG;

hiwdg.Init.Prescaler = IWDG_PRESCALER_256;

hiwdg.Init.Window = 4095;

hiwdg.Init.Reload = 4095;

hiwdg.Init.EWI = 0;

HAL_IWDG_Init(&hiwdg);

Expected timeout is approximately 32.8 seconds (LSI ≈ 32 kHz).

 

STOP3 entry sequence

Before entering STOP3 I clear all wakeup-related flags:

C

RTC->SCR = 0xFFFFFFFF;

TAMP->SCR = 0xFFFFFFFF;

 

__HAL_PWR_CLEAR_FLAG(PWR_FLAG_STOPF);

__HAL_PWR_CLEAR_FLAG(PWR_FLAG_SBF);

 

PWR->WUSCR = 0xFFFFFFFF;

 

EXTI->RPR1 = 0xFFFFFFFF;

EXTI->FPR1 = 0xFFFFFFFF;

 

SysTick->CTRL = 0;

SCB->ICSR = SCB_ICSR_PENDSTCLR_Msk;

 

Then:

C

MODIFY_REG(PWR->CR1,

PWR_CR1_LPMS,

PWR_CR1_LPMS_0 | PWR_CR1_LPMS_1); // STOP3

 

SET_BIT(SCB->SCR, SCB_SCR_SLEEPDEEP_Msk);

 

HAL_IWDG_Refresh(&hiwdg);

 

__DSB();

__ISB();

 

__WFI();

What I observed

Before executing __WFI():

PWR->CR1 LPMS = STOP3
SCB->SCR SLEEPDEEP = 1

Wakeup-related flags:

PWR WUFx = 0
NVIC->ISPR[0] = 0
NVIC->ISPR[1] = 0

RTC state:

RTC->ICSR = 0x27
WUTWF = 1

UART status only shows normal flags:

TC = 1
TXFNF = 1

After entering STOP3, code execution never reaches the statement following __WFI().

However, after approximately 30-33 seconds, the device resets and:

RCC reset flags:
IWDGRSTF = 1

The reset interval matches the configured IWDG timeout.

My question

Based on the documentation, I would expect the IWDG to be frozen in STOP mode because:

IWDG_STOP = 0

However, the observed behavior suggests that the IWDG continues running while the device is in STOP3.

Is there any known limitation, errata, or specific condition on STM32U375 where:

  • IWDG continues running in STOP3 despite IWDG_STOP = 0, or
  • STOP3 behaves differently from other STOP modes regarding IWDG freeze?

Any guidance would be appreciated.

Thanks.

1 reply

KDJEM.1
ST Technical Moderator
Nov 19, 2026 10:48 AM UTC

Hello ​@mo.t ;

 

According to RM0487, the IWDG early wakeup interrupt does not wake up the device from Stop 3 mode.

Do you get the same issue when using STOP 0 or STOP 1 modes?

 

Thank you.

Kaouthar

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.