Rick -- Rick Altherr [email protected]
"He said he hadn't had a byte in three days. I had a short, so I split it with him."
-- Unsigned On Jan 6, 2009, at 6:56 AM, Peter LaDow wrote:
On Tue, Jan 6, 2009 at 12:16 AM, Rick Altherr <[email protected]> wrote:It doesn't appear that you've specified any JTAG taps. That _should_ be a hard error when init is run. It appears that OpenOCD is trying to validatethe chain anyway.You'll need to add some lines to your config to describe the taps on the JTAG chain. Look at the target scripts included with OpenOCD for examples.You may be able to use the stock LPC2148 target config.I failed to mention that I did try that as well. It failed in the more complicated case, so I left that out. Here's the command line I used: openocd-ftd2xx -d 3 -f interface/arm-usb-ocd.cfg -f target/lpc2148.cfg And the full debug output with both is attached at the end. Lines 63 and 64 show the JTAG communications failure even with the target script. Even in this case, there is an JTAG communications failure. I'm convinced it is likely a hardware issue, and perhaps some ARM hardware guru's are around that could suggest some debugging ideas. And a fresh pair of eyes on the schematic could help too. ========= OpenOCD Output ================= Open On-Chip Debugger (2008-06-19 19:00) svn: 717 URL: http://svn.berlios.de/svnroot/repos/openocd/trunkDebug: 5 0 command.c:432 command_run_line(): script interface/arm- usb-ocd.cfgDebug: 6 0 configuration.c:87 open_file_from_path(): opened interface/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(): script target/ lpc2148.cfgDebug: 17 0 configuration.c:87 open_file_from_path(): opened target/lpc2148.cfg Debug: 19 0 command.c:432 command_run_line(): jtag_nsrst_delay 200 Debug: 21 0 command.c:432 command_run_line(): jtag_ntrst_delay 200 Debug: 23 0 command.c:432 command_run_line(): reset_config trst_and_srst srst_pulls_trst Debug: 25 0 command.c:432 command_run_line(): jtag_reset 1 1 Debug: 26 0 ft2232.c:1374 ft2232_init_ftd2xx(): 'ft2232' interface using FTD2XX with 'olimex-jtag' layout (15ba:0004)Debug: 27 0 ft2232.c:1463 ft2232_init_ftd2xx(): current latency timer: 2Debug: 28 0 ft2232.c:1810 olimex_jtag_init(): 80 08 1b Debug: 29 0 ft2232.c:1853 olimex_jtag_init(): 82 09 0f Debug: 30 0 ft2232.c:253 ft2232_speed(): 86 00 00 Debug: 31 16 jtag.c:992 jtag_add_reset(): SRST line asserted Debug: 32 16 jtag.c:1015 jtag_add_reset(): TRST line asserted Debug: 33 16 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Debug: 34 16 ft2232.c:1037 olimex_jtag_reset(): trst: 1, srst: 1, high_output: 0x02, high_direction: 0x0f Debug: 36 16 command.c:432 command_run_line(): jtag_reset 0 0 Debug: 37 16 jtag.c:996 jtag_add_reset(): SRST line released Debug: 38 16 ft2232.c:1037 olimex_jtag_reset(): trst: 0, srst: 0, high_output: 0x09, high_direction: 0x0fDebug: 40 422 command.c:432 command_run_line(): jtag_device 4 0x1 0xf 0xeDebug: 42 422 command.c:432 command_run_line(): daemon_startup reset Info: 43 422 options.c:50 configuration_output_handler(): Open On-Chip Debugger (2008-06-19 19:00) svn: 717 Debug: 45 422 command.c:432 command_run_line(): target arm7tdmi little run_and_init 0 arm7tdmi-s_r4Debug: 47 422 command.c:432 command_run_line(): run_and_halt_time 0 30Debug: 49 422 command.c:432 command_run_line(): target_script 0 reset event/lpc2148_reset.script Debug: 51 422 command.c:432 command_run_line(): working_area 0 0x40000000 0x4000 nobackup Debug: 53 422 command.c:432 command_run_line(): flash bank lpc2000 0x0 0x7d000 0 0 0 lpc2000_v2 14765 Debug: 55 422 command.c:432 command_run_line(): initDebug: 56 422 openocd.c:102 handle_init_command(): target init completeDebug: 57 422 openocd.c:109 handle_init_command(): jtag interface init complete Debug: 58 422 jtag.c:1537 jtag_init_inner(): Init JTAG chain Debug: 59 422 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Debug: 60 422 jtag.c:1295 jtag_reset_callback(): - Debug: 61 422 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Debug: 62 422 jtag.c:1295 jtag_reset_callback(): - Error: 63 422 jtag.c:1351 jtag_examine_chain(): JTAG communication failure, check connection, JTAG interface, target power etc. Error: 64 422 jtag.c:1556 jtag_init_inner(): trying to validate configured JTAG chain anyway... Debug: 65 422 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Debug: 66 422 jtag.c:1295 jtag_reset_callback(): -Debug: 67 422 openocd.c:116 handle_init_command(): jtag init completeError: 68 422 embeddedice.c:191 embeddedice_build_reg_cache(): unknown EmbeddedICE version (comms ctrl: 0x00000000)Debug: 69 422 openocd.c:119 handle_init_command(): jtag examine complete Debug: 70 422 openocd.c:126 handle_init_command(): flash init complete Debug: 71 422 openocd.c:130 handle_init_command(): NAND init completeDebug: 72 422 openocd.c:134 handle_init_command(): pld init complete Warning: 73 422 telnet_server.c:624 telnet_init(): no telnet port specified, using default port 4444 Warning: 74 422 gdb_server.c:2021 gdb_init(): no gdb port specified, using default port 3333 Debug: 75 422 gdb_server.c:2036 gdb_init(): gdb service for target arm7tdmi at port 3333 Debug: 77 422 command.c:432 command_run_line(): reset Debug: 78 422 target.c:1851 handle_reset_command(): - Debug: 79 422 ft2232.c:253 ft2232_speed(): 86 00 00 Debug: 80 422 jtag.c:1581 jtag_init_reset(): Trying to bring the JTAG controller to life by asserting TRST / TLR Debug: 81 422 jtag.c:996 jtag_add_reset(): SRST line released Debug: 82 422 jtag.c:1015 jtag_add_reset(): TRST line asserted Debug: 83 422 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Debug: 84 422 jtag.c:1295 jtag_reset_callback(): - Debug: 85 422 jtag.c:992 jtag_add_reset(): SRST line asserted Debug: 86 422 jtag.c:1015 jtag_add_reset(): TRST line asserted Debug: 87 422 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Debug: 88 422 jtag.c:1295 jtag_reset_callback(): - Debug: 89 422 jtag.c:996 jtag_add_reset(): SRST line released Debug: 90 422 ft2232.c:1037 olimex_jtag_reset(): trst: 1, srst: 0, high_output: 0x08, high_direction: 0x0f Debug: 91 625 ft2232.c:1037 olimex_jtag_reset(): trst: 1, srst: 1, high_output: 0x0a, high_direction: 0x0f Debug: 92 625 ft2232.c:1037 olimex_jtag_reset(): trst: 0, srst: 0, high_output: 0x09, high_direction: 0x0f Debug: 93 1032 jtag.c:1537 jtag_init_inner(): Init JTAG chain Debug: 94 1032 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Debug: 95 1032 jtag.c:1295 jtag_reset_callback(): - Error: 96 1032 jtag.c:1351 jtag_examine_chain(): JTAG communication failure, check connection, JTAG interface, target power etc. Error: 97 1032 jtag.c:1556 jtag_init_inner(): trying to validate configured JTAG chain anyway... Debug: 98 1032 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Debug: 99 1032 jtag.c:1295 jtag_reset_callback(): - Debug: 100 1032 arm7_9_common.c:767 arm7_9_assert_reset(): target->state: unknown Debug: 101 1032 jtag.c:992 jtag_add_reset(): SRST line asserted Debug: 102 1032 jtag.c:1015 jtag_add_reset(): TRST line asserted Debug: 103 1032 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Debug: 104 1032 jtag.c:1295 jtag_reset_callback(): - Debug: 105 1032 ft2232.c:1037 olimex_jtag_reset(): trst: 1, srst: 1, high_output: 0x02, high_direction: 0x0f Debug: 106 1094 arm7_9_common.c:820 arm7_9_deassert_reset(): target->state: reset Debug: 107 1094 jtag.c:996 jtag_add_reset(): SRST line released Debug: 108 1094 ft2232.c:1037 olimex_jtag_reset(): trst: 0, srst: 0, high_output: 0x01, high_direction: 0x0f Debug: 109 1500 target.c:411 target_process_reset(): Waiting for halted stated as approperiateDebug: 110 1500 arm7_9_common.c:960 arm7_9_halt(): target->state: running Debug: 111 1500 embeddedice.c:397 embeddedice_write_reg(): 9: 0xffffffff Debug: 112 1500 embeddedice.c:397 embeddedice_write_reg(): 11: 0xffffffff Debug: 113 1500 embeddedice.c:397 embeddedice_write_reg(): 12: 0x00000100 Debug: 114 1500 embeddedice.c:397 embeddedice_write_reg(): 13: 0x000000f7Debug: 115 1500 target.c:425 target_process_reset(): Polling targetDebug: 116 1500 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005 Debug: 117 1500 embeddedice.c:397 embeddedice_write_reg(): 12: 0x00000000Debug: 118 1500 arm7_9_common.c:1066 arm7_9_debug_entry(): target entered debug from Thumb state Debug: 119 1500 arm7_9_common.c:1070 arm7_9_debug_entry(): r0_thumb: 0xffffffff, pc_thumb: 0xfffffff5 Debug: 120 1516 arm7_9_common.c:1106 arm7_9_debug_entry(): target entered debug state in System mode Debug: 121 1516 arm7_9_common.c:1110 arm7_9_debug_entry(): thumb state, applying fixupsDebug: 122 1516 arm7_9_common.c:1137 arm7_9_debug_entry(): r0: 0xffffffff Debug: 123 1516 arm7_9_common.c:1137 arm7_9_debug_entry(): r1: 0xffffffff Debug: 124 1516 arm7_9_common.c:1137 arm7_9_debug_entry(): r2: 0xffffffff Debug: 125 1516 arm7_9_common.c:1137 arm7_9_debug_entry(): r3: 0xffffffff Debug: 126 1516 arm7_9_common.c:1137 arm7_9_debug_entry(): r4: 0xffffffff Debug: 127 1516 arm7_9_common.c:1137 arm7_9_debug_entry(): r5: 0xffffffff Debug: 128 1516 arm7_9_common.c:1137 arm7_9_debug_entry(): r6: 0xffffffff Debug: 129 1516 arm7_9_common.c:1137 arm7_9_debug_entry(): r7: 0xffffffff Debug: 130 1516 arm7_9_common.c:1137 arm7_9_debug_entry(): r8: 0xffffffff Debug: 131 1516 arm7_9_common.c:1137 arm7_9_debug_entry(): r9: 0xffffffff Debug: 132 1516 arm7_9_common.c:1137 arm7_9_debug_entry(): r10: 0xffffffff Debug: 133 1516 arm7_9_common.c:1137 arm7_9_debug_entry(): r11: 0xffffffff Debug: 134 1516 arm7_9_common.c:1137 arm7_9_debug_entry(): r12: 0xffffffff Debug: 135 1516 arm7_9_common.c:1137 arm7_9_debug_entry(): r13: 0xffffffff Debug: 136 1516 arm7_9_common.c:1137 arm7_9_debug_entry(): r14: 0xffffffff Debug: 137 1516 arm7_9_common.c:1137 arm7_9_debug_entry(): r15: 0xffffffefDebug: 138 1516 arm7_9_common.c:1143 arm7_9_debug_entry(): entered debug state at PC 0xffffffefDebug: 139 1516 target.c:724 target_call_event_callbacks(): target event 0Debug: 140 1516 configuration.c:87 open_file_from_path(): opened event/lpc2148_reset.script Info: 141 1516 target.c:237 target_init_handler(): executing reset script 'event/lpc2148_reset.script'Debug: 143 1516 command.c:432 command_run_line(): mwh 0xE01FC040 0x0001 Debug: 144 1532 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004Error: 145 7032 arm7_9_common.c:581 arm7_9_execute_sys_speed(): timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: 0Debug: 146 7032 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005Debug: 147 7032 ft2232.c:253 ft2232_speed(): 86 00 00 -- -- "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
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
