From e524164cb59bd67042a21a8bdfbed74204d1f3d1 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Sun, 27 Dec 2020 12:39:13 +0100 Subject: [PATCH] longer watchdog period --- cube/Core/Src/iwdg.c | 2 +- cube/Makefile | 2 +- cube/Makefile-bak | 2 +- cube/cube.ioc | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cube/Core/Src/iwdg.c b/cube/Core/Src/iwdg.c index c353148..b8f2439 100644 --- a/cube/Core/Src/iwdg.c +++ b/cube/Core/Src/iwdg.c @@ -31,7 +31,7 @@ void MX_IWDG_Init(void) { hiwdg.Instance = IWDG; - hiwdg.Init.Prescaler = IWDG_PRESCALER_8; + hiwdg.Init.Prescaler = IWDG_PRESCALER_256; hiwdg.Init.Reload = 4095; if (HAL_IWDG_Init(&hiwdg) != HAL_OK) { diff --git a/cube/Makefile b/cube/Makefile index 6bd816b..4b805cc 100644 --- a/cube/Makefile +++ b/cube/Makefile @@ -1,6 +1,6 @@ # Processed by ../tools/insertMyCode.sh ########################################################################################################################## -# File automatically-generated by tool: [projectgenerator] version: [3.10.0-B14] date: [Sun Dec 27 12:03:42 CET 2020] +# File automatically-generated by tool: [projectgenerator] version: [3.10.0-B14] date: [Sun Dec 27 12:34:13 CET 2020] ########################################################################################################################## # ------------------------------------------------ diff --git a/cube/Makefile-bak b/cube/Makefile-bak index 854dde3..62c3ab1 100644 --- a/cube/Makefile-bak +++ b/cube/Makefile-bak @@ -1,5 +1,5 @@ ########################################################################################################################## -# File automatically-generated by tool: [projectgenerator] version: [3.10.0-B14] date: [Sun Dec 27 12:03:42 CET 2020] +# File automatically-generated by tool: [projectgenerator] version: [3.10.0-B14] date: [Sun Dec 27 12:34:13 CET 2020] ########################################################################################################################## # ------------------------------------------------ diff --git a/cube/cube.ioc b/cube/cube.ioc index 41d9e97..4d97856 100644 --- a/cube/cube.ioc +++ b/cube/cube.ioc @@ -10,7 +10,7 @@ ADC1.master=1 File.Version=6 GPIO.groupedBy=Group By Peripherals IWDG.IPParameters=Prescaler -IWDG.Prescaler=IWDG_PRESCALER_8 +IWDG.Prescaler=IWDG_PRESCALER_256 KeepUserPlacement=false Mcu.Family=STM32F1 Mcu.IP0=ADC1