tcl/target/atsamv: disable watchdog in reset-init event
Prevent disrupting of 'flash erase_check' or 'flash verify_image' running longer than 16 seconds. Change-Id: I545a1155ac0d237c49f2f3a27235d8a67df2a61b Signed-off-by: Tomas Vanek <vanekt@fbl.cz> Reviewed-on: https://review.openocd.org/c/openocd/+/9060 Tested-by: jenkins Reviewed-by: Michal Lenc <michallenc@seznam.cz>
This commit is contained in:
@@ -41,6 +41,11 @@ target create $_TARGETNAME cortex_m -endian $_ENDIAN -dap $_CHIPNAME.dap
|
||||
|
||||
$_TARGETNAME configure -work-area-phys 0x20400000 -work-area-size $_WORKAREASIZE -work-area-backup 0
|
||||
|
||||
$_TARGETNAME configure -event reset-init {
|
||||
# WDT_MR = WDDIS (disable watchdog)
|
||||
mww 0x400E1854 0x8000
|
||||
}
|
||||
|
||||
adapter speed 1800
|
||||
|
||||
if {![using_hla]} {
|
||||
|
||||
Reference in New Issue
Block a user