This may not directly be an OpenOCD issue, but I am trying to debug my design. Since this list is well populated with ARM users, perhaps somebody has some insight.
I've received the parts and assembled my first LPC2148 based design. I've also purchased the Olimex ARM-USB-TINY module to use for programming/debuging, and planned to use Yagarto along with OpenOCD. However, I am running into issues with the JTAG. At first, it was an OpenOCD configuration issue, but I resolved that one (failed to find my wiggler, but I've fixed the config file). Now, it indicates there is a problem with the JTAG chain. I've probed around quite a bit trying to determine issues. I copied the JTAG header design from the Olimex LPC-2148 schematic, and I have the same pullups/pulldowns. I probed the JTAG header and I appear to have the proper voltages. I do not have the jumper on RTCK as I always want JTAG enabled (the pulldown is there). I do have 3V3 on pins 1 and 2. Here's what I tried: 1. I verified the VCC and GND pins on the JTAG header. 2. I probed the VCC connections on the LPC2148 to verify it has power. 3. I grounded NRST (/RESET on the LPC2148) to force reset and to recognize the 0 on P1.31 in case it wasn't recognized. Unfortunately I don't have a digital o-scope, so I can't capture JTAG traces. When I use my analog scope, I do see some activity on the JTAG lines, but I can't capture it. Is there a tool/utility to debug the JTAG connection using the FT2xx based wigglers? Is there anything else I can check? Attached is a link with a PDF of the schematic, and the Eagle schematic and board files. You can find them here: http://cid-3e6aa75359e23754.skydrive.live.com/self.aspx/USB2IEC Also, I've posted the OpenOCD output below (at the end of the post) with debugging turned up to level 3. Here is my arm-usb-ocd.cfg file: #interface interface ft2232 #ft2232_device_desc "Olimex OpenOCD JTAG A" ft2232_device_desc "Olimex OpenOCD JTAG TINY A" ft2232_layout "olimex-jtag" ft2232_vid_pid 0x15BA 0x0004 Thanks, Pete ============== OpenOCD Output ====================== Open On-Chip Debugger (2008-06-19 19:00) svn: 717 URL: http://svn.berlios.de/svnroot/repos/openocd/trunk Debug: 5 0 command.c:432 command_run_line(): script arm-usb-ocd.cfg Debug: 6 0 configuration.c:87 open_file_from_path(): opened arm-usb-ocd.cfg Debug: 8 0 command.c:432 command_run_line(): interface ft2232 Debug: 10 0 command.c:432 command_run_line(): ft2232_device_desc "Olimex OpenOCD JTAG TINY A" Debug: 12 0 command.c:432 command_run_line(): ft2232_layout "olimex-jtag" Debug: 14 0 command.c:432 command_run_line(): ft2232_vid_pid 0x15BA 0x0004 Debug: 16 0 command.c:432 command_run_line(): init Debug: 17 0 openocd.c:102 handle_init_command(): target init complete Debug: 18 0 ft2232.c:1374 ft2232_init_ftd2xx(): 'ft2232' interface using FTD2XX with 'olimex-jtag' layout (15ba:0004) Debug: 19 0 ft2232.c:1463 ft2232_init_ftd2xx(): current latency timer: 2 Debug: 20 0 ft2232.c:1810 olimex_jtag_init(): 80 08 1b Debug: 21 0 ft2232.c:1853 olimex_jtag_init(): 82 09 0f Debug: 22 0 ft2232.c:253 ft2232_speed(): 86 00 00 Debug: 23 16 openocd.c:109 handle_init_command(): jtag interface init complete Debug: 24 16 jtag.c:1537 jtag_init_inner(): Init JTAG chain Debug: 25 16 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Debug: 26 16 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Error: 27 16 jtag.c:1351 jtag_examine_chain(): JTAG communication failure, check connection, JTAG interface, target power etc. Error: 28 16 jtag.c:1556 jtag_init_inner(): trying to validate configured JTAG chain anyway... Debug: 29 16 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Error: 30 16 jtag.c:1456 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x01 Debug: 31 32 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Error: 32 32 jtag.c:1456 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x01 Debug: 33 47 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Error: 34 47 jtag.c:1456 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x01 Debug: 35 63 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Error: 36 63 jtag.c:1456 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x01 Debug: 37 79 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Error: 38 79 jtag.c:1456 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x01 Debug: 39 94 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Error: 40 94 jtag.c:1456 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x01 Error: 41 94 jtag.c:1565 jtag_init_inner(): Could not validate JTAG chain, exit Debug: 42 94 jtag.c:1581 jtag_init_reset(): Trying to bring the JTAG controller to life by asserting TRST / TLR Debug: 43 94 jtag.c:996 jtag_add_reset(): SRST line released Debug: 44 94 jtag.c:1003 jtag_add_reset(): JTAG reset with TLR instead of TRST Debug: 45 94 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Debug: 46 94 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Debug: 47 94 jtag.c:996 jtag_add_reset(): SRST line released Debug: 48 94 ft2232.c:1037 olimex_jtag_reset(): trst: 0, srst: 0, high_output: 0x01, high_direction: 0x0f Debug: 49 94 ft2232.c:1037 olimex_jtag_reset(): trst: 0, srst: 0, high_output: 0x01, high_direction: 0x0f Debug: 50 94 jtag.c:1537 jtag_init_inner(): Init JTAG chain Debug: 51 94 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Debug: 52 94 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Error: 53 94 jtag.c:1351 jtag_examine_chain(): JTAG communication failure, check connection, JTAG interface, target power etc. Error: 54 94 jtag.c:1556 jtag_init_inner(): trying to validate configured JTAG chain anyway... Debug: 55 94 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Error: 56 94 jtag.c:1456 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x01 Debug: 57 110 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Error: 58 110 jtag.c:1456 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x01 Debug: 59 125 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Error: 60 125 jtag.c:1456 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x01 Debug: 61 141 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Error: 62 141 jtag.c:1456 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x01 Debug: 63 157 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Error: 64 157 jtag.c:1456 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x01 Debug: 65 172 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Error: 66 172 jtag.c:1456 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x01 Error: 67 172 jtag.c:1565 jtag_init_inner(): Could not validate JTAG chain, exit Debug: 68 172 openocd.c:126 handle_init_command(): flash init complete Debug: 69 172 openocd.c:130 handle_init_command(): NAND init complete Debug: 70 172 openocd.c:134 handle_init_command(): pld init complete Warning: 71 172 telnet_server.c:624 telnet_init(): no telnet port specified, using default port 4444 Warning: 72 172 gdb_server.c:2015 gdb_init(): no gdb ports allocated as no target has been specified -- -- "To love for the sake of being loved is human; to love for the sake of loving is Angelic." -- Alphonse de Lamartine _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
