2024-10-09 12:48 AM
I like to configure IWDG (with early interrupt), but the UI in STM32CubeMX for IWDG lacks the NVIC settings tab compared to WWDG. I know that both units share the same ISR "WWDG_IWDG_IRQHandler", but why do I need to activate WWDG to get the Interrupt code generated? I really just like to use the IWDG due to its low power (stop 2) capabilities, I don't want the WWDG at all.
How can I activate the interrupt code generation for IWDG without activating WWDG?
Is this intentionally or is this a bug in STM32CubeU0 MCU package in STM32CubeMx?
ps. latest available versions installed (6.12.1 + STM32CubeU0 Firmware Package V1.1.0 / 05-June-2024)
2024-10-09 01:31 AM
Hello @chrislro,
The IWDG early wakeup interrupt can be activated by changing this parameter in stm32CubeMX:
Also, there is a separate ISR named for early wakeup using HAL named: HAL_IWDG_EarlyWakeupCallback
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-10-09 02:40 AM - edited 2024-10-09 02:41 AM
Hi,
I have not yet generated the code. I stumbled over the NVIC setting view in STM32CubeMX. When enabling solely IWDG, setting the values and selecting the IWDG early wakeup interrupt as you mentioned, still in the NVIC configuration, the respective NVIC interrupt is NOT selected and also not manually selectable as it is greyed out.
As said, when configuring the WWDG, NVIC allows checkmarking the interrupt.
I assume without the checkmark, also code is not generated for the IWDG early wakeup interrupt ISR. As said I have not yet generated code.
ps. Currently I am using the Nucleo-U031R8