diff options
author | ntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-02 16:07:31 +0000 |
---|---|---|
committer | ntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-02 16:07:31 +0000 |
commit | 88b5c6da2a2a59fcb1eb3da22ed5339b8e0f35cd (patch) | |
tree | e8580d26d3ff4dfc361fa4269699e45f216ef93b | |
parent | 339dc0bcd0044d6521e1d1dd231cbb60ff8f7b8a (diff) | |
download | openocd+libswd-88b5c6da2a2a59fcb1eb3da22ed5339b8e0f35cd.tar.gz openocd+libswd-88b5c6da2a2a59fcb1eb3da22ed5339b8e0f35cd.tar.bz2 openocd+libswd-88b5c6da2a2a59fcb1eb3da22ed5339b8e0f35cd.tar.xz openocd+libswd-88b5c6da2a2a59fcb1eb3da22ed5339b8e0f35cd.zip |
- hack added to fix a issue with v5/6 jlink
v5/6 jlink seems to have an issue if the first tap move is not divisible by 8, so we send a TLR on first power up
git-svn-id: svn://svn.berlios.de/openocd/trunk@2004 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r-- | src/jtag/jlink.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/jtag/jlink.c b/src/jtag/jlink.c index b677535c..33dcd618 100644 --- a/src/jtag/jlink.c +++ b/src/jtag/jlink.c @@ -306,7 +306,8 @@ static int jlink_register_commands(struct command_context_s *cmd_ctx) static int jlink_init(void) { int check_cnt; - + int i; + jlink_jtag_handle = jlink_usb_open(); if (jlink_jtag_handle == 0) @@ -341,6 +342,13 @@ static int jlink_init(void) jlink_tap_init(); jlink_speed(jtag_speed); + /* v5/6 jlink seems to have an issue if the first tap move + * is not divisible by 8, so we send a TLR on first power up */ + for (i = 0; i < 8; i++) { + jlink_tap_append_step(1, 0); + } + jlink_tap_execute(); + return ERROR_OK; } |