You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ut...@apache.org on 2020/09/26 13:34:54 UTC

[mynewt-core] branch master updated: hw/bsp/pinetime: Setup 7 second watchdog

This is an automated email from the ASF dual-hosted git repository.

utzig pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 5a55ea7  hw/bsp/pinetime: Setup 7 second watchdog
5a55ea7 is described below

commit 5a55ea78e0e95a21f06e9b848422b1eb5b2bb138
Author: Casper Meijn <ca...@meijn.net>
AuthorDate: Sat Sep 26 13:03:34 2020 +0200

    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 97edf0e..7986de6 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