Skip to content
Snippets Groups Projects
Commit 88b5c6da authored by ntfreak's avatar ntfreak
Browse files

- 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
parent 339dc0bc
No related branches found
No related tags found
No related merge requests found
...@@ -306,6 +306,7 @@ static int jlink_register_commands(struct command_context_s *cmd_ctx) ...@@ -306,6 +306,7 @@ static int jlink_register_commands(struct command_context_s *cmd_ctx)
static int jlink_init(void) static int jlink_init(void)
{ {
int check_cnt; int check_cnt;
int i;
jlink_jtag_handle = jlink_usb_open(); jlink_jtag_handle = jlink_usb_open();
...@@ -341,6 +342,13 @@ static int jlink_init(void) ...@@ -341,6 +342,13 @@ static int jlink_init(void)
jlink_tap_init(); jlink_tap_init();
jlink_speed(jtag_speed); 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; return ERROR_OK;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment