OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /openrisc/trunk/or_debug_proxy
    from Rev 39 to Rev 45
    Reverse comparison

Rev 39 → Rev 45

/src/usb_functions.c
369,6 → 369,7
int retry_do() {
 
unsigned char stalled;
int tap_id_reads = 0;
 
//printf("RETRY\n");
if (retry_no == 0)
391,7 → 392,7
*/
// Try a readback of the TAP ID
 
read_tap:
// Set ID code instruction in IR
usb_set_tap_ir(JI_IDCODE);
403,10 → 404,19
 
if((id&0xffffffff) != (id_read_at_reset&0xffffffff))
{
// Pretty big problem - can't even read the ID of the TAP anymore
// So return error
printf("Unable to read JTAG TAP ID - read %08x, expected %08x\n", id, id_read_at_reset);
return 1;
if (tap_id_reads == 10)
{
// Pretty big problem - can't even read the ID of the TAP anymore
// So return error
printf("Unable to read JTAG TAP ID - read %08x, expected %08x\n",
id, id_read_at_reset);
 
return 1;
}
tap_id_reads++;
goto read_tap;
}
 
current_chain = -1;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.