# Pastebin 5WvaVJwM jacob:openocd jacobrosenthal$ /usr/local/Cellar/open-ocd/HEAD/bin/openocd -f interface/cmsis-dap.cfg -f target/nrf51.cfg -d3 Open On-Chip Debugger 0.9.0-dev-00156-gc0b8e60-dirty (2014-10-02-22:12) 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/cmsis-dap.cfg Debug: 21 2 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_interface cmsis-dap Debug: 22 2 command.c:145 script_debug(): command - interface ocd_interface cmsis-dap Debug: 24 2 command.c:366 register_command_handler(): registering 'ocd_cmsis-dap'... Debug: 25 2 command.c:366 register_command_handler(): registering 'ocd_cmsis_dap_vid_pid'... Info : 26 2 transport.c:118 allow_transports(): only one transport option; autoselect 'cmsis-dap' Debug: 27 2 adi_v5_cmsis_dap.c:229 cmsis_dap_select(): CMSIS-ADI: cmsis_dap_select Debug: 28 2 command.c:401 register_command(): command 'cmsis-dap' is already registered in '' context Debug: 29 2 command.c:366 register_command_handler(): registering 'ocd_cmsis-dap'... Debug: 30 2 configuration.c:84 find_file(): found /usr/local/Cellar/open-ocd/HEAD/share/openocd/scripts/target/nrf51.cfg Debug: 31 2 configuration.c:84 find_file(): found /usr/local/Cellar/open-ocd/HEAD/share/openocd/scripts/target/swj-dp.tcl Debug: 32 3 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport select Debug: 33 3 command.c:145 script_debug(): command - ocd_transport ocd_transport select Debug: 34 3 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport select Debug: 35 3 command.c:145 script_debug(): command - ocd_transport ocd_transport select Debug: 36 3 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport select Debug: 37 3 command.c:145 script_debug(): command - ocd_transport ocd_transport select Debug: 38 3 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport select Debug: 39 3 command.c:145 script_debug(): command - ocd_transport ocd_transport select Debug: 40 3 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport select Debug: 41 3 command.c:145 script_debug(): command - ocd_transport ocd_transport select Debug: 42 3 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_cmsis-dap newdap nrf51 cpu -expected-id 0x0bb11477 Debug: 43 3 command.c:145 script_debug(): command - ocd_cmsis-dap ocd_cmsis-dap newdap nrf51 cpu -expected-id 0x0bb11477 Debug: 44 3 tcl.c:554 jim_newtap_cmd(): Creating New Tap, Chip: nrf51, Tap: cpu, Dotted: nrf51.cpu, 2 params Debug: 45 3 core.c:1322 jtag_tap_init(): Created Tap: nrf51.cpu @ abs position 0, irlen 0, capture: 0x0 mask: 0x0 Debug: 46 3 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_target create nrf51.cpu cortex_m -chain-position nrf51.cpu Debug: 47 3 command.c:145 script_debug(): command - ocd_target ocd_target create nrf51.cpu cortex_m -chain-position nrf51.cpu Debug: 48 3 target.c:1726 target_free_all_working_areas_restore(): freeing all working areas Debug: 49 3 command.c:366 register_command_handler(): registering 'ocd_arm'... Debug: 50 3 command.c:366 register_command_handler(): registering 'ocd_arm'... Debug: 51 3 command.c:366 register_command_handler(): registering 'ocd_arm'... Debug: 52 3 command.c:366 register_command_handler(): registering 'ocd_arm'... Debug: 53 3 command.c:366 register_command_handler(): registering 'ocd_arm'... Debug: 54 3 command.c:366 register_command_handler(): registering 'ocd_arm'... Debug: 55 3 command.c:366 register_command_handler(): registering 'ocd_dap'... Debug: 56 3 command.c:366 register_command_handler(): registering 'ocd_dap'... Debug: 57 3 command.c:366 register_command_handler(): registering 'ocd_dap'... Debug: 58 3 command.c:366 register_command_handler(): registering 'ocd_dap'... Debug: 59 3 command.c:366 register_command_handler(): registering 'ocd_dap'... Debug: 60 3 command.c:366 register_command_handler(): registering 'ocd_dap'... Debug: 61 3 command.c:366 register_command_handler(): registering 'ocd_dap'... Debug: 62 3 command.c:366 register_command_handler(): registering 'ocd_cortex_m'... Debug: 63 3 command.c:366 register_command_handler(): registering 'ocd_cortex_m'... Debug: 64 3 command.c:366 register_command_handler(): registering 'ocd_cortex_m'... Debug: 65 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 66 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 67 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 68 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 69 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 70 3 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 71 4 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 72 4 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 73 4 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 74 4 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 75 4 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 76 4 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 77 4 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 78 4 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 79 4 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 80 4 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 81 4 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 82 4 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 83 4 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 84 4 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 85 4 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 86 4 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 87 4 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 88 4 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 89 4 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 90 4 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 91 4 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 92 4 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 93 4 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 94 4 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 95 4 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 96 4 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 97 4 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 98 4 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 99 4 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 100 4 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 101 4 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 102 4 command.c:366 register_command_handler(): registering 'ocd_nrf51.cpu'... Debug: 103 4 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: 104 4 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: 105 4 target.c:1726 target_free_all_working_areas_restore(): freeing all working areas Debug: 106 4 target.c:1726 target_free_all_working_areas_restore(): freeing all working areas Debug: 107 4 target.c:1726 target_free_all_working_areas_restore(): freeing all working areas Debug: 108 4 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport select Debug: 109 4 command.c:145 script_debug(): command - ocd_transport ocd_transport select Debug: 110 4 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_cortex_m reset_config sysresetreq Debug: 111 4 command.c:145 script_debug(): command - ocd_cortex_m ocd_cortex_m reset_config sysresetreq User : 113 4 command.c:546 command_print(): cortex_m reset_config sysresetreq Debug: 114 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: 115 4 command.c:145 script_debug(): command - ocd_flash ocd_flash bank nrf51.flash nrf51 0x00000000 0 1 1 nrf51.cpu Debug: 117 4 command.c:325 command_new(): BUG: command 'nrf51 mass_erase' does not have the '.usage' field filled out Debug: 118 4 command.c:366 register_command_handler(): registering 'ocd_nrf51'... Debug: 119 5 tcl.c:824 handle_flash_bank_command(): 'nrf51' driver usage field missing Debug: 120 5 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_flash bank nrf51.uicr nrf51 0x10001000 0 1 1 nrf51.cpu Debug: 121 5 command.c:145 script_debug(): command - ocd_flash ocd_flash bank nrf51.uicr nrf51 0x10001000 0 1 1 nrf51.cpu Debug: 123 5 command.c:401 register_command(): command 'nrf51' is already registered in '' context Debug: 124 5 command.c:401 register_command(): command 'mass_erase' is already registered in 'nrf51' context Debug: 125 5 tcl.c:824 handle_flash_bank_command(): 'nrf51' driver usage field missing Debug: 126 5 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_adapter_khz 1000 Debug: 127 5 command.c:145 script_debug(): command - adapter_khz ocd_adapter_khz 1000 Debug: 129 5 core.c:1647 jtag_config_khz(): handle jtag khz Debug: 130 5 core.c:1614 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 131 5 core.c:1614 adapter_khz_to_speed(): convert khz to interface specific speed value User : 132 5 command.c:546 command_print(): adapter speed: 1000 kHz Debug: 133 5 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_nrf51.cpu configure -event reset-end enable_all_ram Debug: 134 5 command.c:145 script_debug(): command - ocd_nrf51.cpu ocd_nrf51.cpu configure -event reset-end enable_all_ram Debug: 135 5 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_init Debug: 136 5 command.c:145 script_debug(): command - init ocd_init Debug: 138 5 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_target init Debug: 139 5 command.c:145 script_debug(): command - ocd_target ocd_target init Debug: 141 5 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_target names Debug: 142 5 command.c:145 script_debug(): command - ocd_target ocd_target names Debug: 143 5 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_nrf51.cpu cget -event gdb-flash-erase-start Debug: 144 5 command.c:145 script_debug(): command - ocd_nrf51.cpu ocd_nrf51.cpu cget -event gdb-flash-erase-start Debug: 145 5 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_nrf51.cpu configure -event gdb-flash-erase-start reset init Debug: 146 5 command.c:145 script_debug(): command - ocd_nrf51.cpu ocd_nrf51.cpu configure -event gdb-flash-erase-start reset init Debug: 147 5 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_nrf51.cpu cget -event gdb-flash-write-end Debug: 148 5 command.c:145 script_debug(): command - ocd_nrf51.cpu ocd_nrf51.cpu cget -event gdb-flash-write-end Debug: 149 5 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_nrf51.cpu configure -event gdb-flash-write-end reset halt Debug: 150 5 command.c:145 script_debug(): command - ocd_nrf51.cpu ocd_nrf51.cpu configure -event gdb-flash-write-end reset halt Debug: 151 5 target.c:1289 handle_target_init_command(): Initializing targets... Debug: 152 5 command.c:366 register_command_handler(): registering 'ocd_target_request'... Debug: 153 5 command.c:366 register_command_handler(): registering 'ocd_trace'... Debug: 154 5 command.c:366 register_command_handler(): registering 'ocd_trace'... Debug: 155 5 command.c:366 register_command_handler(): registering 'ocd_fast_load_image'... Debug: 156 5 command.c:366 register_command_handler(): registering 'ocd_fast_load'... Debug: 157 5 command.c:366 register_command_handler(): registering 'ocd_profile'... Debug: 158 5 command.c:366 register_command_handler(): registering 'ocd_virt2phys'... Debug: 159 5 command.c:366 register_command_handler(): registering 'ocd_reg'... Debug: 160 5 command.c:366 register_command_handler(): registering 'ocd_poll'... Debug: 161 5 command.c:366 register_command_handler(): registering 'ocd_wait_halt'... Debug: 162 5 command.c:366 register_command_handler(): registering 'ocd_halt'... Debug: 163 5 command.c:366 register_command_handler(): registering 'ocd_resume'... Debug: 164 5 command.c:366 register_command_handler(): registering 'ocd_reset'... Debug: 165 6 command.c:366 register_command_handler(): registering 'ocd_soft_reset_halt'... Debug: 166 6 command.c:366 register_command_handler(): registering 'ocd_step'... Debug: 167 6 command.c:366 register_command_handler(): registering 'ocd_mdw'... Debug: 168 6 command.c:366 register_command_handler(): registering 'ocd_mdh'... Debug: 169 6 command.c:366 register_command_handler(): registering 'ocd_mdb'... Debug: 170 6 command.c:366 register_command_handler(): registering 'ocd_mww'... Debug: 171 6 command.c:366 register_command_handler(): registering 'ocd_mwh'... Debug: 172 6 command.c:366 register_command_handler(): registering 'ocd_mwb'... Debug: 173 6 command.c:366 register_command_handler(): registering 'ocd_bp'... Debug: 174 6 command.c:366 register_command_handler(): registering 'ocd_rbp'... Debug: 175 6 command.c:366 register_command_handler(): registering 'ocd_wp'... Debug: 176 6 command.c:366 register_command_handler(): registering 'ocd_rwp'... Debug: 177 6 command.c:366 register_command_handler(): registering 'ocd_load_image'... Debug: 178 6 command.c:366 register_command_handler(): registering 'ocd_dump_image'... Debug: 179 6 command.c:366 register_command_handler(): registering 'ocd_verify_image'... Debug: 180 6 command.c:366 register_command_handler(): registering 'ocd_test_image'... Debug: 181 6 command.c:366 register_command_handler(): registering 'ocd_reset_nag'... Debug: 182 6 command.c:366 register_command_handler(): registering 'ocd_ps'... Debug: 183 6 command.c:366 register_command_handler(): registering 'ocd_test_mem_access'... Debug: 184 6 cmsis_dap_usb.c:733 cmsis_dap_swd_open(): CMSIS-DAP: cmsis_dap_swd_open Info : 185 24 cmsis_dap_usb.c:591 cmsis_dap_get_caps_info(): CMSIS-DAP: SWD Supported Info : 186 28 cmsis_dap_usb.c:758 cmsis_dap_swd_open(): CMSIS-DAP: Interface Initialised (SWD) Info : 187 32 cmsis_dap_usb.c:571 cmsis_dap_get_version_info(): CMSIS-DAP: FW Version = 1.0 Debug: 188 36 cmsis_dap_usb.c:820 cmsis_dap_init(): CMSIS-DAP: Packet Size = 64 Debug: 189 40 cmsis_dap_usb.c:831 cmsis_dap_init(): CMSIS-DAP: Packet Count = 4 Info : 190 44 cmsis_dap_usb.c:612 cmsis_dap_get_status(): SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1 Debug: 191 60 cmsis_dap_usb.c:622 cmsis_dap_reset_link(): CMSIS-DAP: cmsis_dap_reset_link Info : 192 60 cmsis_dap_usb.c:623 cmsis_dap_reset_link(): DAP_SWJ Sequence (reset: 50+ '1' followed by 0) Debug: 193 76 cmsis_dap_usb.c:679 cmsis_dap_reset_link(): DAP Read IDCODE Debug: 194 80 cmsis_dap_usb.c:693 cmsis_dap_reset_link(): Result 0x00 0x07 Debug: 195 80 cmsis_dap_usb.c:695 cmsis_dap_reset_link(): DAP Reset Target Debug: 196 84 cmsis_dap_usb.c:699 cmsis_dap_reset_link(): Result 0x00 0x00 Debug: 197 84 cmsis_dap_usb.c:701 cmsis_dap_reset_link(): DAP Write Abort Debug: 198 88 cmsis_dap_usb.c:710 cmsis_dap_reset_link(): Result 0x00 Debug: 199 88 command.c:628 run_command(): Command failed with error code -4 User : 200 88 command.c:666 command_run_line(): in procedure 'init' jacob:openocd jacobrosenthal$