From e927ad57bee4deb1cec236559f2c082342621f4f Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 30 Jul 2011 20:10:50 +0200 Subject: at91lib: disable the watchdog when we come out of DFU --- at91lib/boards/simtrace/board_cstartup.S | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'at91lib/boards/simtrace') diff --git a/at91lib/boards/simtrace/board_cstartup.S b/at91lib/boards/simtrace/board_cstartup.S index 92bcf8b..0752c29 100644 --- a/at91lib/boards/simtrace/board_cstartup.S +++ b/at91lib/boards/simtrace/board_cstartup.S @@ -138,6 +138,11 @@ resetHandler: ldr r0, =LowLevelInit mov lr, pc bx r0 +#else + /* explicitly disable the watchdog timer */ + ldr r0, =AT91C_BASE_WDTC + mov r1, #AT91C_WDTC_WDDIS + str r1, [r0, #4] #endif /* flash_dfu */ /* Initialize the relocate segment */ -- cgit v1.2.3