Skip to content
Snippets Groups Projects
Commit 53dea2f9 authored by oharboe's avatar oharboe
Browse files

Do not check ir capture if there is no IDCODE

git-svn-id: svn://svn.berlios.de/openocd/trunk@2812 b42882b7-edfa-0310-969c-e2dbd0fdcd60
parent e4cc1952
No related branches found
No related tags found
No related merge requests found
...@@ -1108,6 +1108,8 @@ static int jtag_validate_ircapture(void) ...@@ -1108,6 +1108,8 @@ static int jtag_validate_ircapture(void)
break; break;
} }
if (tap->hasidcode)
{
/* Validate the two LSBs, which must be 01 per JTAG spec. /* Validate the two LSBs, which must be 01 per JTAG spec.
* REVISIT we might be able to verify some MSBs too, using * REVISIT we might be able to verify some MSBs too, using
* ircapture/irmask attributes. * ircapture/irmask attributes.
...@@ -1122,6 +1124,7 @@ static int jtag_validate_ircapture(void) ...@@ -1122,6 +1124,7 @@ static int jtag_validate_ircapture(void)
retval = ERROR_JTAG_INIT_FAILED; retval = ERROR_JTAG_INIT_FAILED;
goto done; goto done;
} }
}
LOG_DEBUG("%s: IR capture 0x%0*x", jtag_tap_name(tap), LOG_DEBUG("%s: IR capture 0x%0*x", jtag_tap_name(tap),
(tap->ir_length + 7) / tap->ir_length, val); (tap->ir_length + 7) / tap->ir_length, val);
chain_pos += tap->ir_length; chain_pos += tap->ir_length;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment