Independent watchdog cant be stopped at standby Mode at STM32H735IGK
I am using software Independent watchdog at STM32H735IGK and i want to freeze it when entering standby mode.
I set option byte FW_IWDG_SDBY unchecked but unfortunately it is not working and my program keeps getting out from standby mode.
My code:
At init:
MX_IWDG1_Init();
While the program is running:
__HAL_IWDG_RELOAD_COUNTER(hiwdg);
When entering standby:
HAL_RTCEx_DeactivateWakeUpTimer(&hrtc);
HAL_PWREx_ClearWakeupFlag (PWR_WAKEUP_FLAG_ALL);
__HAL_PWR_CLEAR_FLAG(PWR_FLAG_WU);
__HAL_PWR_CLEAR_WAKEUPFLAG(PWR_FLAG_WKUP1); // E1
__HAL_PWR_CLEAR_WAKEUPFLAG(PWR_FLAG_WKUP4); // INT
//Configuring wakeup pins
PWREx_WakeupPinTypeDef sWakeupPin1;
sWakeupPin1.WakeUpPin = PWR_WAKEUP_PIN1;
sWakeupPin1.PinPolarity = PWR_PIN_POLARITY_LOW; // Flanco de bajada
sWakeupPin1.PinPull = PWR_PIN_PULL_UP;
HAL_PWREx_EnableWakeUpPin(&sWakeupPin1);
PWREx_WakeupPinTypeDef sWakeupPin4;
sWakeupPin4.WakeUpPin = PWR_WAKEUP_PIN4;
sWakeupPin4.PinPolarity = PWR_PIN_POLARITY_LOW; // Flanco de bajada
sWakeupPin4.PinPull = PWR_PIN_PULL_UP;
HAL_PWREx_EnableWakeUpPin(&sWakeupPin4);
__DSB();
__ISB();
HAL_RTCEx_SetWakeUpTimer_IT(&hrtc, 0xFFFF,RTC_WAKEUPCLOCK_RTCCLK_DIV16);
HAL_PWR_EnterSTANDBYMode();
Option bytes seen at Cube Programmer:

Thanks by advance!
