From b037eb65742c6b56718a40e82c784602541bc8e2 Mon Sep 17 00:00:00 2001 From: Casper Meijn Date: Sat, 26 Sep 2020 13:03:34 +0200 Subject: [PATCH] hw/bsp/pinetime: Setup 7 second watchdog Change the watchdog settings, as the new version of the default bootloader for the PineTime also setup a watchdog with a 7 second interval. Without this change the processor will be reset a few seconds after the application was started. --- hw/bsp/pinetime/syscfg.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/bsp/pinetime/syscfg.yml b/hw/bsp/pinetime/syscfg.yml index 97edf0e89a..7986de6cbc 100644 --- a/hw/bsp/pinetime/syscfg.yml +++ b/hw/bsp/pinetime/syscfg.yml @@ -106,6 +106,10 @@ syscfg.vals: SPIFLASH_TCE_TYPICAL: 3000000 # Chip erase time (us) SPIFLASH_TCE_MAXIMUM: 10000000 # Maximum chip erase time (us) + # The default PineTime bootloader will setup a 7 second watchdog + SANITY_INTERVAL: 5000 + WATCHDOG_INTERVAL: 7000 + syscfg.vals.BSP_BATTERY: # ADC needed for battery voltage ADC_0: 1