I can use Jlink with Crosswork without problem, everytime. But I am having trouble connecting to my board using ARM-USB-OCD running OpenOCD 2007rel128. Well, sometimes I did get throu. But I just could not figure out why or what. When it works, it is fine in every way, flashing the memory, debugging using Insight … However, most of the time I get messages like these:
Debug: ft2232.c:1583 olimex_jtag_init(): 80 08 1b
Debug: ft2232.c:1626 olimex_jtag_init(): 82 09 0f
Debug: ft2232.c:242 ft2232_speed(): 86 02 00
Debug: jtag.c:258 jtag_call_event_callbacks(): jtag event: 1
Debug: jtag.c:1106 jtag_reset_callback():
Debug: jtag.c:258 jtag_call_event_callbacks(): jtag event: 1
Debug: jtag.c:1106 jtag_reset_callback():
Debug: jtag.c:1192 jtag_examine_chain(): JTAG device found: 0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf
Debug: jtag.c:1192 jtag_examine_chain(): JTAG device found: 0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf
Debug: jtag.c:1192 jtag_examine_chain(): JTAG device found: 0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf
Debug: jtag.c:1192 jtag_examine_chain(): JTAG device found: 0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf
Debug: jtag.c:1192 jtag_examine_chain(): JTAG device found: 0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf
Debug: jtag.c:1192 jtag_examine_chain(): JTAG device found: 0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf
Debug: jtag.c:1192 jtag_examine_chain(): JTAG device found: 0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf
Debug: jtag.c:1192 jtag_examine_chain(): JTAG device found: 0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf
Debug: jtag.c:1192 jtag_examine_chain(): JTAG device found: 0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf
Debug: jtag.c:1192 jtag_examine_chain(): JTAG device found: 0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf
Debug: jtag.c:1192 jtag_examine_chain(): JTAG device found: 0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf
Debug: jtag.c:1192 jtag_examine_chain(): JTAG device found: 0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf
Debug: jtag.c:1192 jtag_examine_chain(): JTAG device found: 0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf
Debug: jtag.c:1192 jtag_examine_chain(): JTAG device found: 0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf
Debug: jtag.c:1192 jtag_examine_chain(): JTAG device found: 0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf
Debug: jtag.c:1192 jtag_examine_chain(): JTAG device found: 0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf
Debug: jtag.c:1192 jtag_examine_chain(): JTAG device found: 0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf
Debug: jtag.c:1192 jtag_examine_chain(): JTAG device found: 0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf
Debug: jtag.c:1192 jtag_examine_chain(): JTAG device found: 0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf
Debug: jtag.c:1192 jtag_examine_chain(): JTAG device found: 0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf
Error: jtag.c:1202 jtag_examine_chain(): number of discovered devices in JTAG chain (20) doesn’t match configuration (1)
I figure it might have something to do with my reset circuit. I use a suprevisor chip, which has a reset delay of about 200ms. Its output is connected to the RST of LPC2138 with a 4.9K resistor. The JTAG’s pin 15 also goes directly to the RST of LPC2138. The JTAG’s pin 3, (TRST) , is pulled up with a 10K resistor and goes to TRST of the LPC.
This is very frustrating.
Any advice ?
Thanks
Greg