diff options
author | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-05-12 13:45:04 +0200 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-05-12 13:45:04 +0200 |
commit | 7b76da57f471e77a24519c10927aab79890783a9 (patch) | |
tree | a2c90c070da32be2988023b85526e172f4ff9851 | |
parent | b05f8171c965bc3875df82f4469f952a13e2c504 (diff) | |
download | openocd_libswd-7b76da57f471e77a24519c10927aab79890783a9.tar.gz openocd_libswd-7b76da57f471e77a24519c10927aab79890783a9.tar.bz2 openocd_libswd-7b76da57f471e77a24519c10927aab79890783a9.tar.xz openocd_libswd-7b76da57f471e77a24519c10927aab79890783a9.zip |
zy1000.cfg: gdb connect will fail first time without gdb-attach
gdb-attach does a reset init to make sure that the CFI probe
will succeed upon first gdb connect.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
-rw-r--r-- | tcl/board/zy1000.cfg | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tcl/board/zy1000.cfg b/tcl/board/zy1000.cfg index ee7afcd4..d2561e9f 100644 --- a/tcl/board/zy1000.cfg +++ b/tcl/board/zy1000.cfg @@ -63,6 +63,11 @@ $_TARGETNAME configure -event reset-init { mww 0x08020004 0 } +$_TARGETNAME configure -event gdb-attach { + # Without this gdb-attach will first time as probe will fail + reset init +} + # required for usable performance. Used for lots of # other things than flash programming. $_TARGETNAME configure -work-area-phys 0x00020000 -work-area-size 0x20000 -work-area-backup 0 |