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
This commit is contained in:
parent
e4cc19521b
commit
53dea2f952
|
@ -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)
|
||||||
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;
|
||||||
|
|
Loading…
Reference in New Issue