Hi! I am getting a segfault, on the libswd fork, current git version, in jtag mode. I added a few LOG_DEBUGs to check out what's going on, it seems that when ahbap_debugport_init() is called jtag_interface->transport is nil.
See below the output, the command invocation and the slightly altered config files: Invocation: ./src/openocd -s ./tcl/ -c "debug_level 3" -c "source [find interface/iqprog-jtag.cfg]" -c "source [find target/lpc1768.cfg]" -c "adapter_khz 10" -c "init" Regards, Ákos @@iqprog-jtag.cfg: # # Kristech KT-Link SWD Mode # # http://www.kristech.eu # interface ft2232 #ft2232_device_desc "KT-LINK" ft2232_layout ktlink_jtag ft2232_vid_pid 0x0403 0x6010 #interface_signal add RnW 0x1000 #interface_signal add LED 0x8000 #interface_signal add SRST 0x0a00 #interface_signal add SRSTin 0x0040 #interface_signal add CLK 0x01 #interface_signal add MOSI 0x02 #interface_signal add MISO 0x04 #interface_signal add nSWDsel 0x20 @@lpc1768.cfg # NXP LPC1768 Cortex-M3 with 512kB Flash and 32kB+32kB Local On-Chip SRAM, # LPC17xx chips support both JTAG and SWD transports. # Adapt based on what transport is active. source [find target/swj-dp.tcl] if { [info exists CHIPNAME] } { set _CHIPNAME $CHIPNAME } else { set _CHIPNAME lpc1768 } # After reset the chip is clocked by the ~4MHz internal RC oscillator. # When board-specific code (reset-init handler or device firmware) # configures another oscillator and/or PLL0, set CCLK to match; if # you don't, then flash erase and write operations may misbehave. # (The ROM code doing those updates cares about core clock speed...) # # CCLK is the core clock frequency in KHz if { [info exists CCLK ] } { set _CCLK $CCLK } else { set _CCLK 4000 } if { [info exists CPUTAPID ] } { set _CPUTAPID $CPUTAPID } else { set _CPUTAPID 0x4ba00477 } #delays on reset lines adapter_nsrst_delay 200 jtag newtap $_CHIPNAME cpu -irlen 4 -expected-id $_CPUTAPID #swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id $_CPUTAPID #swd newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID set _TARGETNAME $_CHIPNAME.cpu target create $_TARGETNAME cortex_m3 -chain-position $_TARGETNAME # LPC1768 has 32kB of SRAM In the ARMv7-M "Code" area (at 0x10000000) # and 32K more on AHB, in the ARMv7-M "SRAM" area, (at 0x2007c000). $_TARGETNAME configure -work-area-phys 0x10000000 -work-area-size 0x8000 # LPC1768 has 512kB of flash memory, managed by ROM code (including a # boot loader which verifies the flash exception table's checksum). # flash bank <name> lpc2000 <base> <size> 0 0 <target#> <variant> <clock> [calc checksum] set _FLASHNAME $_CHIPNAME.flash flash bank $_FLASHNAME lpc2000 0x0 0x80000 0 0 $_TARGETNAME \ lpc1700 $_CCLK calc_checksum # Run with *real slow* clock by default since the # boot rom could have been playing with the PLL, so # we have no idea what clock the target is running at. jtag_khz 10 $_TARGETNAME configure -event reset-init { # Do not remap 0x0000-0x0020 to anything but the flash (i.e. select # "User Flash Mode" where interrupt vectors are _not_ remapped, # and reside in flash instead). # # See Table 612. Memory Mapping Control register (MEMMAP - 0x400F C040) bit description # Bit Symbol Value Description Reset # value # 0 MAP Memory map control. 0 # 0 Boot mode. A portion of the Boot ROM is mapped to address 0. # 1 User mode. The on-chip Flash memory is mapped to address 0. # 31:1 - Reserved. The value read from a reserved bit is not defined. NA # # http://ics.nxp.com/support/documents/microcontrollers/?scope=LPC1768&type=user mww 0x400FC040 0x01 } @@openocd output: Open On-Chip Debugger 0.5.0-dev-gbe77026-dirty (2011-11-08-15:03) Licensed under GNU GPL v2 For bug reports, read http://openocd.berlios.de/doc/doxygen/bugs.html User : 11 1 command.c:557 command_print(): debug_level: 3 Debug: 12 1 configuration.c:87 find_file(): found tcl//interface/iqprog-jtag.cfg Debug: 13 1 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_interface ft2232 Debug: 14 1 command.c:151 script_debug(): command - interface ocd_interface ft2232 Debug: 16 1 command.c:364 register_command_handler(): registering 'ocd_ft2232_device_desc'... Debug: 17 1 command.c:364 register_command_handler(): registering 'ocd_ft2232_serial'... Debug: 18 1 command.c:364 register_command_handler(): registering 'ocd_ft2232_layout'... Debug: 19 1 command.c:364 register_command_handler(): registering 'ocd_ft2232_vid_pid'... Debug: 20 1 command.c:364 register_command_handler(): registering 'ocd_ft2232_latency'... Info : 21 1 transport.c:133 allow_transports(): only one transport option; autoselect 'jtag' Debug: 22 1 command.c:364 register_command_handler(): registering 'ocd_jtag_flush_queue_sleep'... Debug: 23 1 command.c:364 register_command_handler(): registering 'ocd_jtag_rclk'... Debug: 24 1 command.c:364 register_command_handler(): registering 'ocd_jtag_ntrst_delay'... Debug: 25 1 command.c:364 register_command_handler(): registering 'ocd_jtag_ntrst_assert_width'... Debug: 26 1 command.c:364 register_command_handler(): registering 'ocd_scan_chain'... Debug: 27 1 command.c:364 register_command_handler(): registering 'ocd_jtag_reset'... Debug: 28 1 command.c:364 register_command_handler(): registering 'ocd_runtest'... Debug: 29 1 command.c:364 register_command_handler(): registering 'ocd_irscan'... Debug: 30 1 command.c:364 register_command_handler(): registering 'ocd_verify_ircapture'... Debug: 31 1 command.c:364 register_command_handler(): registering 'ocd_verify_jtag'... Debug: 32 1 command.c:364 register_command_handler(): registering 'ocd_tms_sequence'... Debug: 33 1 command.c:364 register_command_handler(): registering 'ocd_wait_srst_deassert'... Debug: 34 1 command.c:364 register_command_handler(): registering 'ocd_jtag'... Debug: 35 1 command.c:364 register_command_handler(): registering 'ocd_jtag'... Debug: 36 1 command.c:364 register_command_handler(): registering 'ocd_jtag'... Debug: 37 1 command.c:364 register_command_handler(): registering 'ocd_jtag'... 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_svf'... Debug: 48 1 command.c:364 register_command_handler(): registering 'ocd_xsvf'... Debug: 49 1 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_ft2232_layout ktlink_jtag Debug: 50 1 command.c:151 script_debug(): command - ft2232_layout ocd_ft2232_layout ktlink_jtag Debug: 52 1 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_ft2232_vid_pid 0x0403 0x6010 Debug: 53 2 command.c:151 script_debug(): command - ft2232_vid_pid ocd_ft2232_vid_pid 0x0403 0x6010 Debug: 55 2 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_interface_signal add RnW 0x1000 Debug: 56 2 command.c:151 script_debug(): command - interface_signal ocd_interface_signal add RnW 0x1000 Debug: 58 2 adapter.c:205 handle_interface_signal_command(): entering function... Debug: 59 2 interface.c:85 oocd_interface_signal_add(): Adding signal "RnW" Debug: 60 2 interface.c:41 oocd_interface_signal_find(): Searching for signal "RnW" Debug: 61 2 interface.c:49 oocd_interface_signal_find(): No interface signals defined (yet?). Debug: 62 2 interface.c:143 oocd_interface_signal_add(): Signal "RnW" added. Debug: 63 2 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_interface_signal add LED 0x8000 Debug: 64 2 command.c:151 script_debug(): command - interface_signal ocd_interface_signal add LED 0x8000 Debug: 66 2 adapter.c:205 handle_interface_signal_command(): entering function... Debug: 67 2 interface.c:85 oocd_interface_signal_add(): Adding signal "LED" Debug: 68 2 interface.c:41 oocd_interface_signal_find(): Searching for signal "LED" Debug: 69 2 interface.c:68 oocd_interface_signal_find(): Signal LED not (yet) defined. Debug: 70 2 interface.c:143 oocd_interface_signal_add(): Signal "LED" added. Debug: 71 2 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_interface_signal add SRST 0x0a00 Debug: 72 2 command.c:151 script_debug(): command - interface_signal ocd_interface_signal add SRST 0x0a00 Debug: 74 2 adapter.c:205 handle_interface_signal_command(): entering function... Debug: 75 2 interface.c:85 oocd_interface_signal_add(): Adding signal "SRST" Debug: 76 2 interface.c:41 oocd_interface_signal_find(): Searching for signal "SRST" Debug: 77 2 interface.c:68 oocd_interface_signal_find(): Signal SRST not (yet) defined. Debug: 78 2 interface.c:143 oocd_interface_signal_add(): Signal "SRST" added. Debug: 79 2 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_interface_signal add SRSTin 0x0040 Debug: 80 2 command.c:151 script_debug(): command - interface_signal ocd_interface_signal add SRSTin 0x0040 Debug: 82 2 adapter.c:205 handle_interface_signal_command(): entering function... Debug: 83 2 interface.c:85 oocd_interface_signal_add(): Adding signal "SRSTin" Debug: 84 2 interface.c:41 oocd_interface_signal_find(): Searching for signal "SRSTin" Debug: 85 2 interface.c:68 oocd_interface_signal_find(): Signal SRSTin not (yet) defined. Debug: 86 23 interface.c:143 oocd_interface_signal_add(): Signal "SRSTin" added. Debug: 87 23 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_interface_signal add CLK 0x01 Debug: 88 23 command.c:151 script_debug(): command - interface_signal ocd_interface_signal add CLK 0x01 Debug: 90 23 adapter.c:205 handle_interface_signal_command(): entering function... Debug: 91 23 interface.c:85 oocd_interface_signal_add(): Adding signal "CLK" Debug: 92 23 interface.c:41 oocd_interface_signal_find(): Searching for signal "CLK" Debug: 93 23 interface.c:68 oocd_interface_signal_find(): Signal CLK not (yet) defined. Debug: 94 23 interface.c:143 oocd_interface_signal_add(): Signal "CLK" added. Debug: 95 23 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_interface_signal add MOSI 0x02 Debug: 96 23 command.c:151 script_debug(): command - interface_signal ocd_interface_signal add MOSI 0x02 Debug: 98 23 adapter.c:205 handle_interface_signal_command(): entering function... Debug: 99 23 interface.c:85 oocd_interface_signal_add(): Adding signal "MOSI" Debug: 100 23 interface.c:41 oocd_interface_signal_find(): Searching for signal "MOSI" Debug: 101 23 interface.c:68 oocd_interface_signal_find(): Signal MOSI not (yet) defined. Debug: 102 23 interface.c:143 oocd_interface_signal_add(): Signal "MOSI" added. Debug: 103 23 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_interface_signal add MISO 0x04 Debug: 104 23 command.c:151 script_debug(): command - interface_signal ocd_interface_signal add MISO 0x04 Debug: 106 23 adapter.c:205 handle_interface_signal_command(): entering function... Debug: 107 23 interface.c:85 oocd_interface_signal_add(): Adding signal "MISO" Debug: 108 23 interface.c:41 oocd_interface_signal_find(): Searching for signal "MISO" Debug: 109 23 interface.c:68 oocd_interface_signal_find(): Signal MISO not (yet) defined. Debug: 110 23 interface.c:143 oocd_interface_signal_add(): Signal "MISO" added. Debug: 111 23 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_interface_signal add nSWDsel 0x20 Debug: 112 23 command.c:151 script_debug(): command - interface_signal ocd_interface_signal add nSWDsel 0x20 Debug: 114 23 adapter.c:205 handle_interface_signal_command(): entering function... Debug: 115 23 interface.c:85 oocd_interface_signal_add(): Adding signal "nSWDsel" Debug: 116 23 interface.c:41 oocd_interface_signal_find(): Searching for signal "nSWDsel" Debug: 117 23 interface.c:68 oocd_interface_signal_find(): Signal nSWDsel not (yet) defined. Debug: 118 23 interface.c:143 oocd_interface_signal_add(): Signal "nSWDsel" added. Debug: 119 23 configuration.c:87 find_file(): found tcl//target/lpc1768.cfg Debug: 120 23 configuration.c:87 find_file(): found tcl//target/swj-dp.tcl Debug: 121 23 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_adapter_nsrst_delay 200 Debug: 122 23 command.c:151 script_debug(): command - adapter_nsrst_delay ocd_adapter_nsrst_delay 200 User : 124 23 command.c:557 command_print(): adapter_nsrst_delay: 200 Debug: 125 23 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_jtag newtap lpc1768 cpu -irlen 4 -expected-id 0x4ba00477 Debug: 126 23 command.c:151 script_debug(): command - ocd_jtag ocd_jtag newtap lpc1768 cpu -irlen 4 -expected-id 0x4ba00477 Info : 127 23 tcl.c:533 jim_newtap_cmd(): ENTER!!! Debug: 128 23 tcl.c:577 jim_newtap_cmd(): Creating New Tap, Chip: lpc1768, Tap: cpu, Dotted: lpc1768.cpu, 4 params Debug: 129 23 tcl.c:594 jim_newtap_cmd(): Processing option: -irlen Debug: 130 24 tcl.c:594 jim_newtap_cmd(): Processing option: -expected-id Debug: 131 24 core.c:1337 jtag_tap_init(): Created Tap: lpc1768.cpu @ abs position 0, irlen 4, capture: 0x1 mask: 0x3 Debug: 132 24 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_target create lpc1768.cpu cortex_m3 -chain-position lpc1768.cpu Debug: 133 24 command.c:151 script_debug(): command - ocd_target ocd_target create lpc1768.cpu cortex_m3 -chain-position lpc1768.cpu Debug: 134 24 command.c:364 register_command_handler(): registering 'ocd_arm'... Debug: 135 24 command.c:364 register_command_handler(): registering 'ocd_arm'... Debug: 136 24 command.c:364 register_command_handler(): registering 'ocd_arm'... Debug: 137 24 command.c:364 register_command_handler(): registering 'ocd_arm'... Debug: 138 24 command.c:364 register_command_handler(): registering 'ocd_arm'... Debug: 139 24 command.c:364 register_command_handler(): registering 'ocd_arm'... Debug: 140 24 command.c:364 register_command_handler(): registering 'ocd_dap'... Debug: 141 24 command.c:364 register_command_handler(): registering 'ocd_dap'... Debug: 142 24 command.c:364 register_command_handler(): registering 'ocd_dap'... Debug: 143 24 command.c:364 register_command_handler(): registering 'ocd_dap'... Debug: 144 24 command.c:364 register_command_handler(): registering 'ocd_dap'... Debug: 145 24 command.c:364 register_command_handler(): registering 'ocd_cortex_m3'... Debug: 146 24 command.c:364 register_command_handler(): registering 'ocd_cortex_m3'... Debug: 147 24 command.c:364 register_command_handler(): registering 'ocd_cortex_m3'... Debug: 148 24 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 149 24 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 150 24 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 151 24 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 152 24 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 153 24 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 154 24 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 155 24 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 156 24 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 157 24 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 158 24 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 159 24 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 160 111 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 161 111 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 162 111 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 163 111 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 164 111 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 165 111 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 166 111 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 167 111 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 168 111 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 169 111 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 170 111 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 171 111 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 172 111 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 173 111 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 174 111 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 175 111 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 176 111 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 177 111 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 178 111 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 179 111 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 180 111 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 181 111 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 182 111 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 183 111 command.c:364 register_command_handler(): registering 'ocd_lpc1768.cpu'... Debug: 184 111 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_lpc1768.cpu configure -work-area-phys 0x10000000 -work-area-size 0x8000 Debug: 185 111 command.c:151 script_debug(): command - ocd_lpc1768.cpu ocd_lpc1768.cpu configure -work-area-phys 0x10000000 -work-area-size 0x8000 Debug: 186 111 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_flash bank lpc1768.flash lpc2000 0x0 0x80000 0 0 lpc1768.cpu lpc1700 4000 calc_checksum Debug: 187 111 command.c:151 script_debug(): command - ocd_flash ocd_flash bank lpc1768.flash lpc2000 0x0 0x80000 0 0 lpc1768.cpu lpc1700 4000 calc_checksum Debug: 189 111 command.c:364 register_command_handler(): registering 'ocd_lpc2000'... Debug: 190 111 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_adapter_khz 10 Debug: 191 111 command.c:151 script_debug(): command - adapter_khz ocd_adapter_khz 10 Debug: 193 111 core.c:1643 jtag_config_khz(): handle jtag khz Debug: 194 111 core.c:1606 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 195 111 core.c:1606 adapter_khz_to_speed(): convert khz to interface specific speed value User : 196 111 command.c:557 command_print(): 10 kHz Debug: 197 111 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_lpc1768.cpu configure -event reset-init # Do not remap 0x0000-0x0020 to anything but the flash (i.e. select # "User Flash Mode" where interrupt vectors are _not_ remapped, # and reside in flash instead). # # See Table 612. Memory Mapping Control register (MEMMAP - 0x400F C040) bit description # Bit Symbol Value Description Reset # value # 0 MAP Memory map control. 0 # 0 Boot mode. A portion of the Boot ROM is mapped to address 0. # 1 User mode. The on-chip Flash memory is mapped to address 0. # 31:1 - Reserved. The value read from a reserved bit is not defined. NA # # http://ics.nxp.com/support/documents/microcontrollers/?scope=LPC1768&type=user mww 0x400FC040 0x01 Debug: 198 111 command.c:151 script_debug(): command - ocd_lpc1768.cpu ocd_lpc1768.cpu configure -event reset-init # Do not remap 0x0000-0x0020 to anything but the flash (i.e. select # "User Flash Mode" where interrupt vectors are _not_ remapped, # and reside in flash instead). # # See Table 612. Memory Mapping Control register (MEMMAP - 0x400F C040) bit description # Bit Symbol Value Description Reset # value # 0 MAP Memory map control. 0 # 0 Boot mode. A portion of the Boot ROM is mapped to address 0. # 1 User mode. The on-chip Flash memory is mapped to address 0. # 31:1 - Reserved. The value read from a reserved bit is not defined. NA # # http://ics.nxp.com/support/documents/microcontrollers/?scope=LPC1768&type=user mww 0x400FC040 0x01 Debug: 199 111 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_adapter_khz 10 Debug: 200 111 command.c:151 script_debug(): command - adapter_khz ocd_adapter_khz 10 Debug: 202 111 core.c:1643 jtag_config_khz(): handle jtag khz Debug: 203 111 core.c:1606 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 204 111 core.c:1606 adapter_khz_to_speed(): convert khz to interface specific speed value User : 205 111 command.c:557 command_print(): 10 kHz Debug: 206 111 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_init Debug: 207 111 command.c:151 script_debug(): command - init ocd_init Debug: 209 111 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_target init Debug: 210 111 command.c:151 script_debug(): command - ocd_target ocd_target init Debug: 212 111 target.c:929 handle_target_init_command(): Initializing targets... Debug: 213 111 command.c:364 register_command_handler(): registering 'ocd_target_request'... Debug: 214 111 command.c:364 register_command_handler(): registering 'ocd_trace'... Debug: 215 111 command.c:364 register_command_handler(): registering 'ocd_trace'... Debug: 216 111 command.c:364 register_command_handler(): registering 'ocd_fast_load_image'... Debug: 217 120 command.c:364 register_command_handler(): registering 'ocd_fast_load'... Debug: 218 120 command.c:364 register_command_handler(): registering 'ocd_profile'... Debug: 219 120 command.c:364 register_command_handler(): registering 'ocd_virt2phys'... Debug: 220 120 command.c:364 register_command_handler(): registering 'ocd_reg'... Debug: 221 120 command.c:364 register_command_handler(): registering 'ocd_poll'... Debug: 222 120 command.c:364 register_command_handler(): registering 'ocd_wait_halt'... Debug: 223 120 command.c:364 register_command_handler(): registering 'ocd_halt'... Debug: 224 120 command.c:364 register_command_handler(): registering 'ocd_resume'... Debug: 225 120 command.c:364 register_command_handler(): registering 'ocd_reset'... Debug: 226 120 command.c:364 register_command_handler(): registering 'ocd_soft_reset_halt'... Debug: 227 120 command.c:364 register_command_handler(): registering 'ocd_step'... Debug: 228 120 command.c:364 register_command_handler(): registering 'ocd_mdw'... Debug: 229 120 command.c:364 register_command_handler(): registering 'ocd_mdh'... Debug: 230 120 command.c:364 register_command_handler(): registering 'ocd_mdb'... Debug: 231 120 command.c:364 register_command_handler(): registering 'ocd_mww'... Debug: 232 120 command.c:364 register_command_handler(): registering 'ocd_mwh'... Debug: 233 120 command.c:364 register_command_handler(): registering 'ocd_mwb'... Debug: 234 120 command.c:364 register_command_handler(): registering 'ocd_bp'... Debug: 235 120 command.c:364 register_command_handler(): registering 'ocd_rbp'... Debug: 236 120 command.c:364 register_command_handler(): registering 'ocd_wp'... Debug: 237 120 command.c:364 register_command_handler(): registering 'ocd_rwp'... Debug: 238 120 command.c:364 register_command_handler(): registering 'ocd_load_image'... Debug: 239 120 command.c:364 register_command_handler(): registering 'ocd_dump_image'... Debug: 240 120 command.c:364 register_command_handler(): registering 'ocd_verify_image'... Debug: 241 120 command.c:364 register_command_handler(): registering 'ocd_test_image'... Debug: 242 120 command.c:364 register_command_handler(): registering 'ocd_reset_nag'... Debug: 243 120 ft2232.c:2631 ft2232_init(): ft2232 interface using shortest path jtag state transitions Debug: 244 120 ft2232.c:2504 ft2232_init_libftdi(): 'ft2232' interface using libftdi with 'ktlink_jtag' layout (0403:6010) Debug: 245 121 ft2232.c:2551 ft2232_init_libftdi(): current latency timer: 2 Debug: 246 121 ft2232.c:2562 ft2232_init_libftdi(): FTDI chip type: 4 "2232H" Debug: 247 121 ft2232.c:2588 ft2232_set_data_bits_low_byte(): 80 28 3b Debug: 248 122 ft2232.c:2608 ft2232_set_data_bits_high_byte(): 82 89 ff Info : 249 122 ft2232.c:4566 ktlink_init_jtag(): KT-LINK JTAG-Mode initialization complete... Info : 250 122 ft2232.c:821 ft2232h_ft4232h_clk_divide_by_5(): max TCK change to: 30000 kHz Debug: 251 122 core.c:1606 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 252 122 core.c:1610 adapter_khz_to_speed(): have interface set up Debug: 253 122 ft2232.c:789 ft2232h_ft4232h_adaptive_clocking(): 97 Debug: 254 122 ft2232.c:850 ft2232_speed(): 86 b7 0b Debug: 255 122 core.c:1606 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 256 122 core.c:1610 adapter_khz_to_speed(): have interface set up Info : 257 122 core.c:1421 adapter_init(): clock speed 10 kHz Info : 258 122 core.c:1427 adapter_init(): adapter_init ok Debug: 259 122 openocd.c:138 handle_init_command(): Debug Adapter init complete Debug: 260 123 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_transport init Debug: 261 123 command.c:151 script_debug(): command - ocd_transport ocd_transport init Debug: 263 123 transport.c:263 handle_transport_init(): handle_transport_init Debug: 264 123 ft2232.c:4648 ktlink_reset(): trst: 0, srst: 0, high_output: 0x09, high_direction: 0xff Debug: 265 123 core.c:713 jtag_add_reset(): SRST line released Debug: 266 123 core.c:737 jtag_add_reset(): TRST line released Debug: 267 123 core.c:329 jtag_call_event_callbacks(): jtag event: TAP reset Debug: 268 326 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_jtag arp_init Debug: 269 327 command.c:151 script_debug(): command - ocd_jtag ocd_jtag arp_init Debug: 270 327 core.c:1438 jtag_init_inner(): Init JTAG chain Debug: 271 327 core.c:329 jtag_call_event_callbacks(): jtag event: TAP reset Debug: 272 327 core.c:1055 jtag_examine_chain(): DR scan interrogation for IDCODE/BYPASS Debug: 273 327 core.c:329 jtag_call_event_callbacks(): jtag event: TAP reset Info : 274 394 core.c:955 jtag_examine_chain_display(): JTAG tap: lpc1768.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4) Debug: 275 394 core.c:1219 jtag_validate_ircapture(): IR capture validation scan Debug: 276 396 core.c:1280 jtag_validate_ircapture(): lpc1768.cpu: IR capture 0x01 Debug: 277 396 openocd.c:154 handle_init_command(): Examining targets... Debug: 278 396 arm_adi_v5.c:1068 ahbap_debugport_init(): Debug: 279 396 arm_adi_v5.c:1076 ahbap_debugport_init(): WTF Debug: 280 396 arm_adi_v5.c:1077 ahbap_debugport_init(): 0x73f3c0 Debug: 281 396 arm_adi_v5.c:1078 ahbap_debugport_init(): (nil) Segmentation fault ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
