Window watchdog Reset issue when WW1RSC = 0 in Stm32H747I-Disco
I have configured WWDG Timer in CM7 of Stm32H747I-Disco and configured WW1RSC=0 in RCC global control register (RCC_GCR) for CM7 Reset only instead of system reset.
Issue:
HAL_WWDG_EarlyWakeupCallback is getting called before watchdog Reset. but afrer CM7 Reset, some times it is going to hardfault and not booting again and some times booting properly.
but in both cases, clock configuration of CM4 is disturbed.
main code as follows
/* Reset of all peripherals, Initializes the Flash interface and the Systick. */
HAL_Init();
/* USER CODE BEGIN Init */
/* Configure the system clock */
SystemClock_Config();
/* Configure the peripherals common clocks */
PeriphCommonClock_Config();
MX_GPIO_Init();
MX_TIM7_Init();
// MX_WWDG1_Init();
MX_USART1_UART_Init();
/* USER CODE BEGIN 2 */
if(is_wwdg_reset)
{
printf("After Watchdog Reset\n");
}
else
{
printf("After Reset\n");
}
HAL_GPIO_WritePin(GPIOI,LED1_Pin,GPIO_PIN_SET);
HAL_Delay(1000);
HAL_GPIO_WritePin(GPIOI,LED1_Pin,GPIO_PIN_RESET);
HAL_Delay(1000);
MX_WWDG1_Init();
HAL_TIM_Base_Start_IT(&htim7);
