On Sat, Sep 17, 2016 at 11:18:20PM +0300, Paul Fertser wrote: > Hm, can't see anything good about it...
Ah, sorry, as I mentioned, behaviour is somewhat erratic even with openocd-0.5.0. This log is definitely good (I was able to upload U-Boot). Maybe the comparison between the two can be instructive in some way? Also, even in the "bad" case (when "JTAG scan chain interrogation failed: all zeroes"), openocd-0.5.0 will still let me issue a reset command which works (whereas openocd-0.9.0 won't even let me telnet). Sorry about all the confusion! -- David A. Madore ( http://www.madore.org/~david/ )
Open On-Chip Debugger 0.5.0 (2016-09-16-09:33) Licensed under GNU GPL v2 For bug reports, read http://openocd.berlios.de/doc/doxygen/bugs.html User : 11 0 command.c:557 command_print(): debug_level: 3 Debug: 12 0 configuration.c:45 add_script_search_dir(): adding /home/david/.openocd Debug: 13 0 configuration.c:45 add_script_search_dir(): adding /usr/share/openocd/site Debug: 14 0 configuration.c:45 add_script_search_dir(): adding /usr/share/openocd/scripts Debug: 15 0 configuration.c:87 find_file(): found /tmp/openocd-0.5.0/tcl/board/sheevaplug.cfg Debug: 16 0 configuration.c:87 find_file(): found /tmp/openocd-0.5.0/tcl/interface/sheevaplug.cfg Debug: 17 0 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_interface ft2232 Debug: 18 1 command.c:151 script_debug(): command - interface ocd_interface ft2232 Debug: 20 1 command.c:364 register_command_handler(): registering 'ocd_ft2232_device_desc'... Debug: 21 1 command.c:364 register_command_handler(): registering 'ocd_ft2232_serial'... Debug: 22 1 command.c:364 register_command_handler(): registering 'ocd_ft2232_layout'... Debug: 23 1 command.c:364 register_command_handler(): registering 'ocd_ft2232_vid_pid'... Debug: 24 1 command.c:364 register_command_handler(): registering 'ocd_ft2232_latency'... Info : 25 1 transport.c:123 allow_transports(): only one transport option; autoselect 'jtag' Debug: 26 1 command.c:364 register_command_handler(): registering 'ocd_jtag_flush_queue_sleep'... Debug: 27 1 command.c:364 register_command_handler(): registering 'ocd_jtag_rclk'... Debug: 28 1 command.c:364 register_command_handler(): registering 'ocd_jtag_ntrst_delay'... Debug: 29 1 command.c:364 register_command_handler(): registering 'ocd_jtag_ntrst_assert_width'... Debug: 30 1 command.c:364 register_command_handler(): registering 'ocd_scan_chain'... Debug: 31 1 command.c:364 register_command_handler(): registering 'ocd_jtag_reset'... Debug: 32 1 command.c:364 register_command_handler(): registering 'ocd_runtest'... Debug: 33 1 command.c:364 register_command_handler(): registering 'ocd_irscan'... Debug: 34 1 command.c:364 register_command_handler(): registering 'ocd_verify_ircapture'... Debug: 35 1 command.c:364 register_command_handler(): registering 'ocd_verify_jtag'... Debug: 36 1 command.c:364 register_command_handler(): registering 'ocd_tms_sequence'... Debug: 37 1 command.c:364 register_command_handler(): registering 'ocd_wait_srst_deassert'... Debug: 38 1 command.c:364 register_command_handler(): registering 'ocd_jtag'... Debug: 39 1 command.c:364 register_command_handler(): registering 'ocd_jtag'... Debug: 40 1 command.c:364 register_command_handler(): registering 'ocd_jtag'... Debug: 41 1 command.c:364 register_command_handler(): registering 'ocd_jtag'... Debug: 42 1 command.c:364 register_command_handler(): registering 'ocd_jtag'... Debug: 43 1 command.c:364 register_command_handler(): registering 'ocd_jtag'... Debug: 44 1 command.c:364 register_command_handler(): registering 'ocd_jtag'... Debug: 45 1 command.c:364 register_command_handler(): registering 'ocd_jtag'... Debug: 46 1 command.c:364 register_command_handler(): registering 'ocd_jtag'... Debug: 47 1 command.c:364 register_command_handler(): registering 'ocd_jtag'... Debug: 48 1 command.c:364 register_command_handler(): registering 'ocd_jtag'... Debug: 49 1 command.c:364 register_command_handler(): registering 'ocd_jtag'... Debug: 50 1 command.c:364 register_command_handler(): registering 'ocd_jtag'... Debug: 51 1 command.c:364 register_command_handler(): registering 'ocd_svf'... Debug: 52 1 command.c:364 register_command_handler(): registering 'ocd_xsvf'... Debug: 53 1 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_ft2232_layout sheevaplug Debug: 54 1 command.c:151 script_debug(): command - ft2232_layout ocd_ft2232_layout sheevaplug Debug: 56 1 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_ft2232_vid_pid 0x9e88 0x9e8f Debug: 57 1 command.c:151 script_debug(): command - ft2232_vid_pid ocd_ft2232_vid_pid 0x9e88 0x9e8f Debug: 59 1 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_ft2232_device_desc SheevaPlug JTAGKey FT2232D B Debug: 60 1 command.c:151 script_debug(): command - ft2232_device_desc ocd_ft2232_device_desc SheevaPlug JTAGKey FT2232D B Debug: 62 1 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_adapter_khz 2000 Debug: 63 1 command.c:151 script_debug(): command - adapter_khz ocd_adapter_khz 2000 Debug: 65 1 core.c:1639 jtag_config_khz(): handle jtag khz Debug: 66 1 core.c:1602 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 67 1 core.c:1602 adapter_khz_to_speed(): convert khz to interface specific speed value User : 68 1 command.c:557 command_print(): 2000 kHz Debug: 69 1 configuration.c:87 find_file(): found /tmp/openocd-0.5.0/tcl/target/feroceon.cfg Debug: 70 1 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_jtag newtap feroceon cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x20a023d3 Debug: 71 1 command.c:151 script_debug(): command - ocd_jtag ocd_jtag newtap feroceon cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x20a023d3 Debug: 72 1 tcl.c:575 jim_newtap_cmd(): Creating New Tap, Chip: feroceon, Tap: cpu, Dotted: feroceon.cpu, 8 params Debug: 73 1 tcl.c:592 jim_newtap_cmd(): Processing option: -irlen Debug: 74 1 tcl.c:592 jim_newtap_cmd(): Processing option: -ircapture Debug: 75 1 tcl.c:592 jim_newtap_cmd(): Processing option: -irmask Debug: 76 1 tcl.c:592 jim_newtap_cmd(): Processing option: -expected-id Debug: 77 1 core.c:1337 jtag_tap_init(): Created Tap: feroceon.cpu @ abs position 0, irlen 4, capture: 0x1 mask: 0xf Debug: 78 1 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_target create feroceon.cpu feroceon -endian little -chain-position feroceon.cpu Debug: 79 1 command.c:151 script_debug(): command - ocd_target ocd_target create feroceon.cpu feroceon -endian little -chain-position feroceon.cpu Debug: 80 1 command.c:364 register_command_handler(): registering 'ocd_arm'... Debug: 81 1 command.c:364 register_command_handler(): registering 'ocd_arm'... Debug: 82 1 command.c:364 register_command_handler(): registering 'ocd_arm'... Debug: 83 1 command.c:364 register_command_handler(): registering 'ocd_arm'... Debug: 84 1 command.c:364 register_command_handler(): registering 'ocd_arm'... Debug: 85 1 command.c:364 register_command_handler(): registering 'ocd_arm'... Debug: 86 1 command.c:364 register_command_handler(): registering 'ocd_etm'... Debug: 87 1 command.c:364 register_command_handler(): registering 'ocd_arm7_9'... Debug: 88 1 command.c:364 register_command_handler(): registering 'ocd_arm7_9'... Debug: 89 1 command.c:364 register_command_handler(): registering 'ocd_arm7_9'... Debug: 90 1 command.c:364 register_command_handler(): registering 'ocd_arm9'... Debug: 91 1 command.c:364 register_command_handler(): registering 'ocd_arm926ejs'... Debug: 92 1 armv4_5.c:397 arm_set_cpsr(): set CPSR 0x00000010: User mode, ARM state Debug: 93 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 94 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 95 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 96 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 97 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 98 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 99 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 100 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 101 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 102 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 103 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 104 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 105 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 106 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 107 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 108 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 109 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 110 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 111 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 112 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 113 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 114 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 115 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 116 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 117 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 118 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 119 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 120 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 121 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 122 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 123 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 124 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 125 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 126 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 127 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 128 1 command.c:364 register_command_handler(): registering 'ocd_feroceon.cpu'... Debug: 129 1 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_reset_config trst_and_srst Debug: 130 1 command.c:151 script_debug(): command - reset_config ocd_reset_config trst_and_srst User : 132 1 command.c:557 command_print(): trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain Debug: 133 1 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_adapter_nsrst_delay 200 Debug: 134 1 command.c:151 script_debug(): command - adapter_nsrst_delay ocd_adapter_nsrst_delay 200 User : 136 1 command.c:557 command_print(): adapter_nsrst_delay: 200 Debug: 137 1 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_jtag_ntrst_delay 200 Debug: 138 1 command.c:151 script_debug(): command - jtag_ntrst_delay ocd_jtag_ntrst_delay 200 User : 140 1 command.c:557 command_print(): jtag_ntrst_delay: 200 Debug: 141 2 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_feroceon.cpu configure -work-area-phys 0x10000000 -work-area-size 65536 -work-area-backup 0 Debug: 142 2 command.c:151 script_debug(): command - ocd_feroceon.cpu ocd_feroceon.cpu configure -work-area-phys 0x10000000 -work-area-size 65536 -work-area-backup 0 Debug: 143 2 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_arm7_9 dcc_downloads enable Debug: 144 2 command.c:151 script_debug(): command - ocd_arm7_9 ocd_arm7_9 dcc_downloads enable User : 146 2 command.c:557 command_print(): dcc downloads are enabled Debug: 147 2 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_nand device feroceon.flash orion 0 0xd8000000 Debug: 148 2 command.c:151 script_debug(): command - ocd_nand ocd_nand device feroceon.flash orion 0 0xd8000000 Warn : 150 2 target.c:375 get_target(): use 'feroceon.cpu' as target identifier, not '0' User : 151 2 command.c:707 command_run_line(): sheevaplug_load_ubootUser : 152 2 command.c:709 command_run_line(): Debug: 153 2 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_init Debug: 154 2 command.c:151 script_debug(): command - init ocd_init Debug: 156 2 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_target init Debug: 157 2 command.c:151 script_debug(): command - ocd_target ocd_target init Debug: 159 2 target.c:930 handle_target_init_command(): Initializing targets... Debug: 160 2 command.c:364 register_command_handler(): registering 'ocd_target_request'... Debug: 161 2 command.c:364 register_command_handler(): registering 'ocd_trace'... Debug: 162 2 command.c:364 register_command_handler(): registering 'ocd_trace'... Debug: 163 2 command.c:364 register_command_handler(): registering 'ocd_fast_load_image'... Debug: 164 2 command.c:364 register_command_handler(): registering 'ocd_fast_load'... Debug: 165 2 command.c:364 register_command_handler(): registering 'ocd_profile'... Debug: 166 2 command.c:364 register_command_handler(): registering 'ocd_virt2phys'... Debug: 167 2 command.c:364 register_command_handler(): registering 'ocd_reg'... Debug: 168 2 command.c:364 register_command_handler(): registering 'ocd_poll'... Debug: 169 2 command.c:364 register_command_handler(): registering 'ocd_wait_halt'... Debug: 170 2 command.c:364 register_command_handler(): registering 'ocd_halt'... Debug: 171 2 command.c:364 register_command_handler(): registering 'ocd_resume'... Debug: 172 2 command.c:364 register_command_handler(): registering 'ocd_reset'... Debug: 173 2 command.c:364 register_command_handler(): registering 'ocd_soft_reset_halt'... Debug: 174 2 command.c:364 register_command_handler(): registering 'ocd_step'... Debug: 175 2 command.c:364 register_command_handler(): registering 'ocd_mdw'... Debug: 176 2 command.c:364 register_command_handler(): registering 'ocd_mdh'... Debug: 177 2 command.c:364 register_command_handler(): registering 'ocd_mdb'... Debug: 178 2 command.c:364 register_command_handler(): registering 'ocd_mww'... Debug: 179 2 command.c:364 register_command_handler(): registering 'ocd_mwh'... Debug: 180 2 command.c:364 register_command_handler(): registering 'ocd_mwb'... Debug: 181 2 command.c:364 register_command_handler(): registering 'ocd_bp'... Debug: 182 2 command.c:364 register_command_handler(): registering 'ocd_rbp'... Debug: 183 2 command.c:364 register_command_handler(): registering 'ocd_wp'... Debug: 184 2 command.c:364 register_command_handler(): registering 'ocd_rwp'... Debug: 185 2 command.c:364 register_command_handler(): registering 'ocd_load_image'... Debug: 186 2 command.c:364 register_command_handler(): registering 'ocd_dump_image'... Debug: 187 2 command.c:364 register_command_handler(): registering 'ocd_verify_image'... Debug: 188 2 command.c:364 register_command_handler(): registering 'ocd_test_image'... Debug: 189 2 command.c:364 register_command_handler(): registering 'ocd_reset_nag'... Debug: 190 2 ft2232.c:2469 ft2232_init(): ft2232 interface using shortest path jtag state transitions Debug: 191 2 ft2232.c:2342 ft2232_init_libftdi(): 'ft2232' interface using libftdi with 'sheevaplug' layout (9e88:9e8f) Debug: 192 56 ft2232.c:2389 ft2232_init_libftdi(): current latency timer: 2 Debug: 193 58 ft2232.c:2400 ft2232_init_libftdi(): FTDI chip type: 2 "2232C" Debug: 194 58 ft2232.c:2426 ft2232_set_data_bits_low_byte(): 80 08 1b Debug: 195 58 ft2232.c:2446 ft2232_set_data_bits_high_byte(): 82 06 0f Debug: 196 62 core.c:1602 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 197 62 core.c:1606 adapter_khz_to_speed(): have interface set up Debug: 198 62 ft2232.c:676 ft2232_speed(): 86 02 00 Debug: 199 62 core.c:1602 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 200 62 core.c:1606 adapter_khz_to_speed(): have interface set up Info : 201 62 core.c:1421 adapter_init(): clock speed 2000 kHz Debug: 202 62 openocd.c:137 handle_init_command(): Debug Adapter init complete Debug: 203 62 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_transport init Debug: 204 62 command.c:151 script_debug(): command - ocd_transport ocd_transport init Debug: 206 62 transport.c:255 handle_transport_init(): handle_transport_init Debug: 207 62 ft2232.c:1689 sheevaplug_reset(): trst: 0, srst: 0, high_output: 0x06, high_direction: 0x0f Debug: 208 62 core.c:713 jtag_add_reset(): SRST line released Debug: 209 62 core.c:737 jtag_add_reset(): TRST line released Debug: 210 62 core.c:329 jtag_call_event_callbacks(): jtag event: TAP reset Debug: 211 468 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_jtag arp_init Debug: 212 468 command.c:151 script_debug(): command - ocd_jtag ocd_jtag arp_init Debug: 213 468 core.c:1435 jtag_init_inner(): Init JTAG chain Debug: 214 468 core.c:329 jtag_call_event_callbacks(): jtag event: TAP reset Debug: 215 468 core.c:1055 jtag_examine_chain(): DR scan interrogation for IDCODE/BYPASS Debug: 216 468 core.c:329 jtag_call_event_callbacks(): jtag event: TAP reset Info : 217 470 core.c:955 jtag_examine_chain_display(): JTAG tap: feroceon.cpu tap/device found: 0x20a023d3 (mfg: 0x1e9, part: 0x0a02, ver: 0x2) Debug: 218 470 core.c:1219 jtag_validate_ircapture(): IR capture validation scan Debug: 219 472 core.c:1280 jtag_validate_ircapture(): feroceon.cpu: IR capture 0x01 Debug: 220 472 openocd.c:150 handle_init_command(): Examining targets... Info : 221 474 embeddedice.c:231 embeddedice_build_reg_cache(): Embedded ICE version 0 Info : 222 474 embeddedice.c:303 embeddedice_build_reg_cache(): feroceon.cpu: hardware has 1 breakpoint/watchpoint unit Debug: 223 474 arm7_9_common.c:75 arm7_9_clear_watchpoints(): - Debug: 224 474 embeddedice.c:501 embeddedice_write_reg(): 12: 0x00000000 Debug: 225 474 embeddedice.c:501 embeddedice_write_reg(): 20: 0x00000000 Debug: 226 474 embeddedice.c:501 embeddedice_write_reg(): 2: 0x00000000 Debug: 227 476 embeddedice.c:501 embeddedice_write_reg(): 0: 0x00000000 Debug: 228 476 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_flash init Debug: 229 476 command.c:151 script_debug(): command - ocd_flash ocd_flash init Debug: 231 478 tcl.c:912 handle_flash_init_command(): Initializing flash devices... Debug: 232 478 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_mflash init Debug: 233 478 command.c:151 script_debug(): command - ocd_mflash ocd_mflash init Debug: 235 480 mflash.c:1331 handle_mflash_init_command(): Initializing mflash devices... Debug: 236 480 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_nand init Debug: 237 480 command.c:151 script_debug(): command - ocd_nand ocd_nand init Debug: 239 482 tcl.c:521 handle_nand_init_command(): Initializing NAND devices... Debug: 240 482 command.c:364 register_command_handler(): registering 'ocd_nand'... Debug: 241 482 command.c:364 register_command_handler(): registering 'ocd_nand'... Debug: 242 482 command.c:364 register_command_handler(): registering 'ocd_nand'... Debug: 243 482 command.c:364 register_command_handler(): registering 'ocd_nand'... Debug: 244 482 command.c:364 register_command_handler(): registering 'ocd_nand'... Debug: 245 482 command.c:364 register_command_handler(): registering 'ocd_nand'... Debug: 246 482 command.c:364 register_command_handler(): registering 'ocd_nand'... Debug: 247 482 command.c:364 register_command_handler(): registering 'ocd_nand'... Debug: 248 482 command.c:364 register_command_handler(): registering 'ocd_nand'... Debug: 249 482 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_pld init Debug: 250 482 command.c:151 script_debug(): command - ocd_pld ocd_pld init Debug: 252 484 pld.c:232 handle_pld_init_command(): Initializing PLDs...