Hi guys,
I implemented the Dominic suggestion to ignore the iMX31 IR error:
http://forum.sparkfun.com/viewtopic.php?t=7841&postdays=0&postorder=asc&start=45&sid=45354d14976fd68c1fa088693f66ed7f

I commented the lines 1475, 1476, 1487 and 1488 of src/jtag/jtag.c:

                        free(cbuf);
                        //free(ir_test);
                        //return ERROR_JTAG_INIT_FAILED;
                }
                chain_pos += device->ir_length;
                device = device->next;
        }

        if (buf_get_u32(ir_test, chain_pos, 2) != 0x3)
        {
                char *cbuf = buf_to_str(ir_test, total_ir_length, 16);
                LOG_ERROR("Error validating JTAG scan chain, IR
mismatch, scan returned 0x%s", cbuf);
                free(cbuf);
                //free(ir_test);
                //return ERROR_JTAG_INIT_FAILED;
        }

OpenOCD detected iMX31 processor, but it doesn't opened the telnet
neither gdb port.

This is the openocd output:

# openocd -f test.cfg
Open On-Chip Debugger 1.0 (2008-08-16-18:28) svn:922
$URL: http://svn.berlios.de/svnroot/repos/openocd/trunk/src/openocd.c $
jtag_speed: 10
Info:   J-Link ARM V6 compiled Jul 10 2008 18:11:14
Info:   Vref = 1.883 TCK = 1 TDI = 0 TDO = 1 TMS = 0 SRST = 1 TRST = 1

Info:   J-Link JTAG Interface ready
Info:   JTAG device found: 0x2b900f0f (Manufacturer: 0x787, Part:
0xb900, Version: 0x2)
Info:   JTAG device found: 0x07b3601d (Manufacturer: 0x00e, Part:
0x7b36, Version: 0x0)
Warning:Device was in bypass after TRST/TMS reset
Info:   JTAG device found: 0x2190101d (Manufacturer: 0x00e, Part:
0x1901, Version: 0x2)
Error:  Error validating JTAG scan chain, IR mismatch, scan returned 0x0c2011
Info:   found ARM1136

Can someone please give me some suggestion about how to solve this problem?

Best Regards,

Alan
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to