cancel
Showing results for 
Search instead for 
Did you mean: 

IWDG - EWI by LL initialization error of omission

ScottyWinsome
Associate II

CubeMX v6.17.0

Enable the IWDG for 1-second and the EWI for 50-msecs as shown in the screen capture, enable the IWDG interrupt and in the Project Manager choose LL for the IWDG.
Note that the iwdg.c module with basic initialization is produced and IWDG_IRQHandler() is added to the stm32u5xx_it.c module, but EWI initialization is omitted even though the following setting in the CubeMX is set to non-zero:
IWDG Early Wakeup Interrupt                 51

1. the IWDG_IRQHandler() is missing the check for LL_IWDG_IsActiveFlag_EWIF(IWDG) and clearing if it is set

2. the MX_IWDG_Init() is missing all setup of the EWI

 

 

iwdg-ewi.png

0 REPLIES 0