On 13/03/15 12:49, Paul Fertser wrote:
Here's a log with 2596 applied with "reset init":
It looks fine, and if you didn't have reset init there, you'd be able
to call mdm mass_erase I think. If mdm check_security worked (and it
did, judging by the message), so should mdm mass_erase too.

and with "reset init" removed:
This run starts to differ even before the point "reset init" was
attempted in the previous log. I suspect different hardware
state. Please retry with reset init removed after power-cycling the
part (and probably the debug adapter).

I can see the different behaviour you're noting (first attempt correctly identifies secure device, second doesn't) so I removed the "reset init" and tested four times, each time ensuring the device and debug adapter had been powered down and that the device was running before attempting to connect. No luck. The four logs are attached (log1-4.txt).

I then decided to start again from scratch so connected a debug adapter with the MSD-DEBUG-FRDM-KL46Z48M_Pemicro_v114.SDA firmware to blank the IC. I thought I might as well check its SRST behaviour so captured the trace MSD-DEBUG_SRST_TRACE.jpg <https://www.dropbox.com/s/984pnf1em0qbyf0/MSD-DEBUG_SRST_TRACE.JPG?dl=0> attached. It's clear that the MSD starts communicating over SWD with the SRST line held low.

I cycled the power to the board and swapped back to the CMSIS-DAP firmware but could not connect with OOCD. The attached 'log_blank.txt' has the details. The SRST line is going low but SWD comms starts after SRST has started rising again. See BLANK_IC_NO_CONNECT.JPG <https://www.dropbox.com/s/laoa0jlmtd5uoiy/BLANK_IC_NO_CONNECT.JPG?dl=0> for the trace.

Thinking that the MSD-DEBUG might leave the device in different states, I reattached and captured a longer trace - MSD-DEBUG_LONG_TRACE.JPG <https://www.dropbox.com/s/1snza4i61015eq4/MSD-DEBUG_LONG_TRACE.JPG?dl=0>. The MSD adapter leaves the IC in a stop state. It's blank but not running.

Now reconnecting the CMSIS-DAP adapter /without cycling power to the board/ I can connect fine and programme. See BLANK_OK_CONNECT.JPG <https://www.dropbox.com/s/1snza4i61015eq4/MSD-DEBUG_LONG_TRACE.JPG?dl=0> for the trace. Note that the reset line starts high.

These four traces were all captured with a blank device. It looks to me as if it is necessary to connect to the device whilst SRST is asserted. I thought that I had the correct settings to acheive this: "reset_config srst_only srst_nogate connect_assert_srst" but for some reason it's not working.

Regards
Chris
Open On-Chip Debugger 0.9.0-dev-00349-gd4ca401 (2015-03-13-10:20)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.sourceforge.net/doc/doxygen/bugs.html
User : 13 3 command.c:546 command_print(): debug_level: 3
Debug: 14 3 options.c:98 add_default_dirs(): bindir=/usr/local/bin
Debug: 15 3 options.c:99 add_default_dirs(): pkgdatadir=/usr/local/share/openocd
Debug: 16 3 options.c:100 add_default_dirs(): run_prefix=
Debug: 17 3 configuration.c:44 add_script_search_dir(): adding 
/home/chris/.openocd
Debug: 18 3 configuration.c:44 add_script_search_dir(): adding 
/usr/local/share/openocd/site
Debug: 19 3 configuration.c:44 add_script_search_dir(): adding 
/usr/local/share/openocd/scripts
Debug: 20 3 configuration.c:84 find_file(): found openocd.cfg
Debug: 21 3 configuration.c:84 find_file(): found 
/usr/local/share/openocd/scripts/interface/cmsis-dap.cfg
Debug: 22 3 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_interface cmsis-dap
Debug: 23 3 command.c:145 script_debug(): command - interface ocd_interface 
cmsis-dap
Debug: 25 3 command.c:366 register_command_handler(): registering 
'ocd_cmsis-dap'...
Debug: 26 3 command.c:366 register_command_handler(): registering 
'ocd_cmsis_dap_vid_pid'...
Debug: 27 4 command.c:366 register_command_handler(): registering 
'ocd_cmsis_dap_serial'...
Info : 28 4 transport.c:118 allow_transports(): only one transport option; 
autoselect 'swd'
Debug: 29 4 command.c:325 command_new(): BUG: command 'swd' does not have the 
'.usage' field filled out
Debug: 30 4 command.c:366 register_command_handler(): registering 'ocd_swd'...
Debug: 31 4 command.c:366 register_command_handler(): registering 'ocd_swd'...
Debug: 32 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_reset_config srst_only
Debug: 33 4 command.c:145 script_debug(): command - reset_config 
ocd_reset_config srst_only
User : 35 4 command.c:546 command_print(): srst_only separate srst_gates_jtag 
srst_open_drain connect_deassert_srst
Debug: 36 4 configuration.c:84 find_file(): found 
/usr/local/share/openocd/scripts/target/kx.cfg
Debug: 37 4 configuration.c:84 find_file(): found 
/usr/local/share/openocd/scripts/target/swj-dp.tcl
Debug: 38 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport select
Debug: 39 4 command.c:145 script_debug(): command - ocd_transport ocd_transport 
select
Debug: 40 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport select
Debug: 41 4 command.c:145 script_debug(): command - ocd_transport ocd_transport 
select
Debug: 42 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport select
Debug: 43 4 command.c:145 script_debug(): command - ocd_transport ocd_transport 
select
Debug: 44 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport select
Debug: 45 4 command.c:145 script_debug(): command - ocd_transport ocd_transport 
select
Debug: 46 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport select
Debug: 47 4 command.c:145 script_debug(): command - ocd_transport ocd_transport 
select
Debug: 48 5 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_swd newdap MK10DN32VFM5 cpu -irlen 4 -ircapture 0x1 -irmask 0xf 
-expected-id 0x2ba01477
Debug: 49 5 command.c:145 script_debug(): command - ocd_swd ocd_swd newdap 
MK10DN32VFM5 cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x2ba01477
Debug: 50 5 tcl.c:554 jim_newtap_cmd(): Creating New Tap, Chip: MK10DN32VFM5, 
Tap: cpu, Dotted: MK10DN32VFM5.cpu, 8 params
Debug: 51 5 core.c:1302 jtag_tap_init(): Created Tap: MK10DN32VFM5.cpu @ abs 
position 0, irlen 0, capture: 0x0 mask: 0x0
Debug: 52 5 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_target create MK10DN32VFM5.cpu cortex_m -chain-position 
MK10DN32VFM5.cpu
Debug: 53 5 command.c:145 script_debug(): command - ocd_target ocd_target 
create MK10DN32VFM5.cpu cortex_m -chain-position MK10DN32VFM5.cpu
Debug: 54 5 target.c:1835 target_free_all_working_areas_restore(): freeing all 
working areas
Debug: 55 5 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 56 5 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 57 5 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 58 5 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 59 5 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 60 5 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 61 5 command.c:366 register_command_handler(): registering 'ocd_dap'...
Debug: 62 5 command.c:366 register_command_handler(): registering 'ocd_dap'...
Debug: 63 5 command.c:366 register_command_handler(): registering 'ocd_dap'...
Debug: 64 5 command.c:366 register_command_handler(): registering 'ocd_dap'...
Debug: 65 5 command.c:366 register_command_handler(): registering 'ocd_dap'...
Debug: 66 5 command.c:366 register_command_handler(): registering 'ocd_dap'...
Debug: 67 5 command.c:366 register_command_handler(): registering 'ocd_dap'...
Debug: 68 5 command.c:366 register_command_handler(): registering 
'ocd_cortex_m'...
Debug: 69 5 command.c:366 register_command_handler(): registering 
'ocd_cortex_m'...
Debug: 70 5 command.c:366 register_command_handler(): registering 
'ocd_cortex_m'...
Debug: 71 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 72 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 73 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 74 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 75 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 76 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 77 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 78 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 79 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 80 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 81 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 82 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 83 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 84 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 85 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 86 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 87 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 88 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 89 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 90 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 91 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 92 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 93 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 94 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 95 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 96 6 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 97 6 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 98 6 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 99 6 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 100 6 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 101 6 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 102 6 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 103 6 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 104 6 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 105 6 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 106 6 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 107 6 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 108 6 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 109 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_MK10DN32VFM5.cpu configure -event examine-end 
        kinetis mdm check_security

Debug: 110 6 command.c:145 script_debug(): command - ocd_MK10DN32VFM5.cpu 
ocd_MK10DN32VFM5.cpu configure -event examine-end 
        kinetis mdm check_security

Debug: 111 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_MK10DN32VFM5.cpu configure -work-area-phys 0x20000000 -work-area-size 
0x4000 -work-area-backup 0
Debug: 112 6 command.c:145 script_debug(): command - ocd_MK10DN32VFM5.cpu 
ocd_MK10DN32VFM5.cpu configure -work-area-phys 0x20000000 -work-area-size 
0x4000 -work-area-backup 0
Debug: 113 6 target.c:1835 target_free_all_working_areas_restore(): freeing all 
working areas
Debug: 114 6 target.c:1835 target_free_all_working_areas_restore(): freeing all 
working areas
Debug: 115 6 target.c:1835 target_free_all_working_areas_restore(): freeing all 
working areas
Debug: 116 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_flash bank MK10DN32VFM5.flash kinetis 0 0 0 0 MK10DN32VFM5.cpu
Debug: 117 6 command.c:145 script_debug(): command - ocd_flash ocd_flash bank 
MK10DN32VFM5.flash kinetis 0 0 0 0 MK10DN32VFM5.cpu
Debug: 119 6 command.c:366 register_command_handler(): registering 
'ocd_kinetis'...
Debug: 120 6 command.c:366 register_command_handler(): registering 
'ocd_kinetis'...
Debug: 121 6 command.c:366 register_command_handler(): registering 
'ocd_kinetis'...
Debug: 122 6 command.c:366 register_command_handler(): registering 
'ocd_kinetis'...
Info : 123 6 kinetis.c:491 kinetis_flash_bank_command(): add flash_bank kinetis 
MK10DN32VFM5.flash
Debug: 124 6 tcl.c:824 handle_flash_bank_command(): 'kinetis' driver usage 
field missing
Debug: 125 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_adapter_khz 1000
Debug: 126 6 command.c:145 script_debug(): command - adapter_khz 
ocd_adapter_khz 1000
Debug: 128 6 core.c:1629 jtag_config_khz(): handle jtag khz
Debug: 129 6 core.c:1596 adapter_khz_to_speed(): convert khz to interface 
specific speed value
Debug: 130 6 core.c:1596 adapter_khz_to_speed(): convert khz to interface 
specific speed value
User : 131 6 command.c:546 command_print(): adapter speed: 1000 kHz
Debug: 132 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_reset_config srst_nogate
Debug: 133 6 command.c:145 script_debug(): command - reset_config 
ocd_reset_config srst_nogate
User : 135 6 command.c:546 command_print(): srst_only separate srst_nogate 
srst_open_drain connect_deassert_srst
Debug: 136 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport select
Debug: 137 6 command.c:145 script_debug(): command - ocd_transport 
ocd_transport select
Debug: 138 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_cortex_m reset_config sysresetreq
Debug: 139 6 command.c:145 script_debug(): command - ocd_cortex_m ocd_cortex_m 
reset_config sysresetreq
User : 141 6 command.c:546 command_print(): cortex_m reset_config sysresetreq
Debug: 142 7 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_reset_config srst_only srst_nogate connect_assert_srst
Debug: 143 7 command.c:145 script_debug(): command - reset_config 
ocd_reset_config srst_only srst_nogate connect_assert_srst
User : 145 7 command.c:546 command_print(): srst_only separate srst_nogate 
srst_open_drain connect_assert_srst
Debug: 146 7 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_init
Debug: 147 7 command.c:145 script_debug(): command - init ocd_init
Debug: 149 7 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_target init
Debug: 150 7 command.c:145 script_debug(): command - ocd_target ocd_target init
Debug: 152 7 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_target names
Debug: 153 7 command.c:145 script_debug(): command - ocd_target ocd_target names
Debug: 154 7 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_MK10DN32VFM5.cpu cget -event gdb-flash-erase-start
Debug: 155 7 command.c:145 script_debug(): command - ocd_MK10DN32VFM5.cpu 
ocd_MK10DN32VFM5.cpu cget -event gdb-flash-erase-start
Debug: 156 7 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_MK10DN32VFM5.cpu configure -event gdb-flash-erase-start reset init
Debug: 157 7 command.c:145 script_debug(): command - ocd_MK10DN32VFM5.cpu 
ocd_MK10DN32VFM5.cpu configure -event gdb-flash-erase-start reset init
Debug: 158 7 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_MK10DN32VFM5.cpu cget -event gdb-flash-write-end
Debug: 159 7 command.c:145 script_debug(): command - ocd_MK10DN32VFM5.cpu 
ocd_MK10DN32VFM5.cpu cget -event gdb-flash-write-end
Debug: 160 7 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_MK10DN32VFM5.cpu configure -event gdb-flash-write-end reset halt
Debug: 161 7 command.c:145 script_debug(): command - ocd_MK10DN32VFM5.cpu 
ocd_MK10DN32VFM5.cpu configure -event gdb-flash-write-end reset halt
Debug: 162 7 target.c:1311 handle_target_init_command(): Initializing targets...
Debug: 163 7 command.c:366 register_command_handler(): registering 
'ocd_target_request'...
Debug: 164 7 command.c:366 register_command_handler(): registering 
'ocd_trace'...
Debug: 165 7 command.c:366 register_command_handler(): registering 
'ocd_trace'...
Debug: 166 7 command.c:366 register_command_handler(): registering 
'ocd_fast_load_image'...
Debug: 167 7 command.c:366 register_command_handler(): registering 
'ocd_fast_load'...
Debug: 168 7 command.c:366 register_command_handler(): registering 
'ocd_profile'...
Debug: 169 7 command.c:366 register_command_handler(): registering 
'ocd_virt2phys'...
Debug: 170 7 command.c:366 register_command_handler(): registering 'ocd_reg'...
Debug: 171 7 command.c:366 register_command_handler(): registering 'ocd_poll'...
Debug: 172 7 command.c:366 register_command_handler(): registering 
'ocd_wait_halt'...
Debug: 173 7 command.c:366 register_command_handler(): registering 'ocd_halt'...
Debug: 174 7 command.c:366 register_command_handler(): registering 
'ocd_resume'...
Debug: 175 7 command.c:366 register_command_handler(): registering 
'ocd_reset'...
Debug: 176 7 command.c:366 register_command_handler(): registering 
'ocd_soft_reset_halt'...
Debug: 177 7 command.c:366 register_command_handler(): registering 'ocd_step'...
Debug: 178 7 command.c:366 register_command_handler(): registering 'ocd_mdw'...
Debug: 179 7 command.c:366 register_command_handler(): registering 'ocd_mdh'...
Debug: 180 7 command.c:366 register_command_handler(): registering 'ocd_mdb'...
Debug: 181 7 command.c:366 register_command_handler(): registering 'ocd_mww'...
Debug: 182 7 command.c:366 register_command_handler(): registering 'ocd_mwh'...
Debug: 183 7 command.c:366 register_command_handler(): registering 'ocd_mwb'...
Debug: 184 7 command.c:366 register_command_handler(): registering 'ocd_bp'...
Debug: 185 8 command.c:366 register_command_handler(): registering 'ocd_rbp'...
Debug: 186 8 command.c:366 register_command_handler(): registering 'ocd_wp'...
Debug: 187 8 command.c:366 register_command_handler(): registering 'ocd_rwp'...
Debug: 188 8 command.c:366 register_command_handler(): registering 
'ocd_load_image'...
Debug: 189 8 command.c:366 register_command_handler(): registering 
'ocd_dump_image'...
Debug: 190 8 command.c:366 register_command_handler(): registering 
'ocd_verify_image'...
Debug: 191 8 command.c:366 register_command_handler(): registering 
'ocd_test_image'...
Debug: 192 8 command.c:366 register_command_handler(): registering 
'ocd_reset_nag'...
Debug: 193 8 command.c:366 register_command_handler(): registering 'ocd_ps'...
Debug: 194 8 command.c:366 register_command_handler(): registering 
'ocd_test_mem_access'...
Info : 195 11 cmsis_dap_usb.c:683 cmsis_dap_get_caps_info(): CMSIS-DAP: SWD  
Supported
Info : 196 12 cmsis_dap_usb.c:784 cmsis_dap_swd_open(): CMSIS-DAP: Interface 
Initialised (SWD)
Info : 197 13 cmsis_dap_usb.c:663 cmsis_dap_get_version_info(): CMSIS-DAP: FW 
Version = 1.0
Debug: 198 14 cmsis_dap_usb.c:856 cmsis_dap_init(): CMSIS-DAP: Packet Size = 64
Debug: 199 15 cmsis_dap_usb.c:867 cmsis_dap_init(): CMSIS-DAP: Packet Count = 32
Info : 200 16 cmsis_dap_usb.c:704 cmsis_dap_get_status(): SWCLK/TCK = 0 
SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : 201 21 cmsis_dap_usb.c:904 cmsis_dap_init(): Connecting under reset
Info : 202 22 cmsis_dap_usb.c:910 cmsis_dap_init(): CMSIS-DAP: Interface ready
Debug: 203 22 core.c:1596 adapter_khz_to_speed(): convert khz to interface 
specific speed value
Debug: 204 22 core.c:1599 adapter_khz_to_speed(): have interface set up
Debug: 205 23 core.c:1596 adapter_khz_to_speed(): convert khz to interface 
specific speed value
Debug: 206 23 core.c:1599 adapter_khz_to_speed(): have interface set up
Info : 207 23 core.c:1384 adapter_init(): clock speed 1000 kHz
Debug: 208 23 openocd.c:137 handle_init_command(): Debug Adapter init complete
Debug: 209 24 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport init
Debug: 210 24 command.c:145 script_debug(): command - ocd_transport 
ocd_transport init
Debug: 212 24 transport.c:240 handle_transport_init(): handle_transport_init
Debug: 213 24 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 214 26 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 queued 
transactions
Debug: 215 26 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 216 26 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 1e
Debug: 217 28 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
2ba01477
Info : 218 28 adi_v5_swd.c:125 swd_connect(): SWD IDCODE 0x2ba01477
Debug: 219 28 openocd.c:150 handle_init_command(): Examining targets...
Debug: 220 28 target.c:1463 target_call_event_callbacks(): target event 21 
(examine-start)
Debug: 221 28 arm_adi_v5.c:647 ahbap_debugport_init():  
Debug: 222 28 arm_adi_v5.c:688 ahbap_debugport_init(): DAP: wait CDBGPWRUPACK
Debug: 223 28 arm_adi_v5.h:391 dap_dp_poll_register(): DAP: poll 4, mask 
0x0820000000, value 0x20000000
Debug: 224 28 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 5 queued 
transactions
Debug: 225 28 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 4 0
Debug: 226 28 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 4 20
Debug: 227 28 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 4 0
Debug: 228 29 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 4 
50000000
Debug: 229 29 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 4 0
Debug: 230 30 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 40
Debug: 231 30 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 40
Debug: 232 30 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
f0000040
Debug: 233 30 arm_adi_v5.c:695 ahbap_debugport_init(): DAP: wait CSYSPWRUPACK
Debug: 234 30 arm_adi_v5.h:391 dap_dp_poll_register(): DAP: poll 4, mask 
0x0880000000, value 0x80000000
Debug: 235 30 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 1 queued 
transactions
Debug: 236 30 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 4 0
Debug: 237 32 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
f0000040
Debug: 238 32 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 11 
queued transactions
Debug: 239 32 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 4 0
Debug: 240 32 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 4 
50000001
Debug: 241 32 cmsis_dap_usb.c:562 cmsis_dap_swd_run_queue(): refusing to enable 
sticky overrun detection
Debug: 242 32 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 4 0
Debug: 243 32 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 8 0
Debug: 244 32 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write reg 0 
a2000020
Debug: 245 32 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write reg 4 0
Debug: 246 32 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP read reg 0 0
Debug: 247 32 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg c 0
Debug: 248 32 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 8 f0
Debug: 249 32 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP read reg 4 0
Debug: 250 32 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg c 0
Debug: 251 34 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
f0000040
Debug: 252 34 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
f0000040
Debug: 253 34 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
23000020
Debug: 254 34 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
23000020
Debug: 255 34 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 0
Debug: 256 34 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 0
Debug: 257 34 arm_adi_v5.c:744 ahbap_debugport_init(): MEM_AP Packed Transfers: 
enabled
Debug: 258 34 arm_adi_v5.c:755 ahbap_debugport_init(): MEM_AP CFG: large data 
0, long address 0, big-endian 0
Debug: 259 34 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 5 queued 
transactions
Debug: 260 34 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 8 0
Debug: 261 34 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write reg 4 
e000ed00
Debug: 262 34 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write reg 0 
a2000022
Debug: 263 34 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP read reg c 0
Debug: 264 34 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg c 0
Debug: 265 36 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 4 
FAULT
Debug: 266 37 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 267 39 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 queued 
transactions
Debug: 268 39 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 269 39 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 1e
Debug: 270 41 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
2ba01477
Info : 271 41 adi_v5_swd.c:125 swd_connect(): SWD IDCODE 0x2ba01477
Debug: 272 41 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 queued 
transactions
Debug: 273 41 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP read reg 4 0
Debug: 274 41 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg c 0
Debug: 275 43 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
e000ed00
Debug: 276 43 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
e000ed00
Error: 277 43 arm_adi_v5.c:512 mem_ap_read(): Failed to read memory at 
0xe000ed00
Debug: 278 43 target.c:2181 target_read_u32(): address: 0xe000ed00 failed
Debug: 279 43 openocd.c:152 handle_init_command(): target examination failed
Debug: 280 43 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_flash init
Debug: 281 43 command.c:145 script_debug(): command - ocd_flash ocd_flash init
Debug: 282 44 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 5 queued 
transactions
Debug: 283 44 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write reg 0 
a2000002
Debug: 284 44 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write reg 4 
e000edf0
Debug: 285 44 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 8 10
Debug: 286 44 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP read reg 0 0
Debug: 287 44 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg c 0
Debug: 288 45 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 4 
FAULT
User : 289 45 target.c:2525 handle_target(): Polling target MK10DN32VFM5.cpu 
failed, GDB will be halted. Polling again in 100ms
Debug: 290 45 target.c:1463 target_call_event_callbacks(): target event 0 
(gdb-halt)
Debug: 292 45 tcl.c:890 handle_flash_init_command(): Initializing flash 
devices...
Debug: 293 45 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 294 45 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 295 45 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 296 46 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 297 46 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 298 46 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 299 46 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 300 46 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 301 46 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 302 46 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 303 46 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 304 46 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 305 46 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_mflash init
Debug: 306 46 command.c:145 script_debug(): command - ocd_mflash ocd_mflash init
Debug: 308 46 mflash.c:1379 handle_mflash_init_command(): Initializing mflash 
devices...
Debug: 309 46 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_nand init
Debug: 310 46 command.c:145 script_debug(): command - ocd_nand ocd_nand init
Debug: 311 47 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 312 49 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 queued 
transactions
Debug: 313 49 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 314 49 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 1e
Debug: 315 51 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
2ba01477
Info : 316 51 adi_v5_swd.c:125 swd_connect(): SWD IDCODE 0x2ba01477
Debug: 317 51 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 queued 
transactions
Debug: 318 51 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP read reg 0 0
Debug: 319 51 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg c 0
Debug: 320 53 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 1 
FAULT
User : 321 53 target.c:2525 handle_target(): Polling target MK10DN32VFM5.cpu 
failed, GDB will be halted. Polling again in 300ms
Debug: 322 53 target.c:1463 target_call_event_callbacks(): target event 0 
(gdb-halt)
Debug: 324 53 tcl.c:497 handle_nand_init_command(): Initializing NAND devices...
Debug: 325 53 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_pld init
Debug: 326 54 command.c:145 script_debug(): command - ocd_pld ocd_pld init
Debug: 328 54 pld.c:207 handle_pld_init_command(): Initializing PLDs...
Debug: 329 54 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_init
Debug: 330 54 command.c:145 script_debug(): command - init ocd_init
Debug: 332 255 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 333 257 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 
queued transactions
Debug: 334 257 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 335 257 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 1e
Debug: 336 259 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
2ba01477
Info : 337 259 adi_v5_swd.c:125 swd_connect(): SWD IDCODE 0x2ba01477
Debug: 338 259 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 
queued transactions
Debug: 339 259 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP read reg 0 0
Debug: 340 259 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg c 0
Debug: 341 261 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 1 
FAULT
User : 342 261 target.c:2525 handle_target(): Polling target MK10DN32VFM5.cpu 
failed, GDB will be halted. Polling again in 700ms
Debug: 343 261 target.c:1463 target_call_event_callbacks(): target event 0 
(gdb-halt)
Debug: 344 1063 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 345 1065 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 
queued transactions
Debug: 346 1065 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 347 1065 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 1e
Debug: 348 1067 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 
0 JUNK
User : 349 1067 target.c:2525 handle_target(): Polling target MK10DN32VFM5.cpu 
failed, GDB will be halted. Polling again in 1500ms
Debug: 350 1067 target.c:1463 target_call_event_callbacks(): target event 0 
(gdb-halt)
Debug: 351 2671 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 352 2673 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 
queued transactions
Debug: 353 2673 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 354 2673 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 1e
Debug: 355 2675 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 
0 JUNK
User : 356 2675 target.c:2525 handle_target(): Polling target MK10DN32VFM5.cpu 
failed, GDB will be halted. Polling again in 3100ms
Debug: 357 2675 target.c:1463 target_call_event_callbacks(): target event 0 
(gdb-halt)
Info : 358 3933 server.c:90 add_connection(): accepting 'telnet' connection on 
tcp/4444
Debug: 359 5937 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 360 5939 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 
queued transactions
Debug: 361 5939 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 362 5939 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 1e
Debug: 363 5941 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 
0 JUNK
User : 364 5941 target.c:2525 handle_target(): Polling target MK10DN32VFM5.cpu 
failed, GDB will be halted. Polling again in 6300ms
Debug: 365 5941 target.c:1463 target_call_event_callbacks(): target event 0 
(gdb-halt)
Debug: 366 13679 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 367 13681 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 
queued transactions
Debug: 368 13681 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 369 13681 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 
1e
Debug: 370 13683 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 
0 JUNK
User : 371 13683 target.c:2525 handle_target(): Polling target MK10DN32VFM5.cpu 
failed, GDB will be halted. Polling again in 6300ms
Debug: 372 13683 target.c:1463 target_call_event_callbacks(): target event 0 
(gdb-halt)
Debug: 373 14798 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_kinetis mdm mass_erase
Debug: 374 14798 command.c:145 script_debug(): command - ocd_kinetis 
ocd_kinetis mdm mass_erase
Debug: 376 14799 core.c:644 swd_add_reset(): SRST line asserted
Debug: 377 14799 kinetis.c:235 kinetis_mdm_write_register(): MDM_REG[0x04] <- 
00000008
Debug: 378 14800 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 379 14802 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 
queued transactions
Debug: 380 14802 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 381 14802 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 
1e
Debug: 382 14804 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
2ba01477
Info : 383 14804 adi_v5_swd.c:125 swd_connect(): SWD IDCODE 0x2ba01477
Debug: 384 14804 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 
queued transactions
Debug: 385 14804 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 8 
1000000
Debug: 386 14804 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write reg 4 8
Debug: 387 14806 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 
2 FAULT
Debug: 388 14806 kinetis.c:245 kinetis_mdm_write_register(): MDM: dap_run failed
Debug: 389 14806 command.c:628 run_command(): Command failed with error code -4
User : 390 14807 command.c:666 command_run_line(): in procedure 'kinetis'
Debug: 391 17718 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_shutdown
Debug: 392 17718 command.c:145 script_debug(): command - shutdown ocd_shutdown
User : 394 17718 server.c:607 handle_shutdown_command(): shutdown command 
invoked
Info : 395 17718 server.c:483 server_loop(): dropped 'telnet' connection
Open On-Chip Debugger 0.9.0-dev-00349-gd4ca401 (2015-03-13-10:20)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.sourceforge.net/doc/doxygen/bugs.html
User : 13 3 command.c:546 command_print(): debug_level: 3
Debug: 14 3 options.c:98 add_default_dirs(): bindir=/usr/local/bin
Debug: 15 3 options.c:99 add_default_dirs(): pkgdatadir=/usr/local/share/openocd
Debug: 16 3 options.c:100 add_default_dirs(): run_prefix=
Debug: 17 3 configuration.c:44 add_script_search_dir(): adding 
/home/chris/.openocd
Debug: 18 3 configuration.c:44 add_script_search_dir(): adding 
/usr/local/share/openocd/site
Debug: 19 3 configuration.c:44 add_script_search_dir(): adding 
/usr/local/share/openocd/scripts
Debug: 20 3 configuration.c:84 find_file(): found openocd.cfg
Debug: 21 3 configuration.c:84 find_file(): found 
/usr/local/share/openocd/scripts/interface/cmsis-dap.cfg
Debug: 22 3 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_interface cmsis-dap
Debug: 23 3 command.c:145 script_debug(): command - interface ocd_interface 
cmsis-dap
Debug: 25 3 command.c:366 register_command_handler(): registering 
'ocd_cmsis-dap'...
Debug: 26 3 command.c:366 register_command_handler(): registering 
'ocd_cmsis_dap_vid_pid'...
Debug: 27 3 command.c:366 register_command_handler(): registering 
'ocd_cmsis_dap_serial'...
Info : 28 3 transport.c:118 allow_transports(): only one transport option; 
autoselect 'swd'
Debug: 29 3 command.c:325 command_new(): BUG: command 'swd' does not have the 
'.usage' field filled out
Debug: 30 3 command.c:366 register_command_handler(): registering 'ocd_swd'...
Debug: 31 3 command.c:366 register_command_handler(): registering 'ocd_swd'...
Debug: 32 3 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_reset_config srst_only
Debug: 33 3 command.c:145 script_debug(): command - reset_config 
ocd_reset_config srst_only
User : 35 3 command.c:546 command_print(): srst_only separate srst_gates_jtag 
srst_open_drain connect_deassert_srst
Debug: 36 3 configuration.c:84 find_file(): found 
/usr/local/share/openocd/scripts/target/kx.cfg
Debug: 37 3 configuration.c:84 find_file(): found 
/usr/local/share/openocd/scripts/target/swj-dp.tcl
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 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport select
Debug: 41 4 command.c:145 script_debug(): command - ocd_transport ocd_transport 
select
Debug: 42 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport select
Debug: 43 4 command.c:145 script_debug(): command - ocd_transport ocd_transport 
select
Debug: 44 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport select
Debug: 45 4 command.c:145 script_debug(): command - ocd_transport ocd_transport 
select
Debug: 46 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport select
Debug: 47 4 command.c:145 script_debug(): command - ocd_transport ocd_transport 
select
Debug: 48 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_swd newdap MK10DN32VFM5 cpu -irlen 4 -ircapture 0x1 -irmask 0xf 
-expected-id 0x2ba01477
Debug: 49 4 command.c:145 script_debug(): command - ocd_swd ocd_swd newdap 
MK10DN32VFM5 cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x2ba01477
Debug: 50 4 tcl.c:554 jim_newtap_cmd(): Creating New Tap, Chip: MK10DN32VFM5, 
Tap: cpu, Dotted: MK10DN32VFM5.cpu, 8 params
Debug: 51 4 core.c:1302 jtag_tap_init(): Created Tap: MK10DN32VFM5.cpu @ abs 
position 0, irlen 0, capture: 0x0 mask: 0x0
Debug: 52 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_target create MK10DN32VFM5.cpu cortex_m -chain-position 
MK10DN32VFM5.cpu
Debug: 53 4 command.c:145 script_debug(): command - ocd_target ocd_target 
create MK10DN32VFM5.cpu cortex_m -chain-position MK10DN32VFM5.cpu
Debug: 54 4 target.c:1835 target_free_all_working_areas_restore(): freeing all 
working areas
Debug: 55 4 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 56 4 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 57 4 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 58 4 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 59 4 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 60 4 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 61 4 command.c:366 register_command_handler(): registering 'ocd_dap'...
Debug: 62 4 command.c:366 register_command_handler(): registering 'ocd_dap'...
Debug: 63 4 command.c:366 register_command_handler(): registering 'ocd_dap'...
Debug: 64 4 command.c:366 register_command_handler(): registering 'ocd_dap'...
Debug: 65 4 command.c:366 register_command_handler(): registering 'ocd_dap'...
Debug: 66 4 command.c:366 register_command_handler(): registering 'ocd_dap'...
Debug: 67 4 command.c:366 register_command_handler(): registering 'ocd_dap'...
Debug: 68 4 command.c:366 register_command_handler(): registering 
'ocd_cortex_m'...
Debug: 69 4 command.c:366 register_command_handler(): registering 
'ocd_cortex_m'...
Debug: 70 4 command.c:366 register_command_handler(): registering 
'ocd_cortex_m'...
Debug: 71 4 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 72 4 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 73 4 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 74 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 75 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 76 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 77 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 78 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 79 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 80 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 81 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 82 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 83 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 84 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 85 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 86 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 87 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 88 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 89 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 90 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 91 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 92 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 93 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 94 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 95 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 96 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 97 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 98 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 99 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 100 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 101 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 102 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 103 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 104 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 105 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 106 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 107 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 108 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 109 5 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_MK10DN32VFM5.cpu configure -event examine-end 
        kinetis mdm check_security

Debug: 110 5 command.c:145 script_debug(): command - ocd_MK10DN32VFM5.cpu 
ocd_MK10DN32VFM5.cpu configure -event examine-end 
        kinetis mdm check_security

Debug: 111 5 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_MK10DN32VFM5.cpu configure -work-area-phys 0x20000000 -work-area-size 
0x4000 -work-area-backup 0
Debug: 112 5 command.c:145 script_debug(): command - ocd_MK10DN32VFM5.cpu 
ocd_MK10DN32VFM5.cpu configure -work-area-phys 0x20000000 -work-area-size 
0x4000 -work-area-backup 0
Debug: 113 5 target.c:1835 target_free_all_working_areas_restore(): freeing all 
working areas
Debug: 114 5 target.c:1835 target_free_all_working_areas_restore(): freeing all 
working areas
Debug: 115 5 target.c:1835 target_free_all_working_areas_restore(): freeing all 
working areas
Debug: 116 5 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_flash bank MK10DN32VFM5.flash kinetis 0 0 0 0 MK10DN32VFM5.cpu
Debug: 117 5 command.c:145 script_debug(): command - ocd_flash ocd_flash bank 
MK10DN32VFM5.flash kinetis 0 0 0 0 MK10DN32VFM5.cpu
Debug: 119 5 command.c:366 register_command_handler(): registering 
'ocd_kinetis'...
Debug: 120 5 command.c:366 register_command_handler(): registering 
'ocd_kinetis'...
Debug: 121 5 command.c:366 register_command_handler(): registering 
'ocd_kinetis'...
Debug: 122 5 command.c:366 register_command_handler(): registering 
'ocd_kinetis'...
Info : 123 6 kinetis.c:491 kinetis_flash_bank_command(): add flash_bank kinetis 
MK10DN32VFM5.flash
Debug: 124 6 tcl.c:824 handle_flash_bank_command(): 'kinetis' driver usage 
field missing
Debug: 125 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_adapter_khz 1000
Debug: 126 6 command.c:145 script_debug(): command - adapter_khz 
ocd_adapter_khz 1000
Debug: 128 6 core.c:1629 jtag_config_khz(): handle jtag khz
Debug: 129 6 core.c:1596 adapter_khz_to_speed(): convert khz to interface 
specific speed value
Debug: 130 6 core.c:1596 adapter_khz_to_speed(): convert khz to interface 
specific speed value
User : 131 6 command.c:546 command_print(): adapter speed: 1000 kHz
Debug: 132 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_reset_config srst_nogate
Debug: 133 6 command.c:145 script_debug(): command - reset_config 
ocd_reset_config srst_nogate
User : 135 6 command.c:546 command_print(): srst_only separate srst_nogate 
srst_open_drain connect_deassert_srst
Debug: 136 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport select
Debug: 137 6 command.c:145 script_debug(): command - ocd_transport 
ocd_transport select
Debug: 138 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_cortex_m reset_config sysresetreq
Debug: 139 6 command.c:145 script_debug(): command - ocd_cortex_m ocd_cortex_m 
reset_config sysresetreq
User : 141 6 command.c:546 command_print(): cortex_m reset_config sysresetreq
Debug: 142 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_reset_config srst_only srst_nogate connect_assert_srst
Debug: 143 6 command.c:145 script_debug(): command - reset_config 
ocd_reset_config srst_only srst_nogate connect_assert_srst
User : 145 6 command.c:546 command_print(): srst_only separate srst_nogate 
srst_open_drain connect_assert_srst
Debug: 146 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_init
Debug: 147 6 command.c:145 script_debug(): command - init ocd_init
Debug: 149 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_target init
Debug: 150 6 command.c:145 script_debug(): command - ocd_target ocd_target init
Debug: 152 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_target names
Debug: 153 6 command.c:145 script_debug(): command - ocd_target ocd_target names
Debug: 154 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_MK10DN32VFM5.cpu cget -event gdb-flash-erase-start
Debug: 155 6 command.c:145 script_debug(): command - ocd_MK10DN32VFM5.cpu 
ocd_MK10DN32VFM5.cpu cget -event gdb-flash-erase-start
Debug: 156 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_MK10DN32VFM5.cpu configure -event gdb-flash-erase-start reset init
Debug: 157 6 command.c:145 script_debug(): command - ocd_MK10DN32VFM5.cpu 
ocd_MK10DN32VFM5.cpu configure -event gdb-flash-erase-start reset init
Debug: 158 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_MK10DN32VFM5.cpu cget -event gdb-flash-write-end
Debug: 159 6 command.c:145 script_debug(): command - ocd_MK10DN32VFM5.cpu 
ocd_MK10DN32VFM5.cpu cget -event gdb-flash-write-end
Debug: 160 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_MK10DN32VFM5.cpu configure -event gdb-flash-write-end reset halt
Debug: 161 6 command.c:145 script_debug(): command - ocd_MK10DN32VFM5.cpu 
ocd_MK10DN32VFM5.cpu configure -event gdb-flash-write-end reset halt
Debug: 162 6 target.c:1311 handle_target_init_command(): Initializing targets...
Debug: 163 6 command.c:366 register_command_handler(): registering 
'ocd_target_request'...
Debug: 164 7 command.c:366 register_command_handler(): registering 
'ocd_trace'...
Debug: 165 7 command.c:366 register_command_handler(): registering 
'ocd_trace'...
Debug: 166 7 command.c:366 register_command_handler(): registering 
'ocd_fast_load_image'...
Debug: 167 7 command.c:366 register_command_handler(): registering 
'ocd_fast_load'...
Debug: 168 7 command.c:366 register_command_handler(): registering 
'ocd_profile'...
Debug: 169 7 command.c:366 register_command_handler(): registering 
'ocd_virt2phys'...
Debug: 170 7 command.c:366 register_command_handler(): registering 'ocd_reg'...
Debug: 171 7 command.c:366 register_command_handler(): registering 'ocd_poll'...
Debug: 172 7 command.c:366 register_command_handler(): registering 
'ocd_wait_halt'...
Debug: 173 7 command.c:366 register_command_handler(): registering 'ocd_halt'...
Debug: 174 7 command.c:366 register_command_handler(): registering 
'ocd_resume'...
Debug: 175 7 command.c:366 register_command_handler(): registering 
'ocd_reset'...
Debug: 176 7 command.c:366 register_command_handler(): registering 
'ocd_soft_reset_halt'...
Debug: 177 7 command.c:366 register_command_handler(): registering 'ocd_step'...
Debug: 178 7 command.c:366 register_command_handler(): registering 'ocd_mdw'...
Debug: 179 7 command.c:366 register_command_handler(): registering 'ocd_mdh'...
Debug: 180 7 command.c:366 register_command_handler(): registering 'ocd_mdb'...
Debug: 181 7 command.c:366 register_command_handler(): registering 'ocd_mww'...
Debug: 182 7 command.c:366 register_command_handler(): registering 'ocd_mwh'...
Debug: 183 7 command.c:366 register_command_handler(): registering 'ocd_mwb'...
Debug: 184 7 command.c:366 register_command_handler(): registering 'ocd_bp'...
Debug: 185 7 command.c:366 register_command_handler(): registering 'ocd_rbp'...
Debug: 186 7 command.c:366 register_command_handler(): registering 'ocd_wp'...
Debug: 187 7 command.c:366 register_command_handler(): registering 'ocd_rwp'...
Debug: 188 7 command.c:366 register_command_handler(): registering 
'ocd_load_image'...
Debug: 189 7 command.c:366 register_command_handler(): registering 
'ocd_dump_image'...
Debug: 190 7 command.c:366 register_command_handler(): registering 
'ocd_verify_image'...
Debug: 191 7 command.c:366 register_command_handler(): registering 
'ocd_test_image'...
Debug: 192 7 command.c:366 register_command_handler(): registering 
'ocd_reset_nag'...
Debug: 193 7 command.c:366 register_command_handler(): registering 'ocd_ps'...
Debug: 194 7 command.c:366 register_command_handler(): registering 
'ocd_test_mem_access'...
Info : 195 11 cmsis_dap_usb.c:683 cmsis_dap_get_caps_info(): CMSIS-DAP: SWD  
Supported
Info : 196 12 cmsis_dap_usb.c:784 cmsis_dap_swd_open(): CMSIS-DAP: Interface 
Initialised (SWD)
Info : 197 13 cmsis_dap_usb.c:663 cmsis_dap_get_version_info(): CMSIS-DAP: FW 
Version = 1.0
Debug: 198 14 cmsis_dap_usb.c:856 cmsis_dap_init(): CMSIS-DAP: Packet Size = 64
Debug: 199 15 cmsis_dap_usb.c:867 cmsis_dap_init(): CMSIS-DAP: Packet Count = 32
Info : 200 16 cmsis_dap_usb.c:704 cmsis_dap_get_status(): SWCLK/TCK = 0 
SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : 201 21 cmsis_dap_usb.c:904 cmsis_dap_init(): Connecting under reset
Info : 202 22 cmsis_dap_usb.c:910 cmsis_dap_init(): CMSIS-DAP: Interface ready
Debug: 203 22 core.c:1596 adapter_khz_to_speed(): convert khz to interface 
specific speed value
Debug: 204 22 core.c:1599 adapter_khz_to_speed(): have interface set up
Debug: 205 23 core.c:1596 adapter_khz_to_speed(): convert khz to interface 
specific speed value
Debug: 206 23 core.c:1599 adapter_khz_to_speed(): have interface set up
Info : 207 23 core.c:1384 adapter_init(): clock speed 1000 kHz
Debug: 208 23 openocd.c:137 handle_init_command(): Debug Adapter init complete
Debug: 209 23 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport init
Debug: 210 23 command.c:145 script_debug(): command - ocd_transport 
ocd_transport init
Debug: 212 23 transport.c:240 handle_transport_init(): handle_transport_init
Debug: 213 24 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 214 26 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 queued 
transactions
Debug: 215 26 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 216 26 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 1e
Debug: 217 28 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
2ba01477
Info : 218 28 adi_v5_swd.c:125 swd_connect(): SWD IDCODE 0x2ba01477
Debug: 219 28 openocd.c:150 handle_init_command(): Examining targets...
Debug: 220 28 target.c:1463 target_call_event_callbacks(): target event 21 
(examine-start)
Debug: 221 28 arm_adi_v5.c:647 ahbap_debugport_init():  
Debug: 222 28 arm_adi_v5.c:688 ahbap_debugport_init(): DAP: wait CDBGPWRUPACK
Debug: 223 28 arm_adi_v5.h:391 dap_dp_poll_register(): DAP: poll 4, mask 
0x0820000000, value 0x20000000
Debug: 224 28 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 5 queued 
transactions
Debug: 225 28 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 4 0
Debug: 226 28 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 4 20
Debug: 227 28 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 4 0
Debug: 228 28 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 4 
50000000
Debug: 229 28 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 4 0
Debug: 230 30 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 40
Debug: 231 30 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 40
Debug: 232 30 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
f0000040
Debug: 233 30 arm_adi_v5.c:695 ahbap_debugport_init(): DAP: wait CSYSPWRUPACK
Debug: 234 30 arm_adi_v5.h:391 dap_dp_poll_register(): DAP: poll 4, mask 
0x0880000000, value 0x80000000
Debug: 235 30 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 1 queued 
transactions
Debug: 236 30 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 4 0
Debug: 237 32 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
f0000040
Debug: 238 32 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 11 
queued transactions
Debug: 239 32 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 4 0
Debug: 240 32 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 4 
50000001
Debug: 241 32 cmsis_dap_usb.c:562 cmsis_dap_swd_run_queue(): refusing to enable 
sticky overrun detection
Debug: 242 32 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 4 0
Debug: 243 32 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 8 0
Debug: 244 32 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write reg 0 
a2000020
Debug: 245 32 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write reg 4 0
Debug: 246 32 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP read reg 0 0
Debug: 247 32 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg c 0
Debug: 248 32 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 8 f0
Debug: 249 32 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP read reg 4 0
Debug: 250 32 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg c 0
Debug: 251 34 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
f0000040
Debug: 252 34 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
f0000040
Debug: 253 34 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
23000020
Debug: 254 34 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
23000020
Debug: 255 34 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 0
Debug: 256 34 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 0
Debug: 257 34 arm_adi_v5.c:744 ahbap_debugport_init(): MEM_AP Packed Transfers: 
enabled
Debug: 258 34 arm_adi_v5.c:755 ahbap_debugport_init(): MEM_AP CFG: large data 
0, long address 0, big-endian 0
Debug: 259 34 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 5 queued 
transactions
Debug: 260 34 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 8 0
Debug: 261 34 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write reg 4 
e000ed00
Debug: 262 34 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write reg 0 
a2000022
Debug: 263 34 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP read reg c 0
Debug: 264 34 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg c 0
Debug: 265 36 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 4 
FAULT
Debug: 266 37 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 267 39 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 queued 
transactions
Debug: 268 39 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 269 39 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 1e
Debug: 270 41 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
2ba01477
Info : 271 41 adi_v5_swd.c:125 swd_connect(): SWD IDCODE 0x2ba01477
Debug: 272 41 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 queued 
transactions
Debug: 273 41 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP read reg 4 0
Debug: 274 41 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg c 0
Debug: 275 43 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
e000ed00
Debug: 276 43 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
e000ed00
Error: 277 43 arm_adi_v5.c:512 mem_ap_read(): Failed to read memory at 
0xe000ed00
Debug: 278 43 target.c:2181 target_read_u32(): address: 0xe000ed00 failed
Debug: 279 43 openocd.c:152 handle_init_command(): target examination failed
Debug: 280 43 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_flash init
Debug: 281 43 command.c:145 script_debug(): command - ocd_flash ocd_flash init
Debug: 282 43 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 5 queued 
transactions
Debug: 283 43 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write reg 0 
a2000002
Debug: 284 43 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write reg 4 
e000edf0
Debug: 285 43 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 8 10
Debug: 286 43 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP read reg 0 0
Debug: 287 43 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg c 0
Debug: 288 45 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 4 
FAULT
User : 289 45 target.c:2525 handle_target(): Polling target MK10DN32VFM5.cpu 
failed, GDB will be halted. Polling again in 100ms
Debug: 290 45 target.c:1463 target_call_event_callbacks(): target event 0 
(gdb-halt)
Debug: 292 45 tcl.c:890 handle_flash_init_command(): Initializing flash 
devices...
Debug: 293 45 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 294 45 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 295 45 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 296 45 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 297 45 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 298 45 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 299 45 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 300 45 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 301 45 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 302 45 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 303 45 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 304 45 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 305 45 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_mflash init
Debug: 306 45 command.c:145 script_debug(): command - ocd_mflash ocd_mflash init
Debug: 308 45 mflash.c:1379 handle_mflash_init_command(): Initializing mflash 
devices...
Debug: 309 45 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_nand init
Debug: 310 45 command.c:145 script_debug(): command - ocd_nand ocd_nand init
Debug: 311 47 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 312 49 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 queued 
transactions
Debug: 313 49 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 314 49 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 1e
Debug: 315 51 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
2ba01477
Info : 316 51 adi_v5_swd.c:125 swd_connect(): SWD IDCODE 0x2ba01477
Debug: 317 51 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 queued 
transactions
Debug: 318 51 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP read reg 0 0
Debug: 319 51 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg c 0
Debug: 320 53 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 1 
FAULT
User : 321 53 target.c:2525 handle_target(): Polling target MK10DN32VFM5.cpu 
failed, GDB will be halted. Polling again in 300ms
Debug: 322 53 target.c:1463 target_call_event_callbacks(): target event 0 
(gdb-halt)
Debug: 324 53 tcl.c:497 handle_nand_init_command(): Initializing NAND devices...
Debug: 325 53 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_pld init
Debug: 326 53 command.c:145 script_debug(): command - ocd_pld ocd_pld init
Debug: 328 53 pld.c:207 handle_pld_init_command(): Initializing PLDs...
Debug: 329 53 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_init
Debug: 330 53 command.c:145 script_debug(): command - init ocd_init
Debug: 332 255 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 333 257 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 
queued transactions
Debug: 334 257 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 335 257 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 1e
Debug: 336 259 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
2ba01477
Info : 337 259 adi_v5_swd.c:125 swd_connect(): SWD IDCODE 0x2ba01477
Debug: 338 259 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 
queued transactions
Debug: 339 259 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP read reg 0 0
Debug: 340 259 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg c 0
Debug: 341 261 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 1 
FAULT
User : 342 261 target.c:2525 handle_target(): Polling target MK10DN32VFM5.cpu 
failed, GDB will be halted. Polling again in 700ms
Debug: 343 261 target.c:1463 target_call_event_callbacks(): target event 0 
(gdb-halt)
Debug: 344 1064 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 345 1066 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 
queued transactions
Debug: 346 1066 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 347 1066 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 1e
Debug: 348 1068 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 
0 JUNK
User : 349 1068 target.c:2525 handle_target(): Polling target MK10DN32VFM5.cpu 
failed, GDB will be halted. Polling again in 1500ms
Debug: 350 1068 target.c:1463 target_call_event_callbacks(): target event 0 
(gdb-halt)
Debug: 351 2671 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 352 2673 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 
queued transactions
Debug: 353 2673 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 354 2673 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 1e
Debug: 355 2675 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 
0 JUNK
User : 356 2675 target.c:2525 handle_target(): Polling target MK10DN32VFM5.cpu 
failed, GDB will be halted. Polling again in 3100ms
Debug: 357 2675 target.c:1463 target_call_event_callbacks(): target event 0 
(gdb-halt)
Info : 358 2716 server.c:90 add_connection(): accepting 'telnet' connection on 
tcp/4444
Debug: 359 6350 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 360 6352 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 
queued transactions
Debug: 361 6352 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 362 6352 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 1e
Debug: 363 6354 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 
0 JUNK
User : 364 6354 target.c:2525 handle_target(): Polling target MK10DN32VFM5.cpu 
failed, GDB will be halted. Polling again in 6300ms
Debug: 365 6354 target.c:1463 target_call_event_callbacks(): target event 0 
(gdb-halt)
Debug: 366 10421 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_kinetis mdm mass_erase
Debug: 367 10421 command.c:145 script_debug(): command - ocd_kinetis 
ocd_kinetis mdm mass_erase
Debug: 369 10422 core.c:644 swd_add_reset(): SRST line asserted
Debug: 370 10422 kinetis.c:235 kinetis_mdm_write_register(): MDM_REG[0x04] <- 
00000008
Debug: 371 10423 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 372 10425 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 
queued transactions
Debug: 373 10425 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 374 10425 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 
1e
Debug: 375 10427 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
2ba01477
Info : 376 10427 adi_v5_swd.c:125 swd_connect(): SWD IDCODE 0x2ba01477
Debug: 377 10427 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 
queued transactions
Debug: 378 10427 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 8 
1000000
Debug: 379 10427 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write reg 4 8
Debug: 380 10429 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 
2 FAULT
Debug: 381 10429 kinetis.c:245 kinetis_mdm_write_register(): MDM: dap_run failed
Debug: 382 10429 command.c:628 run_command(): Command failed with error code -4
User : 383 10429 command.c:666 command_run_line(): in procedure 'kinetis'
Debug: 384 13246 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_shutdown
Debug: 385 13246 command.c:145 script_debug(): command - shutdown ocd_shutdown
User : 387 13246 server.c:607 handle_shutdown_command(): shutdown command 
invoked
Info : 388 13267 server.c:483 server_loop(): dropped 'telnet' connection
Open On-Chip Debugger 0.9.0-dev-00349-gd4ca401 (2015-03-13-10:20)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.sourceforge.net/doc/doxygen/bugs.html
User : 13 3 command.c:546 command_print(): debug_level: 3
Debug: 14 3 options.c:98 add_default_dirs(): bindir=/usr/local/bin
Debug: 15 3 options.c:99 add_default_dirs(): pkgdatadir=/usr/local/share/openocd
Debug: 16 3 options.c:100 add_default_dirs(): run_prefix=
Debug: 17 3 configuration.c:44 add_script_search_dir(): adding 
/home/chris/.openocd
Debug: 18 3 configuration.c:44 add_script_search_dir(): adding 
/usr/local/share/openocd/site
Debug: 19 3 configuration.c:44 add_script_search_dir(): adding 
/usr/local/share/openocd/scripts
Debug: 20 3 configuration.c:84 find_file(): found openocd.cfg
Debug: 21 3 configuration.c:84 find_file(): found 
/usr/local/share/openocd/scripts/interface/cmsis-dap.cfg
Debug: 22 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_interface cmsis-dap
Debug: 23 4 command.c:145 script_debug(): command - interface ocd_interface 
cmsis-dap
Debug: 25 4 command.c:366 register_command_handler(): registering 
'ocd_cmsis-dap'...
Debug: 26 4 command.c:366 register_command_handler(): registering 
'ocd_cmsis_dap_vid_pid'...
Debug: 27 4 command.c:366 register_command_handler(): registering 
'ocd_cmsis_dap_serial'...
Info : 28 4 transport.c:118 allow_transports(): only one transport option; 
autoselect 'swd'
Debug: 29 4 command.c:325 command_new(): BUG: command 'swd' does not have the 
'.usage' field filled out
Debug: 30 4 command.c:366 register_command_handler(): registering 'ocd_swd'...
Debug: 31 4 command.c:366 register_command_handler(): registering 'ocd_swd'...
Debug: 32 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_reset_config srst_only
Debug: 33 4 command.c:145 script_debug(): command - reset_config 
ocd_reset_config srst_only
User : 35 4 command.c:546 command_print(): srst_only separate srst_gates_jtag 
srst_open_drain connect_deassert_srst
Debug: 36 4 configuration.c:84 find_file(): found 
/usr/local/share/openocd/scripts/target/kx.cfg
Debug: 37 4 configuration.c:84 find_file(): found 
/usr/local/share/openocd/scripts/target/swj-dp.tcl
Debug: 38 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport select
Debug: 39 4 command.c:145 script_debug(): command - ocd_transport ocd_transport 
select
Debug: 40 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport select
Debug: 41 4 command.c:145 script_debug(): command - ocd_transport ocd_transport 
select
Debug: 42 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport select
Debug: 43 4 command.c:145 script_debug(): command - ocd_transport ocd_transport 
select
Debug: 44 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport select
Debug: 45 4 command.c:145 script_debug(): command - ocd_transport ocd_transport 
select
Debug: 46 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport select
Debug: 47 4 command.c:145 script_debug(): command - ocd_transport ocd_transport 
select
Debug: 48 5 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_swd newdap MK10DN32VFM5 cpu -irlen 4 -ircapture 0x1 -irmask 0xf 
-expected-id 0x2ba01477
Debug: 49 5 command.c:145 script_debug(): command - ocd_swd ocd_swd newdap 
MK10DN32VFM5 cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x2ba01477
Debug: 50 5 tcl.c:554 jim_newtap_cmd(): Creating New Tap, Chip: MK10DN32VFM5, 
Tap: cpu, Dotted: MK10DN32VFM5.cpu, 8 params
Debug: 51 5 core.c:1302 jtag_tap_init(): Created Tap: MK10DN32VFM5.cpu @ abs 
position 0, irlen 0, capture: 0x0 mask: 0x0
Debug: 52 5 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_target create MK10DN32VFM5.cpu cortex_m -chain-position 
MK10DN32VFM5.cpu
Debug: 53 5 command.c:145 script_debug(): command - ocd_target ocd_target 
create MK10DN32VFM5.cpu cortex_m -chain-position MK10DN32VFM5.cpu
Debug: 54 5 target.c:1835 target_free_all_working_areas_restore(): freeing all 
working areas
Debug: 55 5 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 56 5 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 57 5 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 58 5 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 59 5 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 60 5 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 61 5 command.c:366 register_command_handler(): registering 'ocd_dap'...
Debug: 62 5 command.c:366 register_command_handler(): registering 'ocd_dap'...
Debug: 63 5 command.c:366 register_command_handler(): registering 'ocd_dap'...
Debug: 64 5 command.c:366 register_command_handler(): registering 'ocd_dap'...
Debug: 65 5 command.c:366 register_command_handler(): registering 'ocd_dap'...
Debug: 66 5 command.c:366 register_command_handler(): registering 'ocd_dap'...
Debug: 67 5 command.c:366 register_command_handler(): registering 'ocd_dap'...
Debug: 68 5 command.c:366 register_command_handler(): registering 
'ocd_cortex_m'...
Debug: 69 5 command.c:366 register_command_handler(): registering 
'ocd_cortex_m'...
Debug: 70 5 command.c:366 register_command_handler(): registering 
'ocd_cortex_m'...
Debug: 71 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 72 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 73 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 74 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 75 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 76 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 77 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 78 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 79 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 80 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 81 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 82 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 83 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 84 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 85 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 86 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 87 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 88 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 89 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 90 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 91 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 92 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 93 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 94 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 95 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 96 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 97 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 98 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 99 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 100 6 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 101 6 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 102 6 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 103 6 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 104 6 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 105 6 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 106 6 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 107 6 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 108 6 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 109 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_MK10DN32VFM5.cpu configure -event examine-end 
        kinetis mdm check_security

Debug: 110 6 command.c:145 script_debug(): command - ocd_MK10DN32VFM5.cpu 
ocd_MK10DN32VFM5.cpu configure -event examine-end 
        kinetis mdm check_security

Debug: 111 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_MK10DN32VFM5.cpu configure -work-area-phys 0x20000000 -work-area-size 
0x4000 -work-area-backup 0
Debug: 112 6 command.c:145 script_debug(): command - ocd_MK10DN32VFM5.cpu 
ocd_MK10DN32VFM5.cpu configure -work-area-phys 0x20000000 -work-area-size 
0x4000 -work-area-backup 0
Debug: 113 6 target.c:1835 target_free_all_working_areas_restore(): freeing all 
working areas
Debug: 114 6 target.c:1835 target_free_all_working_areas_restore(): freeing all 
working areas
Debug: 115 6 target.c:1835 target_free_all_working_areas_restore(): freeing all 
working areas
Debug: 116 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_flash bank MK10DN32VFM5.flash kinetis 0 0 0 0 MK10DN32VFM5.cpu
Debug: 117 6 command.c:145 script_debug(): command - ocd_flash ocd_flash bank 
MK10DN32VFM5.flash kinetis 0 0 0 0 MK10DN32VFM5.cpu
Debug: 119 6 command.c:366 register_command_handler(): registering 
'ocd_kinetis'...
Debug: 120 6 command.c:366 register_command_handler(): registering 
'ocd_kinetis'...
Debug: 121 6 command.c:366 register_command_handler(): registering 
'ocd_kinetis'...
Debug: 122 6 command.c:366 register_command_handler(): registering 
'ocd_kinetis'...
Info : 123 6 kinetis.c:491 kinetis_flash_bank_command(): add flash_bank kinetis 
MK10DN32VFM5.flash
Debug: 124 6 tcl.c:824 handle_flash_bank_command(): 'kinetis' driver usage 
field missing
Debug: 125 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_adapter_khz 1000
Debug: 126 6 command.c:145 script_debug(): command - adapter_khz 
ocd_adapter_khz 1000
Debug: 128 6 core.c:1629 jtag_config_khz(): handle jtag khz
Debug: 129 6 core.c:1596 adapter_khz_to_speed(): convert khz to interface 
specific speed value
Debug: 130 6 core.c:1596 adapter_khz_to_speed(): convert khz to interface 
specific speed value
User : 131 6 command.c:546 command_print(): adapter speed: 1000 kHz
Debug: 132 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_reset_config srst_nogate
Debug: 133 6 command.c:145 script_debug(): command - reset_config 
ocd_reset_config srst_nogate
User : 135 6 command.c:546 command_print(): srst_only separate srst_nogate 
srst_open_drain connect_deassert_srst
Debug: 136 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport select
Debug: 137 6 command.c:145 script_debug(): command - ocd_transport 
ocd_transport select
Debug: 138 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_cortex_m reset_config sysresetreq
Debug: 139 6 command.c:145 script_debug(): command - ocd_cortex_m ocd_cortex_m 
reset_config sysresetreq
User : 141 6 command.c:546 command_print(): cortex_m reset_config sysresetreq
Debug: 142 7 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_reset_config srst_only srst_nogate connect_assert_srst
Debug: 143 7 command.c:145 script_debug(): command - reset_config 
ocd_reset_config srst_only srst_nogate connect_assert_srst
User : 145 7 command.c:546 command_print(): srst_only separate srst_nogate 
srst_open_drain connect_assert_srst
Debug: 146 7 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_init
Debug: 147 7 command.c:145 script_debug(): command - init ocd_init
Debug: 149 7 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_target init
Debug: 150 7 command.c:145 script_debug(): command - ocd_target ocd_target init
Debug: 152 7 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_target names
Debug: 153 7 command.c:145 script_debug(): command - ocd_target ocd_target names
Debug: 154 7 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_MK10DN32VFM5.cpu cget -event gdb-flash-erase-start
Debug: 155 7 command.c:145 script_debug(): command - ocd_MK10DN32VFM5.cpu 
ocd_MK10DN32VFM5.cpu cget -event gdb-flash-erase-start
Debug: 156 7 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_MK10DN32VFM5.cpu configure -event gdb-flash-erase-start reset init
Debug: 157 7 command.c:145 script_debug(): command - ocd_MK10DN32VFM5.cpu 
ocd_MK10DN32VFM5.cpu configure -event gdb-flash-erase-start reset init
Debug: 158 7 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_MK10DN32VFM5.cpu cget -event gdb-flash-write-end
Debug: 159 7 command.c:145 script_debug(): command - ocd_MK10DN32VFM5.cpu 
ocd_MK10DN32VFM5.cpu cget -event gdb-flash-write-end
Debug: 160 7 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_MK10DN32VFM5.cpu configure -event gdb-flash-write-end reset halt
Debug: 161 7 command.c:145 script_debug(): command - ocd_MK10DN32VFM5.cpu 
ocd_MK10DN32VFM5.cpu configure -event gdb-flash-write-end reset halt
Debug: 162 7 target.c:1311 handle_target_init_command(): Initializing targets...
Debug: 163 7 command.c:366 register_command_handler(): registering 
'ocd_target_request'...
Debug: 164 7 command.c:366 register_command_handler(): registering 
'ocd_trace'...
Debug: 165 7 command.c:366 register_command_handler(): registering 
'ocd_trace'...
Debug: 166 7 command.c:366 register_command_handler(): registering 
'ocd_fast_load_image'...
Debug: 167 7 command.c:366 register_command_handler(): registering 
'ocd_fast_load'...
Debug: 168 7 command.c:366 register_command_handler(): registering 
'ocd_profile'...
Debug: 169 7 command.c:366 register_command_handler(): registering 
'ocd_virt2phys'...
Debug: 170 7 command.c:366 register_command_handler(): registering 'ocd_reg'...
Debug: 171 7 command.c:366 register_command_handler(): registering 'ocd_poll'...
Debug: 172 7 command.c:366 register_command_handler(): registering 
'ocd_wait_halt'...
Debug: 173 7 command.c:366 register_command_handler(): registering 'ocd_halt'...
Debug: 174 7 command.c:366 register_command_handler(): registering 
'ocd_resume'...
Debug: 175 7 command.c:366 register_command_handler(): registering 
'ocd_reset'...
Debug: 176 7 command.c:366 register_command_handler(): registering 
'ocd_soft_reset_halt'...
Debug: 177 7 command.c:366 register_command_handler(): registering 'ocd_step'...
Debug: 178 7 command.c:366 register_command_handler(): registering 'ocd_mdw'...
Debug: 179 7 command.c:366 register_command_handler(): registering 'ocd_mdh'...
Debug: 180 7 command.c:366 register_command_handler(): registering 'ocd_mdb'...
Debug: 181 7 command.c:366 register_command_handler(): registering 'ocd_mww'...
Debug: 182 7 command.c:366 register_command_handler(): registering 'ocd_mwh'...
Debug: 183 7 command.c:366 register_command_handler(): registering 'ocd_mwb'...
Debug: 184 7 command.c:366 register_command_handler(): registering 'ocd_bp'...
Debug: 185 8 command.c:366 register_command_handler(): registering 'ocd_rbp'...
Debug: 186 8 command.c:366 register_command_handler(): registering 'ocd_wp'...
Debug: 187 8 command.c:366 register_command_handler(): registering 'ocd_rwp'...
Debug: 188 8 command.c:366 register_command_handler(): registering 
'ocd_load_image'...
Debug: 189 8 command.c:366 register_command_handler(): registering 
'ocd_dump_image'...
Debug: 190 8 command.c:366 register_command_handler(): registering 
'ocd_verify_image'...
Debug: 191 8 command.c:366 register_command_handler(): registering 
'ocd_test_image'...
Debug: 192 8 command.c:366 register_command_handler(): registering 
'ocd_reset_nag'...
Debug: 193 8 command.c:366 register_command_handler(): registering 'ocd_ps'...
Debug: 194 8 command.c:366 register_command_handler(): registering 
'ocd_test_mem_access'...
Info : 195 11 cmsis_dap_usb.c:683 cmsis_dap_get_caps_info(): CMSIS-DAP: SWD  
Supported
Info : 196 12 cmsis_dap_usb.c:784 cmsis_dap_swd_open(): CMSIS-DAP: Interface 
Initialised (SWD)
Info : 197 13 cmsis_dap_usb.c:663 cmsis_dap_get_version_info(): CMSIS-DAP: FW 
Version = 1.0
Debug: 198 15 cmsis_dap_usb.c:856 cmsis_dap_init(): CMSIS-DAP: Packet Size = 64
Debug: 199 15 cmsis_dap_usb.c:867 cmsis_dap_init(): CMSIS-DAP: Packet Count = 32
Info : 200 16 cmsis_dap_usb.c:704 cmsis_dap_get_status(): SWCLK/TCK = 0 
SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : 201 21 cmsis_dap_usb.c:904 cmsis_dap_init(): Connecting under reset
Info : 202 22 cmsis_dap_usb.c:910 cmsis_dap_init(): CMSIS-DAP: Interface ready
Debug: 203 22 core.c:1596 adapter_khz_to_speed(): convert khz to interface 
specific speed value
Debug: 204 22 core.c:1599 adapter_khz_to_speed(): have interface set up
Debug: 205 23 core.c:1596 adapter_khz_to_speed(): convert khz to interface 
specific speed value
Debug: 206 23 core.c:1599 adapter_khz_to_speed(): have interface set up
Info : 207 24 core.c:1384 adapter_init(): clock speed 1000 kHz
Debug: 208 24 openocd.c:137 handle_init_command(): Debug Adapter init complete
Debug: 209 24 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport init
Debug: 210 24 command.c:145 script_debug(): command - ocd_transport 
ocd_transport init
Debug: 212 24 transport.c:240 handle_transport_init(): handle_transport_init
Debug: 213 24 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 214 26 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 queued 
transactions
Debug: 215 26 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 216 26 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 1e
Debug: 217 28 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
2ba01477
Info : 218 28 adi_v5_swd.c:125 swd_connect(): SWD IDCODE 0x2ba01477
Debug: 219 28 openocd.c:150 handle_init_command(): Examining targets...
Debug: 220 28 target.c:1463 target_call_event_callbacks(): target event 21 
(examine-start)
Debug: 221 28 arm_adi_v5.c:647 ahbap_debugport_init():  
Debug: 222 28 arm_adi_v5.c:688 ahbap_debugport_init(): DAP: wait CDBGPWRUPACK
Debug: 223 28 arm_adi_v5.h:391 dap_dp_poll_register(): DAP: poll 4, mask 
0x0820000000, value 0x20000000
Debug: 224 28 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 5 queued 
transactions
Debug: 225 28 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 4 0
Debug: 226 28 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 4 20
Debug: 227 28 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 4 0
Debug: 228 28 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 4 
50000000
Debug: 229 29 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 4 0
Debug: 230 30 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 40
Debug: 231 30 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 40
Debug: 232 30 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
f0000040
Debug: 233 30 arm_adi_v5.c:695 ahbap_debugport_init(): DAP: wait CSYSPWRUPACK
Debug: 234 30 arm_adi_v5.h:391 dap_dp_poll_register(): DAP: poll 4, mask 
0x0880000000, value 0x80000000
Debug: 235 30 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 1 queued 
transactions
Debug: 236 30 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 4 0
Debug: 237 32 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
f0000040
Debug: 238 32 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 11 
queued transactions
Debug: 239 32 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 4 0
Debug: 240 32 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 4 
50000001
Debug: 241 32 cmsis_dap_usb.c:562 cmsis_dap_swd_run_queue(): refusing to enable 
sticky overrun detection
Debug: 242 32 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 4 0
Debug: 243 32 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 8 0
Debug: 244 32 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write reg 0 
a2000020
Debug: 245 32 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write reg 4 0
Debug: 246 32 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP read reg 0 0
Debug: 247 32 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg c 0
Debug: 248 32 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 8 f0
Debug: 249 32 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP read reg 4 0
Debug: 250 32 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg c 0
Debug: 251 34 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
f0000040
Debug: 252 34 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
f0000040
Debug: 253 34 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
23000020
Debug: 254 34 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
23000020
Debug: 255 34 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 0
Debug: 256 34 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 0
Debug: 257 34 arm_adi_v5.c:744 ahbap_debugport_init(): MEM_AP Packed Transfers: 
enabled
Debug: 258 34 arm_adi_v5.c:755 ahbap_debugport_init(): MEM_AP CFG: large data 
0, long address 0, big-endian 0
Debug: 259 34 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 5 queued 
transactions
Debug: 260 34 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 8 0
Debug: 261 34 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write reg 4 
e000ed00
Debug: 262 34 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write reg 0 
a2000022
Debug: 263 34 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP read reg c 0
Debug: 264 35 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg c 0
Debug: 265 36 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 4 
FAULT
Debug: 266 37 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 267 39 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 queued 
transactions
Debug: 268 39 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 269 39 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 1e
Debug: 270 41 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
2ba01477
Info : 271 41 adi_v5_swd.c:125 swd_connect(): SWD IDCODE 0x2ba01477
Debug: 272 41 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 queued 
transactions
Debug: 273 41 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP read reg 4 0
Debug: 274 41 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg c 0
Debug: 275 43 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
e000ed00
Debug: 276 43 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
e000ed00
Error: 277 43 arm_adi_v5.c:512 mem_ap_read(): Failed to read memory at 
0xe000ed00
Debug: 278 43 target.c:2181 target_read_u32(): address: 0xe000ed00 failed
Debug: 279 43 openocd.c:152 handle_init_command(): target examination failed
Debug: 280 43 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_flash init
Debug: 281 44 command.c:145 script_debug(): command - ocd_flash ocd_flash init
Debug: 282 44 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 5 queued 
transactions
Debug: 283 44 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write reg 0 
a2000002
Debug: 284 44 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write reg 4 
e000edf0
Debug: 285 44 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 8 10
Debug: 286 44 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP read reg 0 0
Debug: 287 44 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg c 0
Debug: 288 45 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 4 
FAULT
User : 289 45 target.c:2525 handle_target(): Polling target MK10DN32VFM5.cpu 
failed, GDB will be halted. Polling again in 100ms
Debug: 290 45 target.c:1463 target_call_event_callbacks(): target event 0 
(gdb-halt)
Debug: 292 45 tcl.c:890 handle_flash_init_command(): Initializing flash 
devices...
Debug: 293 45 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 294 46 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 295 46 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 296 46 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 297 46 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 298 46 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 299 46 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 300 46 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 301 46 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 302 46 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 303 46 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 304 46 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 305 46 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_mflash init
Debug: 306 46 command.c:145 script_debug(): command - ocd_mflash ocd_mflash init
Debug: 308 46 mflash.c:1379 handle_mflash_init_command(): Initializing mflash 
devices...
Debug: 309 46 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_nand init
Debug: 310 46 command.c:145 script_debug(): command - ocd_nand ocd_nand init
Debug: 311 47 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 312 49 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 queued 
transactions
Debug: 313 49 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 314 49 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 1e
Debug: 315 51 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
2ba01477
Info : 316 51 adi_v5_swd.c:125 swd_connect(): SWD IDCODE 0x2ba01477
Debug: 317 51 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 queued 
transactions
Debug: 318 51 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP read reg 0 0
Debug: 319 51 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg c 0
Debug: 320 53 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 1 
FAULT
User : 321 53 target.c:2525 handle_target(): Polling target MK10DN32VFM5.cpu 
failed, GDB will be halted. Polling again in 300ms
Debug: 322 53 target.c:1463 target_call_event_callbacks(): target event 0 
(gdb-halt)
Debug: 324 53 tcl.c:497 handle_nand_init_command(): Initializing NAND devices...
Debug: 325 53 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_pld init
Debug: 326 54 command.c:145 script_debug(): command - ocd_pld ocd_pld init
Debug: 328 54 pld.c:207 handle_pld_init_command(): Initializing PLDs...
Debug: 329 54 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_init
Debug: 330 54 command.c:145 script_debug(): command - init ocd_init
Debug: 332 256 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 333 257 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 
queued transactions
Debug: 334 257 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 335 257 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 1e
Debug: 336 259 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
2ba01477
Info : 337 259 adi_v5_swd.c:125 swd_connect(): SWD IDCODE 0x2ba01477
Debug: 338 259 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 
queued transactions
Debug: 339 260 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP read reg 0 0
Debug: 340 260 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg c 0
Debug: 341 261 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 1 
FAULT
User : 342 262 target.c:2525 handle_target(): Polling target MK10DN32VFM5.cpu 
failed, GDB will be halted. Polling again in 700ms
Debug: 343 262 target.c:1463 target_call_event_callbacks(): target event 0 
(gdb-halt)
Debug: 344 1064 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 345 1065 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 
queued transactions
Debug: 346 1066 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 347 1066 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 1e
Debug: 348 1067 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 
0 JUNK
User : 349 1067 target.c:2525 handle_target(): Polling target MK10DN32VFM5.cpu 
failed, GDB will be halted. Polling again in 1500ms
Debug: 350 1067 target.c:1463 target_call_event_callbacks(): target event 0 
(gdb-halt)
Debug: 351 2670 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 352 2672 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 
queued transactions
Debug: 353 2672 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 354 2672 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 1e
Debug: 355 2674 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 
0 JUNK
User : 356 2674 target.c:2525 handle_target(): Polling target MK10DN32VFM5.cpu 
failed, GDB will be halted. Polling again in 3100ms
Debug: 357 2674 target.c:1463 target_call_event_callbacks(): target event 0 
(gdb-halt)
Info : 358 3172 server.c:90 add_connection(): accepting 'telnet' connection on 
tcp/4444
Debug: 359 6438 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 360 6440 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 
queued transactions
Debug: 361 6440 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 362 6440 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 1e
Debug: 363 6442 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 
0 JUNK
User : 364 6442 target.c:2525 handle_target(): Polling target MK10DN32VFM5.cpu 
failed, GDB will be halted. Polling again in 6300ms
Debug: 365 6443 target.c:1463 target_call_event_callbacks(): target event 0 
(gdb-halt)
Debug: 366 10829 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_kinetis mdm mass_erase
Debug: 367 10829 command.c:145 script_debug(): command - ocd_kinetis 
ocd_kinetis mdm mass_erase
Debug: 369 10830 core.c:644 swd_add_reset(): SRST line asserted
Debug: 370 10830 kinetis.c:235 kinetis_mdm_write_register(): MDM_REG[0x04] <- 
00000008
Debug: 371 10831 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 372 10833 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 
queued transactions
Debug: 373 10833 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 374 10833 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 
1e
Debug: 375 10835 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
2ba01477
Info : 376 10835 adi_v5_swd.c:125 swd_connect(): SWD IDCODE 0x2ba01477
Debug: 377 10835 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 
queued transactions
Debug: 378 10835 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 8 
1000000
Debug: 379 10835 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write reg 4 8
Debug: 380 10837 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 
2 FAULT
Debug: 381 10837 kinetis.c:245 kinetis_mdm_write_register(): MDM: dap_run failed
Debug: 382 10837 command.c:628 run_command(): Command failed with error code -4
User : 383 10838 command.c:666 command_run_line(): in procedure 'kinetis'
Debug: 384 13390 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_shutdown
Debug: 385 13390 command.c:145 script_debug(): command - shutdown ocd_shutdown
User : 387 13390 server.c:607 handle_shutdown_command(): shutdown command 
invoked
Info : 388 13390 server.c:483 server_loop(): dropped 'telnet' connection
Open On-Chip Debugger 0.9.0-dev-00349-gd4ca401 (2015-03-13-10:20)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.sourceforge.net/doc/doxygen/bugs.html
User : 13 3 command.c:546 command_print(): debug_level: 3
Debug: 14 3 options.c:98 add_default_dirs(): bindir=/usr/local/bin
Debug: 15 3 options.c:99 add_default_dirs(): pkgdatadir=/usr/local/share/openocd
Debug: 16 3 options.c:100 add_default_dirs(): run_prefix=
Debug: 17 3 configuration.c:44 add_script_search_dir(): adding 
/home/chris/.openocd
Debug: 18 3 configuration.c:44 add_script_search_dir(): adding 
/usr/local/share/openocd/site
Debug: 19 3 configuration.c:44 add_script_search_dir(): adding 
/usr/local/share/openocd/scripts
Debug: 20 3 configuration.c:84 find_file(): found openocd.cfg
Debug: 21 3 configuration.c:84 find_file(): found 
/usr/local/share/openocd/scripts/interface/cmsis-dap.cfg
Debug: 22 3 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_interface cmsis-dap
Debug: 23 4 command.c:145 script_debug(): command - interface ocd_interface 
cmsis-dap
Debug: 25 4 command.c:366 register_command_handler(): registering 
'ocd_cmsis-dap'...
Debug: 26 4 command.c:366 register_command_handler(): registering 
'ocd_cmsis_dap_vid_pid'...
Debug: 27 4 command.c:366 register_command_handler(): registering 
'ocd_cmsis_dap_serial'...
Info : 28 4 transport.c:118 allow_transports(): only one transport option; 
autoselect 'swd'
Debug: 29 4 command.c:325 command_new(): BUG: command 'swd' does not have the 
'.usage' field filled out
Debug: 30 4 command.c:366 register_command_handler(): registering 'ocd_swd'...
Debug: 31 4 command.c:366 register_command_handler(): registering 'ocd_swd'...
Debug: 32 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_reset_config srst_only
Debug: 33 4 command.c:145 script_debug(): command - reset_config 
ocd_reset_config srst_only
User : 35 4 command.c:546 command_print(): srst_only separate srst_gates_jtag 
srst_open_drain connect_deassert_srst
Debug: 36 4 configuration.c:84 find_file(): found 
/usr/local/share/openocd/scripts/target/kx.cfg
Debug: 37 4 configuration.c:84 find_file(): found 
/usr/local/share/openocd/scripts/target/swj-dp.tcl
Debug: 38 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport select
Debug: 39 4 command.c:145 script_debug(): command - ocd_transport ocd_transport 
select
Debug: 40 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport select
Debug: 41 4 command.c:145 script_debug(): command - ocd_transport ocd_transport 
select
Debug: 42 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport select
Debug: 43 4 command.c:145 script_debug(): command - ocd_transport ocd_transport 
select
Debug: 44 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport select
Debug: 45 4 command.c:145 script_debug(): command - ocd_transport ocd_transport 
select
Debug: 46 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport select
Debug: 47 4 command.c:145 script_debug(): command - ocd_transport ocd_transport 
select
Debug: 48 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_swd newdap MK10DN32VFM5 cpu -irlen 4 -ircapture 0x1 -irmask 0xf 
-expected-id 0x2ba01477
Debug: 49 4 command.c:145 script_debug(): command - ocd_swd ocd_swd newdap 
MK10DN32VFM5 cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x2ba01477
Debug: 50 5 tcl.c:554 jim_newtap_cmd(): Creating New Tap, Chip: MK10DN32VFM5, 
Tap: cpu, Dotted: MK10DN32VFM5.cpu, 8 params
Debug: 51 5 core.c:1302 jtag_tap_init(): Created Tap: MK10DN32VFM5.cpu @ abs 
position 0, irlen 0, capture: 0x0 mask: 0x0
Debug: 52 5 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_target create MK10DN32VFM5.cpu cortex_m -chain-position 
MK10DN32VFM5.cpu
Debug: 53 5 command.c:145 script_debug(): command - ocd_target ocd_target 
create MK10DN32VFM5.cpu cortex_m -chain-position MK10DN32VFM5.cpu
Debug: 54 5 target.c:1835 target_free_all_working_areas_restore(): freeing all 
working areas
Debug: 55 5 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 56 5 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 57 5 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 58 5 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 59 5 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 60 5 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 61 5 command.c:366 register_command_handler(): registering 'ocd_dap'...
Debug: 62 5 command.c:366 register_command_handler(): registering 'ocd_dap'...
Debug: 63 5 command.c:366 register_command_handler(): registering 'ocd_dap'...
Debug: 64 5 command.c:366 register_command_handler(): registering 'ocd_dap'...
Debug: 65 5 command.c:366 register_command_handler(): registering 'ocd_dap'...
Debug: 66 5 command.c:366 register_command_handler(): registering 'ocd_dap'...
Debug: 67 5 command.c:366 register_command_handler(): registering 'ocd_dap'...
Debug: 68 5 command.c:366 register_command_handler(): registering 
'ocd_cortex_m'...
Debug: 69 5 command.c:366 register_command_handler(): registering 
'ocd_cortex_m'...
Debug: 70 5 command.c:366 register_command_handler(): registering 
'ocd_cortex_m'...
Debug: 71 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 72 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 73 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 74 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 75 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 76 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 77 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 78 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 79 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 80 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 81 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 82 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 83 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 84 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 85 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 86 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 87 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 88 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 89 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 90 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 91 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 92 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 93 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 94 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 95 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 96 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 97 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 98 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 99 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 100 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 101 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 102 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 103 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 104 5 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 105 6 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 106 6 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 107 6 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 108 6 command.c:366 register_command_handler(): registering 
'ocd_MK10DN32VFM5.cpu'...
Debug: 109 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_MK10DN32VFM5.cpu configure -event examine-end 
        kinetis mdm check_security

Debug: 110 6 command.c:145 script_debug(): command - ocd_MK10DN32VFM5.cpu 
ocd_MK10DN32VFM5.cpu configure -event examine-end 
        kinetis mdm check_security

Debug: 111 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_MK10DN32VFM5.cpu configure -work-area-phys 0x20000000 -work-area-size 
0x4000 -work-area-backup 0
Debug: 112 6 command.c:145 script_debug(): command - ocd_MK10DN32VFM5.cpu 
ocd_MK10DN32VFM5.cpu configure -work-area-phys 0x20000000 -work-area-size 
0x4000 -work-area-backup 0
Debug: 113 6 target.c:1835 target_free_all_working_areas_restore(): freeing all 
working areas
Debug: 114 6 target.c:1835 target_free_all_working_areas_restore(): freeing all 
working areas
Debug: 115 6 target.c:1835 target_free_all_working_areas_restore(): freeing all 
working areas
Debug: 116 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_flash bank MK10DN32VFM5.flash kinetis 0 0 0 0 MK10DN32VFM5.cpu
Debug: 117 6 command.c:145 script_debug(): command - ocd_flash ocd_flash bank 
MK10DN32VFM5.flash kinetis 0 0 0 0 MK10DN32VFM5.cpu
Debug: 119 6 command.c:366 register_command_handler(): registering 
'ocd_kinetis'...
Debug: 120 6 command.c:366 register_command_handler(): registering 
'ocd_kinetis'...
Debug: 121 6 command.c:366 register_command_handler(): registering 
'ocd_kinetis'...
Debug: 122 6 command.c:366 register_command_handler(): registering 
'ocd_kinetis'...
Info : 123 6 kinetis.c:491 kinetis_flash_bank_command(): add flash_bank kinetis 
MK10DN32VFM5.flash
Debug: 124 6 tcl.c:824 handle_flash_bank_command(): 'kinetis' driver usage 
field missing
Debug: 125 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_adapter_khz 1000
Debug: 126 6 command.c:145 script_debug(): command - adapter_khz 
ocd_adapter_khz 1000
Debug: 128 6 core.c:1629 jtag_config_khz(): handle jtag khz
Debug: 129 6 core.c:1596 adapter_khz_to_speed(): convert khz to interface 
specific speed value
Debug: 130 6 core.c:1596 adapter_khz_to_speed(): convert khz to interface 
specific speed value
User : 131 6 command.c:546 command_print(): adapter speed: 1000 kHz
Debug: 132 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_reset_config srst_nogate
Debug: 133 6 command.c:145 script_debug(): command - reset_config 
ocd_reset_config srst_nogate
User : 135 6 command.c:546 command_print(): srst_only separate srst_nogate 
srst_open_drain connect_deassert_srst
Debug: 136 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport select
Debug: 137 6 command.c:145 script_debug(): command - ocd_transport 
ocd_transport select
Debug: 138 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_cortex_m reset_config sysresetreq
Debug: 139 6 command.c:145 script_debug(): command - ocd_cortex_m ocd_cortex_m 
reset_config sysresetreq
User : 141 6 command.c:546 command_print(): cortex_m reset_config sysresetreq
Debug: 142 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_reset_config srst_only srst_nogate connect_assert_srst
Debug: 143 6 command.c:145 script_debug(): command - reset_config 
ocd_reset_config srst_only srst_nogate connect_assert_srst
User : 145 6 command.c:546 command_print(): srst_only separate srst_nogate 
srst_open_drain connect_assert_srst
Debug: 146 7 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_init
Debug: 147 7 command.c:145 script_debug(): command - init ocd_init
Debug: 149 7 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_target init
Debug: 150 7 command.c:145 script_debug(): command - ocd_target ocd_target init
Debug: 152 7 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_target names
Debug: 153 7 command.c:145 script_debug(): command - ocd_target ocd_target names
Debug: 154 7 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_MK10DN32VFM5.cpu cget -event gdb-flash-erase-start
Debug: 155 7 command.c:145 script_debug(): command - ocd_MK10DN32VFM5.cpu 
ocd_MK10DN32VFM5.cpu cget -event gdb-flash-erase-start
Debug: 156 7 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_MK10DN32VFM5.cpu configure -event gdb-flash-erase-start reset init
Debug: 157 7 command.c:145 script_debug(): command - ocd_MK10DN32VFM5.cpu 
ocd_MK10DN32VFM5.cpu configure -event gdb-flash-erase-start reset init
Debug: 158 7 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_MK10DN32VFM5.cpu cget -event gdb-flash-write-end
Debug: 159 7 command.c:145 script_debug(): command - ocd_MK10DN32VFM5.cpu 
ocd_MK10DN32VFM5.cpu cget -event gdb-flash-write-end
Debug: 160 7 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_MK10DN32VFM5.cpu configure -event gdb-flash-write-end reset halt
Debug: 161 7 command.c:145 script_debug(): command - ocd_MK10DN32VFM5.cpu 
ocd_MK10DN32VFM5.cpu configure -event gdb-flash-write-end reset halt
Debug: 162 7 target.c:1311 handle_target_init_command(): Initializing targets...
Debug: 163 7 command.c:366 register_command_handler(): registering 
'ocd_target_request'...
Debug: 164 7 command.c:366 register_command_handler(): registering 
'ocd_trace'...
Debug: 165 7 command.c:366 register_command_handler(): registering 
'ocd_trace'...
Debug: 166 7 command.c:366 register_command_handler(): registering 
'ocd_fast_load_image'...
Debug: 167 7 command.c:366 register_command_handler(): registering 
'ocd_fast_load'...
Debug: 168 7 command.c:366 register_command_handler(): registering 
'ocd_profile'...
Debug: 169 7 command.c:366 register_command_handler(): registering 
'ocd_virt2phys'...
Debug: 170 7 command.c:366 register_command_handler(): registering 'ocd_reg'...
Debug: 171 7 command.c:366 register_command_handler(): registering 'ocd_poll'...
Debug: 172 7 command.c:366 register_command_handler(): registering 
'ocd_wait_halt'...
Debug: 173 7 command.c:366 register_command_handler(): registering 'ocd_halt'...
Debug: 174 7 command.c:366 register_command_handler(): registering 
'ocd_resume'...
Debug: 175 7 command.c:366 register_command_handler(): registering 
'ocd_reset'...
Debug: 176 7 command.c:366 register_command_handler(): registering 
'ocd_soft_reset_halt'...
Debug: 177 7 command.c:366 register_command_handler(): registering 'ocd_step'...
Debug: 178 7 command.c:366 register_command_handler(): registering 'ocd_mdw'...
Debug: 179 7 command.c:366 register_command_handler(): registering 'ocd_mdh'...
Debug: 180 7 command.c:366 register_command_handler(): registering 'ocd_mdb'...
Debug: 181 7 command.c:366 register_command_handler(): registering 'ocd_mww'...
Debug: 182 7 command.c:366 register_command_handler(): registering 'ocd_mwh'...
Debug: 183 7 command.c:366 register_command_handler(): registering 'ocd_mwb'...
Debug: 184 7 command.c:366 register_command_handler(): registering 'ocd_bp'...
Debug: 185 7 command.c:366 register_command_handler(): registering 'ocd_rbp'...
Debug: 186 7 command.c:366 register_command_handler(): registering 'ocd_wp'...
Debug: 187 7 command.c:366 register_command_handler(): registering 'ocd_rwp'...
Debug: 188 7 command.c:366 register_command_handler(): registering 
'ocd_load_image'...
Debug: 189 7 command.c:366 register_command_handler(): registering 
'ocd_dump_image'...
Debug: 190 7 command.c:366 register_command_handler(): registering 
'ocd_verify_image'...
Debug: 191 8 command.c:366 register_command_handler(): registering 
'ocd_test_image'...
Debug: 192 8 command.c:366 register_command_handler(): registering 
'ocd_reset_nag'...
Debug: 193 8 command.c:366 register_command_handler(): registering 'ocd_ps'...
Debug: 194 8 command.c:366 register_command_handler(): registering 
'ocd_test_mem_access'...
Info : 195 12 cmsis_dap_usb.c:683 cmsis_dap_get_caps_info(): CMSIS-DAP: SWD  
Supported
Info : 196 13 cmsis_dap_usb.c:784 cmsis_dap_swd_open(): CMSIS-DAP: Interface 
Initialised (SWD)
Info : 197 14 cmsis_dap_usb.c:663 cmsis_dap_get_version_info(): CMSIS-DAP: FW 
Version = 1.0
Debug: 198 15 cmsis_dap_usb.c:856 cmsis_dap_init(): CMSIS-DAP: Packet Size = 64
Debug: 199 16 cmsis_dap_usb.c:867 cmsis_dap_init(): CMSIS-DAP: Packet Count = 32
Info : 200 17 cmsis_dap_usb.c:704 cmsis_dap_get_status(): SWCLK/TCK = 0 
SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : 201 22 cmsis_dap_usb.c:904 cmsis_dap_init(): Connecting under reset
Info : 202 23 cmsis_dap_usb.c:910 cmsis_dap_init(): CMSIS-DAP: Interface ready
Debug: 203 23 core.c:1596 adapter_khz_to_speed(): convert khz to interface 
specific speed value
Debug: 204 23 core.c:1599 adapter_khz_to_speed(): have interface set up
Debug: 205 24 core.c:1596 adapter_khz_to_speed(): convert khz to interface 
specific speed value
Debug: 206 24 core.c:1599 adapter_khz_to_speed(): have interface set up
Info : 207 24 core.c:1384 adapter_init(): clock speed 1000 kHz
Debug: 208 24 openocd.c:137 handle_init_command(): Debug Adapter init complete
Debug: 209 24 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport init
Debug: 210 24 command.c:145 script_debug(): command - ocd_transport 
ocd_transport init
Debug: 212 24 transport.c:240 handle_transport_init(): handle_transport_init
Debug: 213 25 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 214 27 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 queued 
transactions
Debug: 215 27 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 216 27 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 1e
Debug: 217 29 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
2ba01477
Info : 218 29 adi_v5_swd.c:125 swd_connect(): SWD IDCODE 0x2ba01477
Debug: 219 29 openocd.c:150 handle_init_command(): Examining targets...
Debug: 220 29 target.c:1463 target_call_event_callbacks(): target event 21 
(examine-start)
Debug: 221 29 arm_adi_v5.c:647 ahbap_debugport_init():  
Debug: 222 29 arm_adi_v5.c:688 ahbap_debugport_init(): DAP: wait CDBGPWRUPACK
Debug: 223 29 arm_adi_v5.h:391 dap_dp_poll_register(): DAP: poll 4, mask 
0x0820000000, value 0x20000000
Debug: 224 29 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 5 queued 
transactions
Debug: 225 29 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 4 0
Debug: 226 29 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 4 20
Debug: 227 29 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 4 0
Debug: 228 29 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 4 
50000000
Debug: 229 29 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 4 0
Debug: 230 31 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 40
Debug: 231 31 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 40
Debug: 232 31 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
f0000040
Debug: 233 31 arm_adi_v5.c:695 ahbap_debugport_init(): DAP: wait CSYSPWRUPACK
Debug: 234 31 arm_adi_v5.h:391 dap_dp_poll_register(): DAP: poll 4, mask 
0x0880000000, value 0x80000000
Debug: 235 31 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 1 queued 
transactions
Debug: 236 31 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 4 0
Debug: 237 33 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
f0000040
Debug: 238 33 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 11 
queued transactions
Debug: 239 33 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 4 0
Debug: 240 33 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 4 
50000001
Debug: 241 33 cmsis_dap_usb.c:562 cmsis_dap_swd_run_queue(): refusing to enable 
sticky overrun detection
Debug: 242 33 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 4 0
Debug: 243 33 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 8 0
Debug: 244 33 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write reg 0 
a2000020
Debug: 245 33 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write reg 4 0
Debug: 246 33 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP read reg 0 0
Debug: 247 33 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg c 0
Debug: 248 33 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 8 f0
Debug: 249 33 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP read reg 4 0
Debug: 250 33 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg c 0
Debug: 251 35 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
f0000040
Debug: 252 35 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
f0000040
Debug: 253 35 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
23000020
Debug: 254 35 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
23000020
Debug: 255 35 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 0
Debug: 256 35 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 0
Debug: 257 35 arm_adi_v5.c:744 ahbap_debugport_init(): MEM_AP Packed Transfers: 
enabled
Debug: 258 35 arm_adi_v5.c:755 ahbap_debugport_init(): MEM_AP CFG: large data 
0, long address 0, big-endian 0
Debug: 259 35 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 5 queued 
transactions
Debug: 260 35 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 8 0
Debug: 261 35 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write reg 4 
e000ed00
Debug: 262 35 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write reg 0 
a2000022
Debug: 263 35 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP read reg c 0
Debug: 264 35 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg c 0
Debug: 265 37 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 4 
FAULT
Debug: 266 38 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 267 40 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 queued 
transactions
Debug: 268 40 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 269 40 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 1e
Debug: 270 42 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
2ba01477
Info : 271 42 adi_v5_swd.c:125 swd_connect(): SWD IDCODE 0x2ba01477
Debug: 272 42 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 queued 
transactions
Debug: 273 42 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP read reg 4 0
Debug: 274 42 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg c 0
Debug: 275 44 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
e000ed00
Debug: 276 44 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
e000ed00
Error: 277 44 arm_adi_v5.c:512 mem_ap_read(): Failed to read memory at 
0xe000ed00
Debug: 278 44 target.c:2181 target_read_u32(): address: 0xe000ed00 failed
Debug: 279 44 openocd.c:152 handle_init_command(): target examination failed
Debug: 280 44 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_flash init
Debug: 281 44 command.c:145 script_debug(): command - ocd_flash ocd_flash init
Debug: 282 44 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 5 queued 
transactions
Debug: 283 44 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write reg 0 
a2000002
Debug: 284 44 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write reg 4 
e000edf0
Debug: 285 44 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 8 10
Debug: 286 44 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP read reg 0 0
Debug: 287 44 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg c 0
Debug: 288 46 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 4 
FAULT
User : 289 46 target.c:2525 handle_target(): Polling target MK10DN32VFM5.cpu 
failed, GDB will be halted. Polling again in 100ms
Debug: 290 46 target.c:1463 target_call_event_callbacks(): target event 0 
(gdb-halt)
Debug: 292 46 tcl.c:890 handle_flash_init_command(): Initializing flash 
devices...
Debug: 293 46 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 294 46 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 295 46 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 296 46 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 297 46 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 298 46 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 299 46 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 300 46 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 301 46 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 302 46 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 303 46 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 304 46 command.c:366 register_command_handler(): registering 
'ocd_flash'...
Debug: 305 46 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_mflash init
Debug: 306 46 command.c:145 script_debug(): command - ocd_mflash ocd_mflash init
Debug: 308 46 mflash.c:1379 handle_mflash_init_command(): Initializing mflash 
devices...
Debug: 309 46 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_nand init
Debug: 310 47 command.c:145 script_debug(): command - ocd_nand ocd_nand init
Debug: 311 48 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 312 50 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 queued 
transactions
Debug: 313 50 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 314 50 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 1e
Debug: 315 52 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
2ba01477
Info : 316 52 adi_v5_swd.c:125 swd_connect(): SWD IDCODE 0x2ba01477
Debug: 317 52 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 queued 
transactions
Debug: 318 52 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP read reg 0 0
Debug: 319 52 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg c 0
Debug: 320 54 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 1 
FAULT
User : 321 54 target.c:2525 handle_target(): Polling target MK10DN32VFM5.cpu 
failed, GDB will be halted. Polling again in 300ms
Debug: 322 54 target.c:1463 target_call_event_callbacks(): target event 0 
(gdb-halt)
Debug: 324 54 tcl.c:497 handle_nand_init_command(): Initializing NAND devices...
Debug: 325 54 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_pld init
Debug: 326 54 command.c:145 script_debug(): command - ocd_pld ocd_pld init
Debug: 328 54 pld.c:207 handle_pld_init_command(): Initializing PLDs...
Debug: 329 54 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_init
Debug: 330 54 command.c:145 script_debug(): command - init ocd_init
Debug: 332 256 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 333 258 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 
queued transactions
Debug: 334 258 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 335 258 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 1e
Debug: 336 260 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
2ba01477
Info : 337 260 adi_v5_swd.c:125 swd_connect(): SWD IDCODE 0x2ba01477
Debug: 338 260 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 
queued transactions
Debug: 339 260 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP read reg 0 0
Debug: 340 260 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg c 0
Debug: 341 262 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 1 
FAULT
User : 342 262 target.c:2525 handle_target(): Polling target MK10DN32VFM5.cpu 
failed, GDB will be halted. Polling again in 700ms
Debug: 343 262 target.c:1463 target_call_event_callbacks(): target event 0 
(gdb-halt)
Debug: 344 1065 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 345 1067 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 
queued transactions
Debug: 346 1067 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 347 1067 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 1e
Debug: 348 1069 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 
0 JUNK
User : 349 1069 target.c:2525 handle_target(): Polling target MK10DN32VFM5.cpu 
failed, GDB will be halted. Polling again in 1500ms
Debug: 350 1069 target.c:1463 target_call_event_callbacks(): target event 0 
(gdb-halt)
Info : 351 2110 server.c:90 add_connection(): accepting 'telnet' connection on 
tcp/4444
Debug: 352 2712 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 353 2714 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 
queued transactions
Debug: 354 2714 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 355 2714 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 1e
Debug: 356 2716 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 
0 JUNK
User : 357 2716 target.c:2525 handle_target(): Polling target MK10DN32VFM5.cpu 
failed, GDB will be halted. Polling again in 3100ms
Debug: 358 2716 target.c:1463 target_call_event_callbacks(): target event 0 
(gdb-halt)
Debug: 359 6458 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 360 6460 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 
queued transactions
Debug: 361 6460 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 362 6460 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 1e
Debug: 363 6462 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 
0 JUNK
User : 364 6462 target.c:2525 handle_target(): Polling target MK10DN32VFM5.cpu 
failed, GDB will be halted. Polling again in 6300ms
Debug: 365 6462 target.c:1463 target_call_event_callbacks(): target event 0 
(gdb-halt)
Debug: 366 8773 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_kinetis mdm mass_erase
Debug: 367 8773 command.c:145 script_debug(): command - ocd_kinetis ocd_kinetis 
mdm mass_erase
Debug: 369 8774 core.c:644 swd_add_reset(): SRST line asserted
Debug: 370 8774 kinetis.c:235 kinetis_mdm_write_register(): MDM_REG[0x04] <- 
00000008
Debug: 371 8775 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 372 8777 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 
queued transactions
Debug: 373 8777 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 374 8777 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 1e
Debug: 375 8779 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read result: 
2ba01477
Info : 376 8779 adi_v5_swd.c:125 swd_connect(): SWD IDCODE 0x2ba01477
Debug: 377 8779 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 
queued transactions
Debug: 378 8779 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 8 
1000000
Debug: 379 8779 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write reg 4 8
Debug: 380 8781 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 
2 FAULT
Debug: 381 8781 kinetis.c:245 kinetis_mdm_write_register(): MDM: dap_run failed
Debug: 382 8781 command.c:628 run_command(): Command failed with error code -4
User : 383 8781 command.c:666 command_run_line(): in procedure 'kinetis'
Debug: 384 11845 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_shutdown
Debug: 385 11845 command.c:145 script_debug(): command - shutdown ocd_shutdown
User : 387 11845 server.c:607 handle_shutdown_command(): shutdown command 
invoked
Info : 388 11845 server.c:483 server_loop(): dropped 'telnet' connection
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to