Skip to content

Commit 64dbd53

Browse files
jeromecoutant0xc0170
authored andcommitted
STM32 WATCHDOG : increase timeout value
1 parent 95f746b commit 64dbd53

File tree

8 files changed

+16
-32
lines changed

8 files changed

+16
-32
lines changed

targets/TARGET_STM/TARGET_STM32F0/device/stm32f0xx_hal_iwdg.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,8 @@
124124
/** @defgroup IWDG_Private_Defines IWDG Private Defines
125125
* @{
126126
*/
127-
/* Status register need 5 RC LSI divided by prescaler clock to be updated. With
128-
higher prescaler (256), and according to LSI variation, we need to wait at
129-
least 6 cycles so 39 ms. */
130-
#define HAL_IWDG_DEFAULT_TIMEOUT 39U
127+
/* MBED */
128+
#define HAL_IWDG_DEFAULT_TIMEOUT 96u
131129
/**
132130
* @}
133131
*/

targets/TARGET_STM/TARGET_STM32F1/device/stm32f1xx_hal_iwdg.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,8 @@
119119
/** @defgroup IWDG_Private_Defines IWDG Private Defines
120120
* @{
121121
*/
122-
/* Status register need 5 RC LSI divided by prescaler clock to be updated. With
123-
higher prescaler (256), and according to HSI variation, we need to wait at
124-
least 6 cycles so 48 ms. */
125-
#define HAL_IWDG_DEFAULT_TIMEOUT 48U
122+
/* MBED */
123+
#define HAL_IWDG_DEFAULT_TIMEOUT 96u
126124
/**
127125
* @}
128126
*/

targets/TARGET_STM/TARGET_STM32F2/device/stm32f2xx_hal_iwdg.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,8 @@
119119
/** @defgroup IWDG_Private_Defines IWDG Private Defines
120120
* @{
121121
*/
122-
/* Status register need 5 RC LSI divided by prescaler clock to be updated. With
123-
higher prescaler (256), and according to HSI variation, we need to wait at
124-
least 6 cycles so 48 ms. */
125-
#define HAL_IWDG_DEFAULT_TIMEOUT 48U
122+
/* MBED */
123+
#define HAL_IWDG_DEFAULT_TIMEOUT 96u
126124
/**
127125
* @}
128126
*/

targets/TARGET_STM/TARGET_STM32F3/device/stm32f3xx_hal_iwdg.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,8 @@
126126
/** @defgroup IWDG_Private_Defines IWDG Private Defines
127127
* @{
128128
*/
129-
/* Status register need 5 RC LSI divided by prescaler clock to be updated. With
130-
higher prescaler (256U), and according to HSI variation, we need to wait at
131-
least 6 cycles so 48 ms. */
132-
#define HAL_IWDG_DEFAULT_TIMEOUT 48u
129+
/* MBED */
130+
#define HAL_IWDG_DEFAULT_TIMEOUT 96u
133131
/**
134132
* @}
135133
*/

targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_iwdg.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,8 @@
119119
/** @defgroup IWDG_Private_Defines IWDG Private Defines
120120
* @{
121121
*/
122-
/* Status register need 5 RC LSI divided by prescaler clock to be updated. With
123-
higher prescaler (256), and according to HSI variation, we need to wait at
124-
least 6 cycles so 48 ms. */
125-
#define HAL_IWDG_DEFAULT_TIMEOUT 48U
122+
/* MBED */
123+
#define HAL_IWDG_DEFAULT_TIMEOUT 96u
126124
/**
127125
* @}
128126
*/

targets/TARGET_STM/TARGET_STM32F7/device/stm32f7xx_hal_iwdg.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,8 @@
126126
/** @defgroup IWDG_Private_Defines IWDG Private Defines
127127
* @{
128128
*/
129-
/* Status register need 5 RC LSI divided by prescaler clock to be updated. With
130-
higher prescaler (256), and according to LSI variation, we need to wait at
131-
least 6 cycles so 48 ms. */
132-
#define HAL_IWDG_DEFAULT_TIMEOUT 48u
129+
/* MBED */
130+
#define HAL_IWDG_DEFAULT_TIMEOUT 96u
133131
/**
134132
* @}
135133
*/

targets/TARGET_STM/TARGET_STM32L1/device/stm32l1xx_hal_iwdg.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,8 @@
120120
/** @defgroup IWDG_Private_Defines IWDG Private Defines
121121
* @{
122122
*/
123-
/* Status register need 5 RC LSI divided by prescaler clock to be updated. With
124-
higher prescaler (256), and according to HSI variation, we need to wait at
125-
least 6 cycles so 48 ms. */
126-
#define HAL_IWDG_DEFAULT_TIMEOUT 48u
123+
/* MBED */
124+
#define HAL_IWDG_DEFAULT_TIMEOUT 96u
127125
/**
128126
* @}
129127
*/

targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_iwdg.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,8 @@
124124
/** @defgroup IWDG_Private_Defines IWDG Private Defines
125125
* @{
126126
*/
127-
/* Status register need 5 RC LSI divided by prescaler clock to be updated. With
128-
higher prescaler (256), and according to HSI variation, we need to wait at
129-
least 6 cycles so 48 ms. */
130-
#define HAL_IWDG_DEFAULT_TIMEOUT 48u
127+
/* MBED */
128+
#define HAL_IWDG_DEFAULT_TIMEOUT 96u
131129
/**
132130
* @}
133131
*/

0 commit comments

Comments
 (0)