Hello, I can reproduce this one easily, amontec tiny dongle, stm32 target, which isn't connected. Fire up gdb to connect to openocd, and this happens:
(gdb) r The program being debugged has been started already. Start it from the beginning? (y or n) y Starting program: /home/domen/tmp/openocd.git/src/openocd Open On-Chip Debugger 0.5.0-dev-00583-ge7b2958 (2010-11-10-09:09) Licensed under GNU GPL v2 For bug reports, read http://openocd.berlios.de/doc/doxygen/bugs.html Info : only one transport option; autoselect 'jtag' 1000 kHz adapter_nsrst_delay: 100 jtag_ntrst_delay: 100 100 kHz Info : clock speed 100 kHz Error: JTAG scan chain interrogation failed: all ones Error: Check JTAG interface, timings, target power, etc. Error: Trying to use configured scan chain anyway... Error: stm32.cpu: IR capture error; saw 0x0f not 0x01 Warn : Bypassing JTAG setup events due to errors Warn : Invalid ACK 0x7 in JTAG-DP transaction Polling target failed, GDB will be halted. Polling again in 100ms Polling target failed, GDB will be halted. Polling again in 300ms Polling target failed, GDB will be halted. Polling again in 700ms Polling target failed, GDB will be halted. Polling again in 1500ms Polling target failed, GDB will be halted. Polling again in 3100ms Info : accepting 'gdb' connection from 3333 Error: Target not examined yet Error: auto_probe failed -4 Error: Connect failed. Consider setting up a gdb-attach event for the target to prepare target for GDB connect. Error: attempted 'gdb' connection rejected Polling target failed, GDB will be halted. Polling again in 6300ms Program received signal SIGSEGV, Segmentation fault. gdb_frontend_halted (target=0x7717f0, connection=0x7612b0) at gdb_server.c:749 749 if (gdb_connection->frontend_state == TARGET_RUNNING) (gdb) bt #0 gdb_frontend_halted (target=0x7717f0, connection=0x7612b0) at gdb_server.c:749 #1 0x0000000000427dbb in gdb_target_callback_event_handler (target=0x7717f0, event=TARGET_EVENT_GDB_HALT, priv=0x7612b0) at gdb_server.c:783 #2 0x0000000000424ecf in target_call_event_callbacks (target=0x7717f0, event=TARGET_EVENT_GDB_HALT) at target.c:1031 #3 0x0000000000425cb6 in handle_target (priv=<value optimized out>) at target.c:1909 #4 0x0000000000423ce3 in target_call_timer_callback (checktime=1) at target.c:1056 #5 target_call_timer_callbacks_check_time (checktime=1) at target.c:1085 #6 0x00000000004261ff in server_loop (command_context=<value optimized out>) at server.c:433 #7 0x0000000000404a29 in openocd_main (argc=<value optimized out>, argv=0x7fffffffdf38) at openocd.c:356 #8 0x00007ffff7464c4d in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, ubp_av=<value optimized out>, init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fffffffdf28) at libc-start.c:226 #9 0x00000000004046d9 in _start () (gdb) p gdb_connection $1 = (struct gdb_connection *) 0x6e6961676120676e (gdb) i lo gdb_connection = 0x6e6961676120676e (gdb) i registers rax 0x0 0 rbx 0x6e6961676120676e 7955997313365731182 rcx 0x7ffff751e500 140737342727424 rdx 0x7612b0 7738032 rsi 0x7612b0 7738032 rdi 0x7717f0 7804912 rbp 0x7612b0 0x7612b0 rsp 0x7fffffffdc30 0x7fffffffdc30 r8 0x7612a0 7738016 r9 0x4cd949 5036361 r10 0x30303336206e6920 3472331620268009760 r11 0x246 582 r12 0x7717f0 7804912 r13 0x0 0 r14 0x7fffffffdd60 140737488346464 r15 0x7fffffffdde0 140737488346592 rip 0x427cbd 0x427cbd <gdb_frontend_halted+29> eflags 0x10206 [ PF IF RF ] cs 0x33 51 ss 0x2b 43 ds 0x0 0 es 0x0 0 fs 0x0 0 gs 0x0 0 (gdb) And a longer output with --debug=3 $ gdb --args ~/tmp/openocd.git/src/openocd --debug=3 GNU gdb (GDB) 7.1-ubuntu Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /home/domen/tmp/openocd.git/src/openocd...done. (gdb) r Starting program: /home/domen/tmp/openocd.git/src/openocd --debug=3 Open On-Chip Debugger 0.5.0-dev-00583-ge7b2958 (2010-11-10-09:09) Licensed under GNU GPL v2 For bug reports, read http://openocd.berlios.de/doc/doxygen/bugs.html User : 11 1 command.c:566 command_print(): debug_level: 3 Debug: 12 1 configuration.c:45 add_script_search_dir(): adding /home/domen/.openocd Debug: 13 1 configuration.c:45 add_script_search_dir(): adding /usr/local/share/openocd/site Debug: 14 1 configuration.c:45 add_script_search_dir(): adding /usr/local/share/openocd/scripts Debug: 15 1 configuration.c:87 find_file(): found openocd.cfg Debug: 16 1 command.c:156 script_debug(): command - ocd_command ocd_command type ocd_telnet_port 4444 Debug: 17 1 command.c:156 script_debug(): command - telnet_port ocd_telnet_port 4444 Debug: 19 1 command.c:156 script_debug(): command - ocd_command ocd_command type ocd_gdb_port 3333 Debug: 20 1 command.c:156 script_debug(): command - gdb_port ocd_gdb_port 3333 Debug: 22 1 command.c:156 script_debug(): command - ocd_command ocd_command type ocd_tcl_port 6666 Debug: 23 1 command.c:156 script_debug(): command - tcl_port ocd_tcl_port 6666 Debug: 25 1 command.c:156 script_debug(): command - ocd_command ocd_command type ocd_interface ft2232 Debug: 26 1 command.c:156 script_debug(): command - interface ocd_interface ft2232 Debug: 28 1 command.c:373 register_command_handler(): registering 'ocd_ft2232_device_desc'... Debug: 29 1 command.c:373 register_command_handler(): registering 'ocd_ft2232_serial'... Debug: 30 1 command.c:373 register_command_handler(): registering 'ocd_ft2232_layout'... Debug: 31 1 command.c:373 register_command_handler(): registering 'ocd_ft2232_vid_pid'... Debug: 32 1 command.c:373 register_command_handler(): registering 'ocd_ft2232_latency'... Info : 33 1 transport.c:123 allow_transports(): only one transport option; autoselect 'jtag' Debug: 34 1 command.c:373 register_command_handler(): registering 'ocd_jtag_flush_queue_sleep'... Debug: 35 1 command.c:373 register_command_handler(): registering 'ocd_jtag_rclk'... Debug: 36 2 command.c:373 register_command_handler(): registering 'ocd_jtag_ntrst_delay'... Debug: 37 2 command.c:373 register_command_handler(): registering 'ocd_jtag_ntrst_assert_width'... Debug: 38 2 command.c:373 register_command_handler(): registering 'ocd_scan_chain'... Debug: 39 2 command.c:373 register_command_handler(): registering 'ocd_jtag_reset'... Debug: 40 2 command.c:373 register_command_handler(): registering 'ocd_runtest'... Debug: 41 2 command.c:373 register_command_handler(): registering 'ocd_irscan'... Debug: 42 2 command.c:373 register_command_handler(): registering 'ocd_verify_ircapture'... Debug: 43 2 command.c:373 register_command_handler(): registering 'ocd_verify_jtag'... Debug: 44 2 command.c:373 register_command_handler(): registering 'ocd_tms_sequence'... Debug: 45 2 command.c:373 register_command_handler(): registering 'ocd_jtag'... Debug: 46 2 command.c:373 register_command_handler(): registering 'ocd_jtag'... Debug: 47 2 command.c:373 register_command_handler(): registering 'ocd_jtag'... Debug: 48 2 command.c:373 register_command_handler(): registering 'ocd_jtag'... Debug: 49 2 command.c:373 register_command_handler(): registering 'ocd_jtag'... Debug: 50 2 command.c:373 register_command_handler(): registering 'ocd_jtag'... Debug: 51 2 command.c:373 register_command_handler(): registering 'ocd_jtag'... Debug: 52 2 command.c:373 register_command_handler(): registering 'ocd_jtag'... Debug: 53 2 command.c:373 register_command_handler(): registering 'ocd_jtag'... Debug: 54 2 command.c:373 register_command_handler(): registering 'ocd_jtag'... Debug: 55 2 command.c:373 register_command_handler(): registering 'ocd_jtag'... Debug: 56 2 command.c:373 register_command_handler(): registering 'ocd_jtag'... Debug: 57 2 command.c:373 register_command_handler(): registering 'ocd_jtag'... Debug: 58 2 command.c:373 register_command_handler(): registering 'ocd_svf'... Debug: 59 2 command.c:373 register_command_handler(): registering 'ocd_xsvf'... Debug: 60 2 command.c:156 script_debug(): command - ocd_command ocd_command type ocd_ft2232_layout jtagkey Debug: 61 2 command.c:156 script_debug(): command - ft2232_layout ocd_ft2232_layout jtagkey Debug: 63 2 command.c:156 script_debug(): command - ocd_command ocd_command type ocd_ft2232_vid_pid 0x0403 0xcff8 Debug: 64 2 command.c:156 script_debug(): command - ft2232_vid_pid ocd_ft2232_vid_pid 0x0403 0xcff8 Debug: 66 2 configuration.c:87 find_file(): found /usr/local/share/openocd/scripts/target/stm32.cfg Debug: 67 2 command.c:156 script_debug(): command - ocd_command ocd_command type ocd_adapter_khz 1000 Debug: 68 2 command.c:156 script_debug(): command - adapter_khz ocd_adapter_khz 1000 Debug: 70 2 core.c:1618 jtag_config_khz(): handle jtag khz Debug: 71 2 core.c:1581 adapter_khz_to_speed(): convert khz to interface specific speed value User : 72 2 command.c:566 command_print(): 1000 kHz Debug: 73 2 command.c:156 script_debug(): command - ocd_command ocd_command type ocd_adapter_nsrst_delay 100 Debug: 74 2 command.c:156 script_debug(): command - adapter_nsrst_delay ocd_adapter_nsrst_delay 100 User : 76 2 command.c:566 command_print(): adapter_nsrst_delay: 100 Debug: 77 2 command.c:156 script_debug(): command - ocd_command ocd_command type ocd_jtag_ntrst_delay 100 Debug: 78 2 command.c:156 script_debug(): command - jtag_ntrst_delay ocd_jtag_ntrst_delay 100 User : 80 2 command.c:566 command_print(): jtag_ntrst_delay: 100 Debug: 81 2 command.c:156 script_debug(): command - ocd_command ocd_command type ocd_jtag newtap stm32 cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x3ba00477 Debug: 82 2 command.c:156 script_debug(): command - ocd_jtag ocd_jtag newtap stm32 cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x3ba00477 Debug: 83 2 tcl.c:573 jim_newtap_cmd(): Creating New Tap, Chip: stm32, Tap: cpu, Dotted: stm32.cpu, 8 params Debug: 84 2 tcl.c:590 jim_newtap_cmd(): Processing option: -irlen Debug: 85 2 tcl.c:590 jim_newtap_cmd(): Processing option: -ircapture Debug: 86 2 tcl.c:590 jim_newtap_cmd(): Processing option: -irmask Debug: 87 2 tcl.c:590 jim_newtap_cmd(): Processing option: -expected-id Debug: 88 2 core.c:1331 jtag_tap_init(): Created Tap: stm32.cpu @ abs position 0, irlen 4, capture: 0x1 mask: 0xf Debug: 89 2 command.c:156 script_debug(): command - ocd_command ocd_command type ocd_jtag newtap stm32 bs -irlen 5 -expected-id 0x06412041 -expected-id 0x06410041 -expected-id 0x16410041 -expected-id 0x06414041 -expected-id 0x06418041 Debug: 90 6 command.c:156 script_debug(): command - ocd_jtag ocd_jtag newtap stm32 bs -irlen 5 -expected-id 0x06412041 -expected-id 0x06410041 -expected-id 0x16410041 -expected-id 0x06414041 -expected-id 0x06418041 Debug: 91 6 tcl.c:573 jim_newtap_cmd(): Creating New Tap, Chip: stm32, Tap: bs, Dotted: stm32.bs, 12 params Debug: 92 6 tcl.c:590 jim_newtap_cmd(): Processing option: -irlen Debug: 93 6 tcl.c:590 jim_newtap_cmd(): Processing option: -expected-id Debug: 94 6 tcl.c:590 jim_newtap_cmd(): Processing option: -expected-id Debug: 95 6 tcl.c:590 jim_newtap_cmd(): Processing option: -expected-id Debug: 96 6 tcl.c:590 jim_newtap_cmd(): Processing option: -expected-id Debug: 97 6 tcl.c:590 jim_newtap_cmd(): Processing option: -expected-id Debug: 98 6 core.c:1331 jtag_tap_init(): Created Tap: stm32.bs @ abs position 0, irlen 5, capture: 0x1 mask: 0x3 Debug: 99 6 command.c:156 script_debug(): command - ocd_command ocd_command type ocd_target create stm32.cpu cortex_m3 -endian little -chain-position stm32.cpu Debug: 100 6 command.c:156 script_debug(): command - ocd_target ocd_target create stm32.cpu cortex_m3 -endian little -chain-position stm32.cpu Debug: 101 6 command.c:373 register_command_handler(): registering 'ocd_arm'... Debug: 102 6 command.c:373 register_command_handler(): registering 'ocd_arm'... Debug: 103 6 command.c:373 register_command_handler(): registering 'ocd_arm'... Debug: 104 6 command.c:373 register_command_handler(): registering 'ocd_arm'... Debug: 105 6 command.c:373 register_command_handler(): registering 'ocd_arm'... Debug: 106 6 command.c:373 register_command_handler(): registering 'ocd_arm'... Debug: 107 6 command.c:373 register_command_handler(): registering 'ocd_dap'... Debug: 108 6 command.c:373 register_command_handler(): registering 'ocd_dap'... Debug: 109 6 command.c:373 register_command_handler(): registering 'ocd_dap'... Debug: 110 6 command.c:373 register_command_handler(): registering 'ocd_dap'... Debug: 111 6 command.c:373 register_command_handler(): registering 'ocd_dap'... Debug: 112 6 command.c:373 register_command_handler(): registering 'ocd_cortex_m3'... Debug: 113 6 command.c:373 register_command_handler(): registering 'ocd_cortex_m3'... Debug: 114 6 command.c:373 register_command_handler(): registering 'ocd_cortex_m3'... Debug: 115 6 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 116 6 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 117 6 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 118 6 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 119 6 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 120 6 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 121 6 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 122 6 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 123 6 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 124 6 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 125 6 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 126 6 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 127 6 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 128 6 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 129 6 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 130 6 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 131 6 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 132 6 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 133 7 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 134 7 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 135 7 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 136 7 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 137 7 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 138 7 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 139 7 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 140 7 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 141 7 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 142 7 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 143 7 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 144 7 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 145 7 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 146 7 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 147 7 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 148 7 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 149 7 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 150 7 command.c:373 register_command_handler(): registering 'ocd_stm32.cpu'... Debug: 151 7 command.c:156 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu configure -work-area-phys 0x20000000 -work-area-size 0x4000 -work-area-backup 0 Debug: 152 7 command.c:156 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu configure -work-area-phys 0x20000000 -work-area-size 0x4000 -work-area-backup 0 Debug: 153 7 command.c:156 script_debug(): command - ocd_command ocd_command type ocd_flash bank stm32.flash stm32x 0 0 0 0 stm32.cpu Debug: 154 7 command.c:156 script_debug(): command - ocd_flash ocd_flash bank stm32.flash stm32x 0 0 0 0 stm32.cpu Debug: 156 7 command.c:373 register_command_handler(): registering 'ocd_stm32x'... Debug: 157 7 command.c:373 register_command_handler(): registering 'ocd_stm32x'... Debug: 158 7 command.c:373 register_command_handler(): registering 'ocd_stm32x'... Debug: 159 7 command.c:373 register_command_handler(): registering 'ocd_stm32x'... Debug: 160 7 command.c:373 register_command_handler(): registering 'ocd_stm32x'... Debug: 161 7 command.c:156 script_debug(): command - ocd_command ocd_command type ocd_adapter_khz 100 Debug: 162 7 command.c:156 script_debug(): command - adapter_khz ocd_adapter_khz 100 Debug: 164 7 core.c:1618 jtag_config_khz(): handle jtag khz Debug: 165 7 core.c:1581 adapter_khz_to_speed(): convert khz to interface specific speed value User : 166 7 command.c:566 command_print(): 100 kHz Debug: 167 7 httpd_stubs.c:28 httpd_start(): libocdserver was built without HTTPD support Debug: 168 7 command.c:156 script_debug(): command - ocd_command ocd_command type ocd_init Debug: 169 7 command.c:156 script_debug(): command - init ocd_init Debug: 171 7 command.c:156 script_debug(): command - ocd_command ocd_command type ocd_target init Debug: 172 7 command.c:156 script_debug(): command - ocd_target ocd_target init Debug: 174 7 target.c:891 handle_target_init_command(): Initializing targets... Debug: 175 7 command.c:373 register_command_handler(): registering 'ocd_target_request'... Debug: 176 7 command.c:373 register_command_handler(): registering 'ocd_trace'... Debug: 177 7 command.c:373 register_command_handler(): registering 'ocd_trace'... Debug: 178 7 command.c:373 register_command_handler(): registering 'ocd_fast_load_image'... Debug: 179 7 command.c:373 register_command_handler(): registering 'ocd_fast_load'... Debug: 180 7 command.c:373 register_command_handler(): registering 'ocd_profile'... Debug: 181 7 command.c:373 register_command_handler(): registering 'ocd_virt2phys'... Debug: 182 7 command.c:373 register_command_handler(): registering 'ocd_reg'... Debug: 183 7 command.c:373 register_command_handler(): registering 'ocd_poll'... Debug: 184 7 command.c:373 register_command_handler(): registering 'ocd_wait_halt'... Debug: 185 7 command.c:373 register_command_handler(): registering 'ocd_halt'... Debug: 186 7 command.c:373 register_command_handler(): registering 'ocd_resume'... Debug: 187 7 command.c:373 register_command_handler(): registering 'ocd_reset'... Debug: 188 7 command.c:373 register_command_handler(): registering 'ocd_soft_reset_halt'... Debug: 189 7 command.c:373 register_command_handler(): registering 'ocd_step'... Debug: 190 7 command.c:373 register_command_handler(): registering 'ocd_mdw'... Debug: 191 7 command.c:373 register_command_handler(): registering 'ocd_mdh'... Debug: 192 7 command.c:373 register_command_handler(): registering 'ocd_mdb'... Debug: 193 7 command.c:373 register_command_handler(): registering 'ocd_mww'... Debug: 194 7 command.c:373 register_command_handler(): registering 'ocd_mwh'... Debug: 195 8 command.c:373 register_command_handler(): registering 'ocd_mwb'... Debug: 196 8 command.c:373 register_command_handler(): registering 'ocd_bp'... Debug: 197 8 command.c:373 register_command_handler(): registering 'ocd_rbp'... Debug: 198 8 command.c:373 register_command_handler(): registering 'ocd_wp'... Debug: 199 8 command.c:373 register_command_handler(): registering 'ocd_rwp'... Debug: 200 8 command.c:373 register_command_handler(): registering 'ocd_load_image'... Debug: 201 8 command.c:373 register_command_handler(): registering 'ocd_dump_image'... Debug: 202 8 command.c:373 register_command_handler(): registering 'ocd_verify_image'... Debug: 203 8 command.c:373 register_command_handler(): registering 'ocd_test_image'... Debug: 204 8 command.c:373 register_command_handler(): registering 'ocd_reset_nag'... Debug: 205 8 ft2232.c:2336 ft2232_init(): ft2232 interface using shortest path jtag state transitions Debug: 206 8 ft2232.c:2249 ft2232_init_libftdi(): 'ft2232' interface using libftdi with 'jtagkey' layout (0403:cff8) Debug: 207 198 ft2232.c:2296 ft2232_init_libftdi(): current latency timer: 2 Debug: 208 199 ft2232.c:2307 ft2232_init_libftdi(): FTDI chip type: 2 "2232C" Debug: 209 199 ft2232.c:2701 jtagkey_init(): 80 08 1b Debug: 210 200 ft2232.c:2760 jtagkey_init(): 82 09 0f Debug: 211 201 core.c:1581 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 212 201 core.c:1585 adapter_khz_to_speed(): have interface set up Debug: 213 201 ft2232.c:651 ft2232_speed(): 86 3b 00 Debug: 214 205 core.c:1581 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 215 205 core.c:1585 adapter_khz_to_speed(): have interface set up Info : 216 205 core.c:1400 adapter_init(): clock speed 100 kHz Debug: 217 205 openocd.c:138 handle_init_command(): Debug Adapter init complete Debug: 218 205 command.c:156 script_debug(): command - ocd_command ocd_command type ocd_transport init Debug: 219 205 command.c:156 script_debug(): command - ocd_transport ocd_transport init Debug: 221 205 transport.c:253 handle_transport_init(): handle_transport_init Debug: 222 205 ft2232.c:1455 jtagkey_reset(): trst: 0, srst: 0, high_output: 0x09, high_direction: 0x0f Debug: 223 206 core.c:714 jtag_add_reset(): SRST line released Debug: 224 206 core.c:738 jtag_add_reset(): TRST line released Debug: 225 206 core.c:330 jtag_call_event_callbacks(): jtag event: TAP reset Debug: 226 408 command.c:156 script_debug(): command - ocd_command ocd_command type ocd_jtag arp_init Debug: 227 408 command.c:156 script_debug(): command - ocd_jtag ocd_jtag arp_init Debug: 228 408 core.c:1414 jtag_init_inner(): Init JTAG chain Debug: 229 408 core.c:330 jtag_call_event_callbacks(): jtag event: TAP reset Debug: 230 409 core.c:1049 jtag_examine_chain(): DR scan interrogation for IDCODE/BYPASS Debug: 231 409 core.c:330 jtag_call_event_callbacks(): jtag event: TAP reset Error: 232 418 core.c:939 jtag_examine_chain_check(): JTAG scan chain interrogation failed: all ones Error: 233 418 core.c:940 jtag_examine_chain_check(): Check JTAG interface, timings, target power, etc. Error: 234 418 core.c:1458 jtag_init_inner(): Trying to use configured scan chain anyway... Debug: 235 418 core.c:1213 jtag_validate_ircapture(): IR capture validation scan Error: 236 420 core.c:1268 jtag_validate_ircapture(): stm32.cpu: IR capture error; saw 0x0f not 0x01 Debug: 237 420 core.c:330 jtag_call_event_callbacks(): jtag event: TAP reset Warn : 238 421 core.c:1482 jtag_init_inner(): Bypassing JTAG setup events due to errors Debug: 239 421 openocd.c:151 handle_init_command(): Examining targets... Debug: 240 421 arm_adi_v5.c:914 ahbap_debugport_init(): Warn : 241 428 adi_v5_jtag.c:255 jtagdp_transaction_endcheck(): Invalid ACK 0x7 in JTAG-DP transaction Debug: 242 428 openocd.c:153 handle_init_command(): target examination failed Debug: 243 428 command.c:156 script_debug(): command - ocd_command ocd_command type ocd_flash init Debug: 244 428 command.c:156 script_debug(): command - ocd_flash ocd_flash init User : 245 428 target.c:1904 handle_target(): Polling target failed, GDB will be halted. Polling again in 100ms Debug: 246 428 target.c:1024 target_call_event_callbacks(): target event 2 (gdb-halt) Debug: 248 428 tcl.c:912 handle_flash_init_command(): Initializing flash devices... Debug: 249 428 command.c:373 register_command_handler(): registering 'ocd_flash'... Debug: 250 428 command.c:373 register_command_handler(): registering 'ocd_flash'... Debug: 251 428 command.c:373 register_command_handler(): registering 'ocd_flash'... Debug: 252 429 command.c:373 register_command_handler(): registering 'ocd_flash'... Debug: 253 429 command.c:373 register_command_handler(): registering 'ocd_flash'... Debug: 254 429 command.c:373 register_command_handler(): registering 'ocd_flash'... Debug: 255 429 command.c:373 register_command_handler(): registering 'ocd_flash'... Debug: 256 429 command.c:373 register_command_handler(): registering 'ocd_flash'... Debug: 257 429 command.c:373 register_command_handler(): registering 'ocd_flash'... Debug: 258 429 command.c:373 register_command_handler(): registering 'ocd_flash'... Debug: 259 429 command.c:373 register_command_handler(): registering 'ocd_flash'... Debug: 260 429 command.c:156 script_debug(): command - ocd_command ocd_command type ocd_mflash init Debug: 261 429 command.c:156 script_debug(): command - ocd_mflash ocd_mflash init Debug: 263 429 mflash.c:1331 handle_mflash_init_command(): Initializing mflash devices... Debug: 264 429 command.c:156 script_debug(): command - ocd_command ocd_command type ocd_nand init Debug: 265 429 command.c:156 script_debug(): command - ocd_nand ocd_nand init User : 266 429 target.c:1904 handle_target(): Polling target failed, GDB will be halted. Polling again in 300ms Debug: 267 429 target.c:1024 target_call_event_callbacks(): target event 2 (gdb-halt) Debug: 269 429 tcl.c:520 handle_nand_init_command(): Initializing NAND devices... Debug: 270 429 command.c:156 script_debug(): command - ocd_command ocd_command type ocd_pld init Debug: 271 429 command.c:156 script_debug(): command - ocd_pld ocd_pld init Debug: 273 429 pld.c:232 handle_pld_init_command(): Initializing PLDs... User : 274 729 target.c:1904 handle_target(): Polling target failed, GDB will be halted. Polling again in 700ms Debug: 275 729 target.c:1024 target_call_event_callbacks(): target event 2 (gdb-halt) User : 276 1530 target.c:1904 handle_target(): Polling target failed, GDB will be halted. Polling again in 1500ms Debug: 277 1530 target.c:1024 target_call_event_callbacks(): target event 2 (gdb-halt) User : 278 3132 target.c:1904 handle_target(): Polling target failed, GDB will be halted. Polling again in 3100ms Debug: 279 3132 target.c:1024 target_call_event_callbacks(): target event 2 (gdb-halt) Info : 280 4453 server.c:80 add_connection(): accepting 'gdb' connection from 3333 Debug: 281 4454 breakpoints.c:150 breakpoint_clear_target(): Delete all breakpoints for target: stm32.cpu Debug: 282 4454 breakpoints.c:277 watchpoint_clear_target(): Delete all watchpoints for target: stm32.cpu Debug: 283 4454 target.c:1024 target_call_event_callbacks(): target event 25 (gdb-attach) Error: 284 4454 target.c:1544 target_read_u32(): Target not examined yet Error: 285 4454 core.c:235 get_flash_bank_by_num(): auto_probe failed -4 Error: 286 4454 gdb_server.c:864 gdb_new_connection(): Connect failed. Consider setting up a gdb-attach event for the target to prepare target for GDB connect. Error: 287 4454 server.c:84 add_connection(): attempted 'gdb' connection rejected User : 288 6371 target.c:1904 handle_target(): Polling target failed, GDB will be halted. Polling again in 6300ms Debug: 289 6371 target.c:1024 target_call_event_callbacks(): target event 2 (gdb-halt) Program received signal SIGSEGV, Segmentation fault. gdb_frontend_halted (target=0x771d10, connection=0x76e8b0) at gdb_server.c:749 749 if (gdb_connection->frontend_state == TARGET_RUNNING) (gdb) i lo gdb_connection = 0x6e6961676120676e (gdb) i regi rax 0x0 0 rbx 0x6e6961676120676e 7955997313365731182 rcx 0x7ffff751e500 140737342727424 rdx 0x76e8b0 7792816 rsi 0x76e8b0 7792816 rdi 0x771d10 7806224 rbp 0x76e8b0 0x76e8b0 rsp 0x7fffffffdc10 0x7fffffffdc10 r8 0x75dad0 7723728 r9 0x4d7562 5076322 r10 0x0 0 r11 0x246 582 r12 0x771d10 7806224 r13 0x0 0 r14 0x7fffffffdd40 140737488346432 r15 0x7fffffffddc0 140737488346560 rip 0x427cbd 0x427cbd <gdb_frontend_halted+29> eflags 0x10202 [ IF RF ] cs 0x33 51 ss 0x2b 43 ds 0x0 0 es 0x0 0 fs 0x0 0 gs 0x0 0 (gdb) -- Domen -- Domen _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development