aboutsummaryrefslogtreecommitdiff
path: root/tcl/target
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2014-04-03 14:59:44 -0700
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>2014-06-28 09:30:09 +0000
commitccf4d6d64844410483d2d2513c2c4ed173604649 (patch)
tree005009c8864cbbe8674692e32c910d4a91d735c8 /tcl/target
parentd6fd5d0f9b163fc75eed96e5a8c61f5af9cf44bf (diff)
downloadriscv-openocd-ccf4d6d64844410483d2d2513c2c4ed173604649.zip
riscv-openocd-ccf4d6d64844410483d2d2513c2c4ed173604649.tar.gz
riscv-openocd-ccf4d6d64844410483d2d2513c2c4ed173604649.tar.bz2
cortex_m: Do additional initialization during reset
SAM4L requires additional steps to be taken right after SYSRESETREQ is issued in order to function robustly: - CMSIS-DAP DAP driver needs to explicitly check for sticky bit errors since it is possible for adapter to perform successful write opration, report no errors and then, under the hood, do some other things that will result in sticky bit being set. - Debugger needs to wait for security system to finish intialization and assert CDBGPWRUPACK before proceeding This change is related to commit http://openocd.zylin.com/#/c/1995/ Change-Id: I741c95a809bfd60d930cec9482239e4796a62326 Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Reviewed-on: http://openocd.zylin.com/2088 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-by: Andrey Yurovsky <yurovsky@gmail.com>
Diffstat (limited to 'tcl/target')
-rw-r--r--tcl/target/at91sam4lXX.cfg4
1 files changed, 0 insertions, 4 deletions
diff --git a/tcl/target/at91sam4lXX.cfg b/tcl/target/at91sam4lXX.cfg
index 77ff98a..93799a2 100644
--- a/tcl/target/at91sam4lXX.cfg
+++ b/tcl/target/at91sam4lXX.cfg
@@ -5,7 +5,3 @@ source [find target/at91sam4XXX.cfg]
set _FLASHNAME $_CHIPNAME.flash
flash bank $_FLASHNAME at91sam4l 0x00000000 0 1 1 $_TARGETNAME
-
-# if srst is not fitted use VECTRESET to perform a soft reset
-# this will only reset the core, not the peripherals
-cortex_m reset_config vectreset