cancel
Showing results for 
Search instead for 
Did you mean: 

more time before WWDG activation

MMath.10
Associate II

Hi,

I use WWDG for my project.

That work great in error case but i have some spontaneous activation.

How can i configure WWDG to have a higher period?

here my init,

i'm i write to take WWDG_PRESCALER_8 instead of WWDG_PRESCALER_1?

/**
  * @brief WWDG Initialization Function
  * @param None
  * @retval None
  */
static void MX_WWDG_Init(void)
{
 
  /* USER CODE BEGIN WWDG_Init 0 */
 
  /* USER CODE END WWDG_Init 0 */
 
  /* USER CODE BEGIN WWDG_Init 1 */
 
  /* USER CODE END WWDG_Init 1 */
  hwwdg.Instance = WWDG;
  hwwdg.Init.Prescaler = WWDG_PRESCALER_8;
  hwwdg.Init.Window = 0x7F;
  hwwdg.Init.Counter = 0x7F;
  hwwdg.Init.EWIMode = WWDG_EWI_DISABLE;
  if (HAL_WWDG_Init(&hwwdg) != HAL_OK)
  {
    Error_Handler();
  }
  /* USER CODE BEGIN WWDG_Init 2 */
 
  /* USER CODE END WWDG_Init 2 */
 
}

0 REPLIES 0