2023-07-12 10:42 AM
Hello Folks
I have enabled the watchdog timer for 1.5 second. Here is screenshot of watchdog timer configuration for our ready reference.
**
* @brief IWDG Initialization Function
* @param None
* @retval None
*/
static void MX_IWDG_Init(void)
{
/* USER CODE BEGIN IWDG_Init 0 */
/* USER CODE END IWDG_Init 0 */
/* USER CODE BEGIN IWDG_Init 1 */
/* USER CODE END IWDG_Init 1 */
hiwdg.Instance = IWDG;
hiwdg.Init.Prescaler = IWDG_PRESCALER_16;
hiwdg.Init.Window = 4095;
hiwdg.Init.Reload = 3000;
if (HAL_IWDG_Init(&hiwdg) != HAL_OK)
{
Error_Handler();
}
/* USER CODE BEGIN IWDG_Init 2 */
/* USER CODE END IWDG_Init 2 */
}
Also I'm clearing the watchdog every 500mSec using the following definition and command.
IWDG_HandleTypeDef hiwdg;
HAL_IWDG_Refresh(&hiwdg);
Watchdog is not getting cleared and software is resetting at every 1.5 seconds.
Am I missing anything here please?
Please help me out and respond at the earliest.
Many thanks
With kind regards
Siva