diff options
author | Spencer Oliver <spen@spen-soft.co.uk> | 2012-08-23 21:03:29 +0100 |
---|---|---|
committer | Freddie Chopin <freddie.chopin@gmail.com> | 2012-08-29 06:24:36 +0000 |
commit | 2ce4e31bbcfabc06b7ac71d2e507e707d293c5c0 (patch) | |
tree | 2b6686f334bcb1d0123fa204938d6a419a7348de /tcl/target/at91sam4XXX.cfg | |
parent | 4be685c6167e8ac340cd383f0a0a61faaa45f3f8 (diff) |
cfg: update for target's that support cortex_m AIRCR SYSRESETREQ
If the target supports SYSRESETREQ make sure we use that as the default
if srst is not fitted/configured.
Change-Id: I24c907493134506320e69c1218702930629c1cdc
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/792
Tested-by: jenkins
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
Diffstat (limited to 'tcl/target/at91sam4XXX.cfg')
-rw-r--r-- | tcl/target/at91sam4XXX.cfg | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tcl/target/at91sam4XXX.cfg b/tcl/target/at91sam4XXX.cfg index d9f57461..c3412184 100644 --- a/tcl/target/at91sam4XXX.cfg +++ b/tcl/target/at91sam4XXX.cfg @@ -43,3 +43,7 @@ $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size 16384 -work-ar $_TARGETNAME configure -event gdb-flash-erase-start { halt } + +# if srst is not fitted use SYSRESETREQ to +# perform a soft reset +cortex_m3 reset_config sysresetreq |