# Pastebin pcZdkcA2 jacob-2:bin jacobrosenthal$ openocd -f interface/jlink.cfg -c "transport select swd" -f target/nrf51.cfg -d3 Open On-Chip Debugger 0.9.0-dev-00156-gc0b8e60 (2014-09-27-23:47) Licensed under GNU GPL v2 For bug reports, read http://openocd.sourceforge.net/doc/doxygen/bugs.html User : 13 2 command.c:546 command_print(): debug_level: 3 Debug: 14 2 options.c:98 add_default_dirs(): bindir=/usr/local/Cellar/open-ocd/HEAD/bin Debug: 15 2 options.c:99 add_default_dirs(): pkgdatadir=/usr/local/Cellar/open-ocd/HEAD/share/openocd Debug: 16 2 options.c:100 add_default_dirs(): run_prefix= Debug: 17 2 configuration.c:44 add_script_search_dir(): adding /Users/jacobrosenthal/.openocd Debug: 18 2 configuration.c:44 add_script_search_dir(): adding /usr/local/Cellar/open-ocd/HEAD/share/openocd/site Debug: 19 2 configuration.c:44 add_script_search_dir(): adding /usr/local/Cellar/open-ocd/HEAD/share/openocd/scripts Debug: 20 2 configuration.c:84 find_file(): found /usr/local/Cellar/open-ocd/HEAD/share/openocd/scripts/interface/jlink.cfg Debug: 21 2 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_interface jlink Debug: 22 2 command.c:145 script_debug(): command - interface ocd_interface jlink Debug: 24 2 command.c:325 command_new(): BUG: command 'jlink' does not have the '.usage' field filled out Debug: 25 2 command.c:325 command_new(): BUG: command 'jlink caps' does not have the '.usage' field filled out Debug: 26 2 command.c:366 register_command_handler(): registering 'ocd_jlink'... Debug: 27 2 command.c:325 command_new(): BUG: command 'jlink info' does not have the '.usage' field filled out Debug: 28 2 command.c:366 register_command_handler(): registering 'ocd_jlink'... Debug: 29 2 command.c:366 register_command_handler(): registering 'ocd_jlink'... Debug: 30 2 command.c:325 command_new(): BUG: command 'jlink config' does not have the '.usage' field filled out Debug: 31 2 command.c:366 register_command_handler(): registering 'ocd_jlink'... Debug: 32 2 command.c:366 register_command_handler(): registering 'ocd_jlink'... Debug: 33 2 command.c:366 register_command_handler(): registering 'ocd_jlink'... Debug: 34 2 command.c:366 register_command_handler(): registering 'ocd_jlink'... Debug: 35 2 command.c:325 command_new(): BUG: command 'config reset' does not have the '.usage' field filled out Debug: 36 2 command.c:366 register_command_handler(): registering 'ocd_jlink'... Debug: 37 2 command.c:325 command_new(): BUG: command 'config save' does not have the '.usage' field filled out Debug: 38 2 command.c:366 register_command_handler(): registering 'ocd_jlink'... Debug: 39 2 command.c:366 register_command_handler(): registering 'ocd_jlink'... Debug: 40 2 command.c:325 command_new(): BUG: command 'jlink pid' does not have the '.usage' field filled out Debug: 41 2 command.c:366 register_command_handler(): registering 'ocd_jlink'... Debug: 42 2 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport select swd Debug: 43 2 command.c:145 script_debug(): command - ocd_transport ocd_transport select swd Debug: 44 2 command.c:325 command_new(): BUG: command 'swd' does not have the '.usage' field filled out Debug: 45 2 command.c:366 register_command_handler(): registering 'ocd_swd'... Debug: 46 2 command.c:366 register_command_handler(): registering 'ocd_swd'... Info : 47 2 jlink.c:1303 jlink_swd_init(): JLink SWD mode enabled User : 48 2 command.c:691 command_run_line(): swdUser : 49 2 command.c:693 command_run_line(): Debug: 50 2 configuration.c:84 find_file(): found /usr/local/Cellar/open-ocd/HEAD/share/openocd/scripts/target/nrf51.cfg Debug: 51 2 configuration.c:84 find_file(): found /usr/local/Cellar/open-ocd/HEAD/share/openocd/scripts/target/swj-dp.tcl Debug: 52 3 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport select Debug: 53 3 command.c:145 script_debug(): command - ocd_transport ocd_transport select Debug: 54 3 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport select Debug: 55 3 command.c:145 script_debug(): command - ocd_transport ocd_transport select Debug: 56 3 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport select Debug: 57 3 command.c:145 script_debug(): command - ocd_transport ocd_transport select Debug: 58 3 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport select Debug: 59 3 command.c:145 script_debug(): command - ocd_transport ocd_transport select Debug: 60 3 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport select Debug: 61 3 command.c:145 script_debug(): command - ocd_transport ocd_transport select Debug: 62 3 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_swd newdap nrf51 cpu -expected-id 0x0bb11477 Debug: 63 3 command.c:145 script_debug(): command - ocd_swd ocd_swd newdap nrf51 cpu -expected-id 0x0bb11477 Debug: 64 3 tcl.c:554 jim_newtap_cmd(): Creating New Tap, Chip: nrf51, Tap: cpu, Dotted: nrf51.cpu, 2 params Debug: 65 3 core.c:1322 jtag_tap_init(): Created Tap: nrf51.cpu @ abs position 0, irlen 0, capture: 0x0 mask: 0x0 Debug: 66 3 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_target create nrf51.cpu cortex_m -chain-position nrf51.cpu Debug: 67 3 command.c:145 script_debug(): command - ocd_target ocd_target create nrf51.cpu cortex_m -chain-position nrf51.cpu Debug: 68 3 target.c:1726 target_free_all_working_areas_restore(): freeing all working areas Debug: 69 3 command.c:366 register_command_handler(): registering 'ocd_arm'... Debug: 70 3 command.c:366 register_command_handler(): registering 'ocd_arm'... Debug: 71 3 command.c:366 register_command_handler(): registering 'ocd_arm'... Debug: 72 3 command.c:366 register_command_handler(): registering 'ocd_arm'... Debug: 73 3 command.c:366 register_command_handler(): registering 'ocd_arm'... Debug: 74 3 command.c:366 register_command_handler(): registering 'ocd_arm'... Debug: 75 3 command.c:366 register_command_handler(): registering 'ocd_dap'... Debug: 76 3 command.c:366 register_command_handler(): registering 'ocd_dap'... Debug: 77 3 command.c:366 register_command_handler(): registering 'ocd_dap'... Debug: 78 3 command.c:366 register_command_handler(): registering 'ocd_dap'... Debug: 79 3 command.c:366 register_command_handler(): registering 'ocd_dap'... Debug: 80 3 command.c:366 register_command_handler(): registering 'ocd_dap'... Debug: 81 3 command.c:366 register_command_handler(): registering 'ocd_dap'... Debug: 82 3 command.c:366 register_command_handler(): registering 'ocd_cortex_m'... Debug: 83 3 command.c:366 register_command_handler(): registering 'ocd_cortex_m'... Debug: 84 3 command.c:366 register_command_handler(): registering 'ocd_cortex_m'... Debug: 85 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 86 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 87 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 88 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 89 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 90 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 91 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 92 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 93 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 94 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 95 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 96 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 97 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 98 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 99 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 100 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 101 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 102 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 103 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 104 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 105 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 106 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 107 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 108 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 109 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 110 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 111 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 112 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 113 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 114 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 115 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 116 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 117 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 118 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 119 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 120 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 121 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 122 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 123 3 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_nrf51.cpu configure -work-area-phys 0x20000000 -work-area-size 0x800 -work-area-backup 0 Debug: 124 3 command.c:145 script_debug(): command - ocd_nrf51.cpu ocd_nrf51.cpu configure -work-area-phys 0x20000000 -work-area-size 0x800 -work-area-backup 0 Debug: 125 3 target.c:1726 target_free_all_working_areas_restore(): freeing all working areas Debug: 126 3 target.c:1726 target_free_all_working_areas_restore(): freeing all working areas Debug: 127 3 target.c:1726 target_free_all_working_areas_restore(): freeing all working areas Debug: 128 3 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport select Debug: 129 3 command.c:145 script_debug(): command - ocd_transport ocd_transport select Debug: 130 3 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_cortex_m reset_config sysresetreq Debug: 131 3 command.c:145 script_debug(): command - ocd_cortex_m ocd_cortex_m reset_config sysresetreq User : 133 3 command.c:546 command_print(): cortex_m reset_config sysresetreq Debug: 134 4 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_flash bank nrf51.flash nrf51 0x00000000 0 1 1 nrf51.cpu Debug: 135 4 command.c:145 script_debug(): command - ocd_flash ocd_flash bank nrf51.flash nrf51 0x00000000 0 1 1 nrf51.cpu Debug: 137 4 command.c:325 command_new(): BUG: command 'nrf51 mass_erase' does not have the '.usage' field filled out Debug: 138 4 command.c:366 register_command_handler(): registering 'ocd_nrf51'... Debug: 139 4 tcl.c:824 handle_flash_bank_command(): 'nrf51' driver usage field missing Debug: 140 4 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_flash bank nrf51.uicr nrf51 0x10001000 0 1 1 nrf51.cpu Debug: 141 4 command.c:145 script_debug(): command - ocd_flash ocd_flash bank nrf51.uicr nrf51 0x10001000 0 1 1 nrf51.cpu Debug: 143 4 command.c:401 register_command(): command 'nrf51' is already registered in '' context Debug: 144 4 command.c:401 register_command(): command 'mass_erase' is already registered in 'nrf51' context Debug: 145 4 tcl.c:824 handle_flash_bank_command(): 'nrf51' driver usage field missing Debug: 146 4 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_adapter_khz 1000 Debug: 147 4 command.c:145 script_debug(): command - adapter_khz ocd_adapter_khz 1000 Debug: 149 4 core.c:1647 jtag_config_khz(): handle jtag khz Debug: 150 4 core.c:1614 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 151 4 core.c:1614 adapter_khz_to_speed(): convert khz to interface specific speed value User : 152 4 command.c:546 command_print(): adapter speed: 1000 kHz Debug: 153 4 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_nrf51.cpu configure -event reset-end enable_all_ram Debug: 154 4 command.c:145 script_debug(): command - ocd_nrf51.cpu ocd_nrf51.cpu configure -event reset-end enable_all_ram Debug: 155 4 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_init Debug: 156 4 command.c:145 script_debug(): command - init ocd_init Debug: 158 4 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_target init Debug: 159 4 command.c:145 script_debug(): command - ocd_target ocd_target init Debug: 161 4 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_target names Debug: 162 4 command.c:145 script_debug(): command - ocd_target ocd_target names Debug: 163 4 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_nrf51.cpu cget -event gdb-flash-erase-start Debug: 164 4 command.c:145 script_debug(): command - ocd_nrf51.cpu ocd_nrf51.cpu cget -event gdb-flash-erase-start Debug: 165 4 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_nrf51.cpu configure -event gdb-flash-erase-start reset init Debug: 166 4 command.c:145 script_debug(): command - ocd_nrf51.cpu ocd_nrf51.cpu configure -event gdb-flash-erase-start reset init Debug: 167 4 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_nrf51.cpu cget -event gdb-flash-write-end Debug: 168 4 command.c:145 script_debug(): command - ocd_nrf51.cpu ocd_nrf51.cpu cget -event gdb-flash-write-end Debug: 169 4 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_nrf51.cpu configure -event gdb-flash-write-end reset halt Debug: 170 4 command.c:145 script_debug(): command - ocd_nrf51.cpu ocd_nrf51.cpu configure -event gdb-flash-write-end reset halt Debug: 171 4 target.c:1289 handle_target_init_command(): Initializing targets... Debug: 172 4 command.c:366 register_command_handler(): registering 'ocd_target_request'... Debug: 173 4 command.c:366 register_command_handler(): registering 'ocd_trace'... Debug: 174 4 command.c:366 register_command_handler(): registering 'ocd_trace'... Debug: 175 4 command.c:366 register_command_handler(): registering 'ocd_fast_load_image'... Debug: 176 4 command.c:366 register_command_handler(): registering 'ocd_fast_load'... Debug: 177 4 command.c:366 register_command_handler(): registering 'ocd_profile'... Debug: 178 4 command.c:366 register_command_handler(): registering 'ocd_virt2phys'... Debug: 179 4 command.c:366 register_command_handler(): registering 'ocd_reg'... Debug: 180 4 command.c:366 register_command_handler(): registering 'ocd_poll'... Debug: 181 4 command.c:366 register_command_handler(): registering 'ocd_wait_halt'... Debug: 182 4 command.c:366 register_command_handler(): registering 'ocd_halt'... Debug: 183 4 command.c:366 register_command_handler(): registering 'ocd_resume'... Debug: 184 4 command.c:366 register_command_handler(): registering 'ocd_reset'... Debug: 185 4 command.c:366 register_command_handler(): registering 'ocd_soft_reset_halt'... Debug: 186 4 command.c:366 register_command_handler(): registering 'ocd_step'... Debug: 187 4 command.c:366 register_command_handler(): registering 'ocd_mdw'... Debug: 188 4 command.c:366 register_command_handler(): registering 'ocd_mdh'... Debug: 189 4 command.c:366 register_command_handler(): registering 'ocd_mdb'... Debug: 190 4 command.c:366 register_command_handler(): registering 'ocd_mww'... Debug: 191 4 command.c:366 register_command_handler(): registering 'ocd_mwh'... Debug: 192 4 command.c:366 register_command_handler(): registering 'ocd_mwb'... Debug: 193 4 command.c:366 register_command_handler(): registering 'ocd_bp'... Debug: 194 4 command.c:366 register_command_handler(): registering 'ocd_rbp'... Debug: 195 4 command.c:366 register_command_handler(): registering 'ocd_wp'... Debug: 196 4 command.c:366 register_command_handler(): registering 'ocd_rwp'... Debug: 197 4 command.c:366 register_command_handler(): registering 'ocd_load_image'... Debug: 198 4 command.c:366 register_command_handler(): registering 'ocd_dump_image'... Debug: 199 4 command.c:366 register_command_handler(): registering 'ocd_verify_image'... Debug: 200 4 command.c:366 register_command_handler(): registering 'ocd_test_image'... Debug: 201 4 command.c:366 register_command_handler(): registering 'ocd_reset_nag'... Debug: 202 4 command.c:366 register_command_handler(): registering 'ocd_ps'... Debug: 203 4 command.c:366 register_command_handler(): registering 'ocd_test_mem_access'... Debug: 204 610 libusb1_common.c:207 jtag_libusb_choose_endpoints(): usb ep in 85 Debug: 205 610 libusb1_common.c:207 jtag_libusb_choose_endpoints(): usb ep out 06 Debug: 206 610 libusb1_common.c:215 jtag_libusb_choose_endpoints(): Claiming interface 2 Info : 207 612 jlink.c:895 jlink_get_version_info(): J-Link OB-SAM3U128 V1 compiled Dec 11 2013 20:20:11 Info : 208 612 jlink.c:908 jlink_get_version_info(): J-Link caps 0xb97f5bbf Info : 209 612 jlink.c:926 jlink_get_version_info(): J-Link hw version 14010000 Info : 210 612 jlink.c:929 jlink_get_version_info(): J-Link hw type unknown 0xe Info : 211 612 jlink.c:945 jlink_get_version_info(): J-Link max mem block 24784 Info : 212 3681 jlink.c:788 jlink_config_dump(): J-Link configuration Info : 213 3681 jlink.c:747 jlink_config_usb_address_dump(): USB-Address: 0x0 Info : 214 3681 jlink.c:756 jlink_config_kickstart_dump(): Kickstart power on JTAG-pin 19: 0xffffffff Info : 215 3682 jlink.c:715 jlink_get_status(): Vref = 3.300 TCK = 0 TDI = 1 TDO = 1 TMS = 1 SRST = 1 TRST = 1 Info : 216 3682 jlink.c:532 jlink_init(): J-Link JTAG Interface ready Debug: 217 3682 jlink.c:670 jlink_reset(): trst: 0, srst: 0 Debug: 218 3686 log.c:422 keep_alive(): keep_alive() was not invoked in the 1000ms timelimit (3686). This may cause trouble with GDB connections. Debug: 220 3686 jlink.c:1558 jlink_swd_switch_seq(): JTAG-to-SWD Debug: 221 3686 jlink.c:1579 jlink_swd_run_queue(): Executing 0 queued transactions Debug: 222 3687 core.c:1614 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 223 3687 core.c:1617 adapter_khz_to_speed(): have interface set up Debug: 224 3687 core.c:1614 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 225 3687 core.c:1617 adapter_khz_to_speed(): have interface set up Info : 226 3687 core.c:1403 adapter_init(): clock speed 1000 kHz Debug: 227 3687 openocd.c:137 handle_init_command(): Debug Adapter init complete Debug: 228 3687 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport init Debug: 229 3687 command.c:145 script_debug(): command - ocd_transport ocd_transport init Debug: 231 3687 transport.c:240 handle_transport_init(): handle_transport_init Debug: 232 3687 jlink.c:1579 jlink_swd_run_queue(): Executing 2 queued transactions Error: 233 3688 jlink.c:1623 jlink_swd_run_queue(): SWD ack not OK: 7 JUNK Debug: 234 3688 command.c:628 run_command(): Command failed with error code 7 User : 235 3688 command.c:666 command_run_line(): in procedure 'init' in procedure 'ocd_bouncer' in procedure 'transport' Debug: 236 3688 command.c:628 run_command(): Command failed with error code -4 User : 237 3688 command.c:666 command_run_line(): in procedure 'init' jacob-2:bin jacobrosenthal$