CONFIG_IWDG_STM32_INITIAL_TIMEOUT

Value for IWDG timeout in ms

Type: int

Help

Set initial timeout value for IWDG in ms if enabled at boot.

The min timeout supported is 1 ms. The max timeout depends on the MCU’s LSI clock frequency and can be calculated with:

max. prescaler value (256) * max. reload ticks (4096) / LSI freq.

Limiting maximum timeout to a safe value of 26214 ms here, which was calculated for highest LSI frequency among STM32 MCUs of 40 kHz.

Direct dependencies

IWDG_STM32 && WATCHDOG

(Includes any dependencies from ifs and menus.)

Default

  • 100

Kconfig definition

At <Zephyr>/drivers/watchdog/Kconfig.stm32:14

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:32<Zephyr>/drivers/Kconfig:52<Zephyr>/drivers/watchdog/Kconfig:33

Menu path: (Top) → Device Drivers → Watchdog Support → Independent Watchdog (IWDG) Driver for STM32 family of MCUs

config IWDG_STM32_INITIAL_TIMEOUT
    int "Value for IWDG timeout in ms"
    range 1 26214
    default 100
    depends on IWDG_STM32 && WATCHDOG
    help
      Set initial timeout value for IWDG in ms if enabled at boot.

      The min timeout supported is 1 ms. The max timeout depends on the
      MCU's LSI clock frequency and can be calculated with:

        max. prescaler value (256) * max. reload ticks (4096) / LSI freq.

      Limiting maximum timeout to a safe value of 26214 ms here, which was
      calculated for highest LSI frequency among STM32 MCUs of 40 kHz.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)