From 59f198d86dbd87bc40fa6d5a2761f5b1fb680b41 Mon Sep 17 00:00:00 2001 From: Dmitriy Korovkin Date: Wed, 10 Aug 2016 14:28:19 -0400 Subject: [PATCH] arm atmel sam3: Disable watchdog timer Watchdog timer is enabled after the board reset. It is not used by Zephyr OS, and having it enabled causes system resets during CPU-intensive operations. Change-Id: If5583dbd2d2fb2206274467c523d6b5d147f1fbe Signed-off-by: Dmitriy Korovkin --- arch/arm/soc/atmel_sam3/soc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/soc/atmel_sam3/soc.c b/arch/arm/soc/atmel_sam3/soc.c index 16edb71d221..35c495326a6 100644 --- a/arch/arm/soc/atmel_sam3/soc.c +++ b/arch/arm/soc/atmel_sam3/soc.c @@ -187,6 +187,9 @@ static int atmel_sam3_init(struct device *arg) /* Setup master clock */ clock_init(); + /* Disable watchdog timer, not used by system */ + __WDT->mr |= WDT_DISABLE; + /* Install default handler that simply resets the CPU * if configured in the kernel, NOP otherwise */