I rebuilt with --enable-ftdi and got different results.
-
the telnet server accepts connection but never responds to commands. Because of this I added an explicit telnet_port (no effect), specified the mc13224v.cfg, and added a scan_chain.
-
When the scan chain executes it reports an IdCode of 0x0000000 – not what I would expect. That said, I would trust the results more if the entire config had been processed and I was executing scan_chain from the telnet port.
See below for the log.
On a different note… any thoughts on regression tests for OpenOCD? I’m sure key users (adapter makers) would be willing to set up cron jobs that would pull source, build, run at least a minimal/status test suite for the adapters/boards they have, and post results.
/////
Open On-Chip Debugger 0.7.0-dev-00135-g76afade-dirty (2013-01-07-22:57)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
User : 11 6 command.c:549 command_print(): debug_level: 3
Debug: 12 6 configuration.c:86 find_file(): found /Users/jahess/zigbee/devtools/share/openocd/scripts/interface/ftdi/olimex-arm-usb-tiny-h.cfg
Debug: 13 6 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_echo WARNING!
Debug: 14 6 command.c:145 script_debug(): command - echo ocd_echo WARNING!
User : 16 6 command.c:766 jim_echo(): WARNING!
Debug: 17 6 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_echo This file was not tested with real interface, but is assumed to work as this
Debug: 18 6 command.c:145 script_debug(): command - echo ocd_echo This file was not tested with real interface, but is assumed to work as this
User : 20 6 command.c:766 jim_echo(): This file was not tested with real interface, but is assumed to work as this
Debug: 21 6 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_echo interface uses the same layout as configs that were verified. Please report your
Debug: 22 6 command.c:145 script_debug(): command - echo ocd_echo interface uses the same layout as configs that were verified. Please report your
User : 24 6 command.c:766 jim_echo(): interface uses the same layout as configs that were verified. Please report your
Debug: 25 6 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_echo experience with this file to openocd-devel mailing list, so it could be marked
Debug: 26 6 command.c:145 script_debug(): command - echo ocd_echo experience with this file to openocd-devel mailing list, so it could be marked
User : 28 6 command.c:766 jim_echo(): experience with this file to openocd-devel mailing list, so it could be marked
Debug: 29 6 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_echo as working or fixed.
Debug: 30 6 command.c:145 script_debug(): command - echo ocd_echo as working or fixed.
User : 32 6 command.c:766 jim_echo(): as working or fixed.
Debug: 33 6 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_interface ftdi
Debug: 34 6 command.c:145 script_debug(): command - interface ocd_interface ftdi
Debug: 36 6 command.c:369 register_command_handler(): registering ‘ocd_ftdi_device_desc’…
Debug: 37 6 command.c:369 register_command_handler(): registering ‘ocd_ftdi_serial’…
Debug: 38 6 command.c:369 register_command_handler(): registering ‘ocd_ftdi_channel’…
Debug: 39 6 command.c:369 register_command_handler(): registering ‘ocd_ftdi_layout_init’…
Debug: 40 6 command.c:369 register_command_handler(): registering ‘ocd_ftdi_layout_signal’…
Debug: 41 6 command.c:369 register_command_handler(): registering ‘ocd_ftdi_set_signal’…
Debug: 42 6 command.c:369 register_command_handler(): registering ‘ocd_ftdi_vid_pid’…
Info : 43 6 transport.c:118 allow_transports(): only one transport option; autoselect ‘jtag’
Debug: 44 6 command.c:369 register_command_handler(): registering ‘ocd_jtag_flush_queue_sleep’…
Debug: 45 6 command.c:369 register_command_handler(): registering ‘ocd_jtag_rclk’…
Debug: 46 6 command.c:369 register_command_handler(): registering ‘ocd_jtag_ntrst_delay’…
Debug: 47 6 command.c:369 register_command_handler(): registering ‘ocd_jtag_ntrst_assert_width’…
Debug: 48 6 command.c:369 register_command_handler(): registering ‘ocd_scan_chain’…
Debug: 49 6 command.c:369 register_command_handler(): registering ‘ocd_jtag_reset’…
Debug: 50 6 command.c:369 register_command_handler(): registering ‘ocd_runtest’…
Debug: 51 6 command.c:369 register_command_handler(): registering ‘ocd_irscan’…
Debug: 52 6 command.c:369 register_command_handler(): registering ‘ocd_verify_ircapture’…
Debug: 53 6 command.c:369 register_command_handler(): registering ‘ocd_verify_jtag’…
Debug: 54 6 command.c:369 register_command_handler(): registering ‘ocd_tms_sequence’…
Debug: 55 6 command.c:369 register_command_handler(): registering ‘ocd_wait_srst_deassert’…
Debug: 56 6 command.c:369 register_command_handler(): registering ‘ocd_jtag’…
Debug: 57 6 command.c:369 register_command_handler(): registering ‘ocd_jtag’…
Debug: 58 6 command.c:369 register_command_handler(): registering ‘ocd_jtag’…
Debug: 59 6 command.c:369 register_command_handler(): registering ‘ocd_jtag’…
Debug: 60 6 command.c:369 register_command_handler(): registering ‘ocd_jtag’…
Debug: 61 6 command.c:369 register_command_handler(): registering ‘ocd_jtag’…
Debug: 62 6 command.c:369 register_command_handler(): registering ‘ocd_jtag’…
Debug: 63 6 command.c:369 register_command_handler(): registering ‘ocd_jtag’…
Debug: 64 6 command.c:369 register_command_handler(): registering ‘ocd_jtag’…
Debug: 65 6 command.c:369 register_command_handler(): registering ‘ocd_jtag’…
Debug: 66 6 command.c:369 register_command_handler(): registering ‘ocd_jtag’…
Debug: 67 6 command.c:369 register_command_handler(): registering ‘ocd_jtag’…
Debug: 68 6 command.c:369 register_command_handler(): registering ‘ocd_jtag’…
Debug: 69 6 command.c:369 register_command_handler(): registering ‘ocd_svf’…
Debug: 70 6 command.c:369 register_command_handler(): registering ‘ocd_xsvf’…
Debug: 71 7 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_ftdi_device_desc Olimex OpenOCD JTAG ARM-USB-TINY-H
Debug: 72 7 command.c:145 script_debug(): command - ftdi_device_desc ocd_ftdi_device_desc Olimex OpenOCD JTAG ARM-USB-TINY-H
Debug: 74 7 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_ftdi_vid_pid 0x15ba 0x002a
Debug: 75 7 command.c:145 script_debug(): command - ftdi_vid_pid ocd_ftdi_vid_pid 0x15ba 0x002a
Debug: 77 7 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_ftdi_layout_init 0x0c08 0x0f1b
Debug: 78 7 command.c:145 script_debug(): command - ftdi_layout_init ocd_ftdi_layout_init 0x0c08 0x0f1b
Debug: 80 7 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_ftdi_layout_signal nSRST -oe 0x0200
Debug: 81 7 command.c:145 script_debug(): command - ftdi_layout_signal ocd_ftdi_layout_signal nSRST -oe 0x0200
Debug: 83 7 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_ftdi_layout_signal nTRST -data 0x0100 -noe 0x0400
Debug: 84 7 command.c:145 script_debug(): command - ftdi_layout_signal ocd_ftdi_layout_signal nTRST -data 0x0100 -noe 0x0400
Debug: 86 7 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_ftdi_layout_signal LED -data 0x0800
Debug: 87 7 command.c:145 script_debug(): command - ftdi_layout_signal ocd_ftdi_layout_signal LED -data 0x0800
Debug: 89 7 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_reset_config srst_only srst_open_drain
Debug: 90 7 command.c:145 script_debug(): command - reset_config ocd_reset_config srst_only srst_open_drain
User : 92 7 command.c:549 command_print(): srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst
Debug: 93 7 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_jtag_ntrst_delay 200
Debug: 94 7 command.c:145 script_debug(): command - jtag_ntrst_delay ocd_jtag_ntrst_delay 200
User : 96 7 command.c:549 command_print(): jtag_ntrst_delay: 200
Debug: 97 7 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_jtag_rclk 8
Debug: 98 7 command.c:145 script_debug(): command - jtag_rclk ocd_jtag_rclk 8
Debug: 100 7 core.c:1652 jtag_config_rclk(): handle jtag rclk
Debug: 101 7 core.c:1610 adapter_khz_to_speed(): convert khz to interface specific speed value
Debug: 102 7 core.c:1610 adapter_khz_to_speed(): convert khz to interface specific speed value
User : 103 7 command.c:549 command_print(): RCLK - adaptive
Debug: 104 7 configuration.c:86 find_file(): found /Users/jahess/zigbee/devtools/share/openocd/scripts/target/mc13224v.cfg
Debug: 105 7 configuration.c:86 find_file(): found /Users/jahess/zigbee/devtools/share/openocd/scripts/bitsbytes.tcl
Debug: 106 8 configuration.c:86 find_file(): found /Users/jahess/zigbee/devtools/share/openocd/scripts/cpu/arm/arm7tdmi.tcl
Debug: 107 8 configuration.c:86 find_file(): found /Users/jahess/zigbee/devtools/share/openocd/scripts/memory.tcl
Debug: 108 8 configuration.c:86 find_file(): found /Users/jahess/zigbee/devtools/share/openocd/scripts/mmr_helpers.tcl
Debug: 109 8 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_jtag newtap mc13224v cpu -irlen 4 -expected-id 0x1f1f001d
Debug: 110 8 command.c:145 script_debug(): command - ocd_jtag ocd_jtag newtap mc13224v cpu -irlen 4 -expected-id 0x1f1f001d
Debug: 111 8 tcl.c:554 jim_newtap_cmd(): Creating New Tap, Chip: mc13224v, Tap: cpu, Dotted: mc13224v.cpu, 4 params
Debug: 112 8 tcl.c:571 jim_newtap_cmd(): Processing option: -irlen
Debug: 113 8 tcl.c:571 jim_newtap_cmd(): Processing option: -expected-id
Debug: 114 8 core.c:1323 jtag_tap_init(): Created Tap: mc13224v.cpu @ abs position 0, irlen 4, capture: 0x1 mask: 0x3
Debug: 115 8 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_reset_config srst_only
Debug: 116 8 command.c:145 script_debug(): command - reset_config ocd_reset_config srst_only
User : 118 8 command.c:549 command_print(): srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst
Debug: 119 8 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_jtag_ntrst_delay 200
Debug: 120 8 command.c:145 script_debug(): command - jtag_ntrst_delay ocd_jtag_ntrst_delay 200
User : 122 8 command.c:549 command_print(): jtag_ntrst_delay: 200
Debug: 123 8 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_adapter_khz 2000
Debug: 124 8 command.c:145 script_debug(): command - adapter_khz ocd_adapter_khz 2000
Debug: 126 8 core.c:1643 jtag_config_khz(): handle jtag khz
Debug: 127 8 core.c:1610 adapter_khz_to_speed(): convert khz to interface specific speed value
Debug: 128 8 core.c:1610 adapter_khz_to_speed(): convert khz to interface specific speed value
User : 129 8 command.c:549 command_print(): adapter speed: 2000 kHz
Debug: 130 8 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_target create mc13224v.cpu arm7tdmi -chain-position mc13224v.cpu
Debug: 131 8 command.c:145 script_debug(): command - ocd_target ocd_target create mc13224v.cpu arm7tdmi -chain-position mc13224v.cpu
Debug: 132 8 target.c:1631 target_free_all_working_areas_restore(): freeing all working areas
Debug: 133 8 command.c:369 register_command_handler(): registering ‘ocd_arm’…
Debug: 134 8 command.c:369 register_command_handler(): registering ‘ocd_arm’…
Debug: 135 8 command.c:369 register_command_handler(): registering ‘ocd_arm’…
Debug: 136 8 command.c:369 register_command_handler(): registering ‘ocd_arm’…
Debug: 137 8 command.c:369 register_command_handler(): registering ‘ocd_arm’…
Debug: 138 8 command.c:369 register_command_handler(): registering ‘ocd_arm’…
Debug: 139 8 command.c:369 register_command_handler(): registering ‘ocd_etm’…
Debug: 140 8 command.c:369 register_command_handler(): registering ‘ocd_arm7_9’…
Debug: 141 8 command.c:369 register_command_handler(): registering ‘ocd_arm7_9’…
Debug: 142 8 command.c:369 register_command_handler(): registering ‘ocd_arm7_9’…
Debug: 143 8 armv4_5.c:395 arm_set_cpsr(): set CPSR 0x00000010: User mode, ARM state
Debug: 144 8 command.c:369 register_command_handler(): registering ‘ocd_mc13224v.cpu’…
Debug: 145 8 command.c:369 register_command_handler(): registering ‘ocd_mc13224v.cpu’…
Debug: 146 8 command.c:369 register_command_handler(): registering ‘ocd_mc13224v.cpu’…
Debug: 147 8 command.c:369 register_command_handler(): registering ‘ocd_mc13224v.cpu’…
Debug: 148 8 command.c:369 register_command_handler(): registering ‘ocd_mc13224v.cpu’…
Debug: 149 8 command.c:369 register_command_handler(): registering ‘ocd_mc13224v.cpu’…
Debug: 150 8 command.c:369 register_command_handler(): registering ‘ocd_mc13224v.cpu’…
Debug: 151 8 command.c:369 register_command_handler(): registering ‘ocd_mc13224v.cpu’…
Debug: 152 9 command.c:369 register_command_handler(): registering ‘ocd_mc13224v.cpu’…
Debug: 153 9 command.c:369 register_command_handler(): registering ‘ocd_mc13224v.cpu’…
Debug: 154 9 command.c:369 register_command_handler(): registering ‘ocd_mc13224v.cpu’…
Debug: 155 9 command.c:369 register_command_handler(): registering ‘ocd_mc13224v.cpu’…
Debug: 156 9 command.c:369 register_command_handler(): registering ‘ocd_mc13224v.cpu’…
Debug: 157 9 command.c:369 register_command_handler(): registering ‘ocd_mc13224v.cpu’…
Debug: 158 9 command.c:369 register_command_handler(): registering ‘ocd_mc13224v.cpu’…
Debug: 159 9 command.c:369 register_command_handler(): registering ‘ocd_mc13224v.cpu’…
Debug: 160 9 command.c:369 register_command_handler(): registering ‘ocd_mc13224v.cpu’…
Debug: 161 9 command.c:369 register_command_handler(): registering ‘ocd_mc13224v.cpu’…
Debug: 162 9 command.c:369 register_command_handler(): registering ‘ocd_mc13224v.cpu’…
Debug: 163 9 command.c:369 register_command_handler(): registering ‘ocd_mc13224v.cpu’…
Debug: 164 9 command.c:369 register_command_handler(): registering ‘ocd_mc13224v.cpu’…
Debug: 165 9 command.c:369 register_command_handler(): registering ‘ocd_mc13224v.cpu’…
Debug: 166 9 command.c:369 register_command_handler(): registering ‘ocd_mc13224v.cpu’…
Debug: 167 9 command.c:369 register_command_handler(): registering ‘ocd_mc13224v.cpu’…
Debug: 168 9 command.c:369 register_command_handler(): registering ‘ocd_mc13224v.cpu’…
Debug: 169 9 command.c:369 register_command_handler(): registering ‘ocd_mc13224v.cpu’…
Debug: 170 9 command.c:369 register_command_handler(): registering ‘ocd_mc13224v.cpu’…
Debug: 171 9 command.c:369 register_command_handler(): registering ‘ocd_mc13224v.cpu’…
Debug: 172 9 command.c:369 register_command_handler(): registering ‘ocd_mc13224v.cpu’…
Debug: 173 9 command.c:369 register_command_handler(): registering ‘ocd_mc13224v.cpu’…
Debug: 174 9 command.c:369 register_command_handler(): registering ‘ocd_mc13224v.cpu’…
Debug: 175 9 command.c:369 register_command_handler(): registering ‘ocd_mc13224v.cpu’…
Debug: 176 9 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_mc13224v.cpu configure -work-area-phys 0x00408000 -work-area-size 0x1000 -work-area-backup 1
Debug: 177 9 command.c:145 script_debug(): command - ocd_mc13224v.cpu ocd_mc13224v.cpu configure -work-area-phys 0x00408000 -work-area-size 0x1000 -work-area-backup 1
Debug: 178 9 target.c:1631 target_free_all_working_areas_restore(): freeing all working areas
Debug: 179 9 target.c:1631 target_free_all_working_areas_restore(): freeing all working areas
Debug: 180 9 target.c:1631 target_free_all_working_areas_restore(): freeing all working areas
Debug: 181 9 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_scan_chain
Debug: 182 9 command.c:145 script_debug(): command - scan_chain ocd_scan_chain
User : 184 9 command.c:549 command_print(): TapName Enabled IdCode Expected IrLen IrCap IrMask
User : 185 9 command.c:549 command_print(): – ------------------- -------- ---------- ---------- ----- ----- ------
User : 186 9 command.c:549 command_print(): 0 mc13224v.cpu Y 0x00000000 0x1f1f001d 4 0x01 0x03
Debug: 187 9 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_telnet_port 4444
Debug: 188 9 command.c:145 script_debug(): command - telnet_port ocd_telnet_port 4444
Debug: 190 9 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_init
Debug: 191 9 command.c:145 script_debug(): command - init ocd_init
Debug: 193 9 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_target init
Debug: 194 9 command.c:145 script_debug(): command - ocd_target ocd_target init
Debug: 196 9 target.c:1194 handle_target_init_command(): Initializing targets…
Debug: 197 9 command.c:369 register_command_handler(): registering ‘ocd_target_request’…
Debug: 198 9 command.c:369 register_command_handler(): registering ‘ocd_trace’…
Debug: 199 9 command.c:369 register_command_handler(): registering ‘ocd_trace’…
Debug: 200 9 command.c:369 register_command_handler(): registering ‘ocd_fast_load_image’…
Debug: 201 9 command.c:369 register_command_handler(): registering ‘ocd_fast_load’…
Debug: 202 9 command.c:369 register_command_handler(): registering ‘ocd_profile’…
Debug: 203 9 command.c:369 register_command_handler(): registering ‘ocd_virt2phys’…
Debug: 204 9 command.c:369 register_command_handler(): registering ‘ocd_reg’…
Debug: 205 9 command.c:369 register_command_handler(): registering ‘ocd_poll’…
Debug: 206 9 command.c:369 register_command_handler(): registering ‘ocd_wait_halt’…
Debug: 207 9 command.c:369 register_command_handler(): registering ‘ocd_halt’…
Debug: 208 9 command.c:369 register_command_handler(): registering ‘ocd_resume’…
Debug: 209 9 command.c:369 register_command_handler(): registering ‘ocd_reset’…
Debug: 210 9 command.c:369 register_command_handler(): registering ‘ocd_soft_reset_halt’…
Debug: 211 9 command.c:369 register_command_handler(): registering ‘ocd_step’…
Debug: 212 9 command.c:369 register_command_handler(): registering ‘ocd_mdw’…
Debug: 213 9 command.c:369 register_command_handler(): registering ‘ocd_mdh’…
Debug: 214 9 command.c:369 register_command_handler(): registering ‘ocd_mdb’…
Debug: 215 9 command.c:369 register_command_handler(): registering ‘ocd_mww’…
Debug: 216 9 command.c:369 register_command_handler(): registering ‘ocd_mwh’…
Debug: 217 9 command.c:369 register_command_handler(): registering ‘ocd_mwb’…
Debug: 218 9 command.c:369 register_command_handler(): registering ‘ocd_bp’…
Debug: 219 9 command.c:369 register_command_handler(): registering ‘ocd_rbp’…
Debug: 220 9 command.c:369 register_command_handler(): registering ‘ocd_wp’…
Debug: 221 9 command.c:369 register_command_handler(): registering ‘ocd_rwp’…
Debug: 222 9 command.c:369 register_command_handler(): registering ‘ocd_load_image’…
Debug: 223 9 command.c:369 register_command_handler(): registering ‘ocd_dump_image’…
Debug: 224 9 command.c:369 register_command_handler(): registering ‘ocd_verify_image’…
Debug: 225 9 command.c:369 register_command_handler(): registering ‘ocd_test_image’…
Debug: 226 9 command.c:369 register_command_handler(): registering ‘ocd_reset_nag’…
Debug: 227 9 command.c:369 register_command_handler(): registering ‘ocd_ps’…
Debug: 228 9 ftdi.c:630 ftdi_initialize(): ftdi interface using shortest path jtag state transitions
Debug: 229 726 mpsse.c:361 mpsse_purge(): -
Debug: 230 727 mpsse.c:626 mpsse_loopback_config(): off
Debug: 232 727 core.c:1610 adapter_khz_to_speed(): convert khz to interface specific speed value
Debug: 233 727 core.c:1613 adapter_khz_to_speed(): have interface set up
Debug: 234 727 mpsse.c:667 mpsse_set_frequency(): target 2000000 Hz
Debug: 235 727 mpsse.c:660 mpsse_rtck_config(): off
Debug: 236 727 mpsse.c:650 mpsse_divide_by_5_config(): off
Debug: 237 727 mpsse.c:632 mpsse_set_divisor(): 14
Debug: 238 727 mpsse.c:696 mpsse_set_frequency(): actually 2000000 Hz
Debug: 239 727 core.c:1610 adapter_khz_to_speed(): convert khz to interface specific speed value
Debug: 240 727 core.c:1613 adapter_khz_to_speed(): have interface set up
Info : 241 727 core.c:1399 adapter_init(): clock speed 2000 kHz
Debug: 242 727 openocd.c:132 handle_init_command(): Debug Adapter init complete
Debug: 243 727 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport init
Debug: 244 727 command.c:145 script_debug(): command - ocd_transport ocd_transport init
Debug: 246 727 transport.c:240 handle_transport_init(): handle_transport_init
Debug: 247 727 core.c:719 jtag_add_reset(): SRST line released
Debug: 248 727 core.c:743 jtag_add_reset(): TRST line released
Debug: 249 727 core.c:323 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 250 948 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_jtag arp_init
Debug: 251 948 command.c:145 script_debug(): command - ocd_jtag ocd_jtag arp_init
Debug: 252 948 core.c:1412 jtag_init_inner(): Init JTAG chain
Debug: 253 948 core.c:323 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 254 948 core.c:1048 jtag_examine_chain(): DR scan interrogation for IDCODE/BYPASS
Debug: 255 948 core.c:323 jtag_call_event_callbacks(): jtag event: TAP reset
\\\