2018-02-15 01:48 AM
Hi,
I am trying to stop the watchdog when I hit suspend in TrueStudio.
Is there something to add in the startup scripts? Or another option to do that ?
Thanks,
A.
2018-02-15 05:03 AM
Check DBGMCU settings (see also RM for your specific STM32 part)
2018-02-15 06:25 AM
,
,
I did it that way:
/* IWDG init function */
,
static void MX_IWDG1_Init(void),
{,
hiwdg1.Instance = IWDG1,,
hiwdg1.Init.Prescaler = IWDG_PRESCALER_256,,
hiwdg1.Init.Reload = 4095,,
hiwdg1.Init.Window = 4095,if(HAL_IWDG_Init(&,hiwdg1) != HAL_OK)
,
{,
/* Initialization Error */,
Error_Handler(),,
}♯ ifdef DEBUG
,
__HAL_DBGMCU_FREEZE_IWDG1(),,
♯ else,
♯ endif}