This is an automated email from Gerrit. Oleksij Rempel ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/4387
-- gerrit commit fb62459e247f47732f0a87cacd3f8bb45b2c66e8 Author: Oleksij Rempel <[email protected]> Date: Sat Dec 2 19:55:11 2017 +0100 tcl/target/atheros_ar9331: add watchdog support Change-Id: Iec8ca20020f43dab948d8c5c54a548cfb9486a74 Signed-off-by: Oleksij Rempel <[email protected]> diff --git a/tcl/target/atheros_ar9331.cfg b/tcl/target/atheros_ar9331.cfg index 137dc09..b933353 100644 --- a/tcl/target/atheros_ar9331.cfg +++ b/tcl/target/atheros_ar9331.cfg @@ -17,6 +17,8 @@ jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id $_CPUTAPID set _TARGETNAME $_CHIPNAME.cpu target create $_TARGETNAME mips_m4k -endian big -chain-position $_TARGETNAME +gdb_breakpoint_override hard + proc ar9331_25mhz_pll_init {} { mww 0xb8050008 0x00018004 ;# bypass PLL; AHB_POST_DIV - ratio 4 mww 0xb8050004 0x00000352 ;# 34000(ns)/40ns(25MHz) = 0x352 (850) @@ -101,3 +103,11 @@ proc ar9331_generic_ram_init {} { ar9331_ddr1_init } } + +proc disable_watchdog { } { + ;# disable watchdog + mww 0xb8060008 0x0 +} + +$_TARGETNAME configure -event reset-halt-post { disable_watchdog } +$_TARGETNAME configure -event reset-end { disable_watchdog } -- ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
