On 13/03/15 08:30, Paul Fertser wrote:
> On Fri, Mar 13, 2015 at 08:24:04AM +0000, Chris Fryer wrote:
>>
>> I would add that connecting to factory blank K1x devices (whilst in
>> their initial COP reset loop) is seriously temperamental and connecting
>> to secured K1x parts doesn't work at all.
>>
>> I'm happy to help test patches.
> You haven't showed a single log yet. Please connect and enable SRST
> and sent the full -d3 output showing you attempting to mdm mass_erase
> the part.
>
My apologies. I'd forgotten that a log was the sensible thing to post
before describing a problem.
This is a log of attempting to connect to a secured part:
Open On-Chip Debugger 0.9.0-dev-00348-g2ac1123 (2015-03-12-14:38)
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 4 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 5 command.c:145 script_debug(): command - ocd_command
ocd_command type ocd_transport select
Debug: 47 5 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 6 command.c:366 register_command_handler(): registering
'ocd_MK10DN32VFM5.cpu'...
Debug: 94 6 command.c:366 register_command_handler(): registering
'ocd_MK10DN32VFM5.cpu'...
Debug: 95 6 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 7 command.c:145 script_debug(): command - ocd_command
ocd_command type ocd_cortex_m reset_config sysresetreq
Debug: 139 7 command.c:145 script_debug(): command - ocd_cortex_m
ocd_cortex_m reset_config sysresetreq
User : 141 7 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 8 command.c:366 register_command_handler(): registering
'ocd_poll'...
Debug: 172 8 command.c:366 register_command_handler(): registering
'ocd_wait_halt'...
Debug: 173 8 command.c:366 register_command_handler(): registering
'ocd_halt'...
Debug: 174 8 command.c:366 register_command_handler(): registering
'ocd_resume'...
Debug: 175 8 command.c:366 register_command_handler(): registering
'ocd_reset'...
Debug: 176 8 command.c:366 register_command_handler(): registering
'ocd_soft_reset_halt'...
Debug: 177 8 command.c:366 register_command_handler(): registering
'ocd_step'...
Debug: 178 8 command.c:366 register_command_handler(): registering
'ocd_mdw'...
Debug: 179 8 command.c:366 register_command_handler(): registering
'ocd_mdh'...
Debug: 180 8 command.c:366 register_command_handler(): registering
'ocd_mdb'...
Debug: 181 8 command.c:366 register_command_handler(): registering
'ocd_mww'...
Debug: 182 8 command.c:366 register_command_handler(): registering
'ocd_mwh'...
Debug: 183 8 command.c:366 register_command_handler(): registering
'ocd_mwb'...
Debug: 184 8 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 12 cmsis_dap_usb.c:683 cmsis_dap_get_caps_info(): CMSIS-DAP:
SWD Supported
Info : 196 14 cmsis_dap_usb.c:784 cmsis_dap_swd_open(): CMSIS-DAP:
Interface Initialised (SWD)
Info : 197 15 cmsis_dap_usb.c:663 cmsis_dap_get_version_info():
CMSIS-DAP: FW Version = 1.0
Debug: 198 16 cmsis_dap_usb.c:856 cmsis_dap_init(): CMSIS-DAP: Packet
Size = 64
Debug: 199 17 cmsis_dap_usb.c:867 cmsis_dap_init(): CMSIS-DAP: Packet
Count = 32
Info : 200 18 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 24 cmsis_dap_usb.c:910 cmsis_dap_init(): CMSIS-DAP: Interface
ready
Debug: 203 24 core.c:1596 adapter_khz_to_speed(): convert khz to
interface specific speed value
Debug: 204 24 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 25 core.c:1599 adapter_khz_to_speed(): have interface set up
Info : 207 25 core.c:1384 adapter_init(): clock speed 1000 kHz
Debug: 208 25 openocd.c:137 handle_init_command(): Debug Adapter init
complete
Debug: 209 25 command.c:145 script_debug(): command - ocd_command
ocd_command type ocd_transport init
Debug: 210 25 command.c:145 script_debug(): command - ocd_transport
ocd_transport init
Debug: 212 25 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:123 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 30 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write
reg 4 50000000
Debug: 229 30 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 34 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:123 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 45 command.c:145 script_debug(): command - ocd_flash
ocd_flash init
Debug: 282 45 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 5
queued transactions
Debug: 283 45 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write
reg 0 a2000002
Debug: 284 45 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write
reg 4 e000edf0
Debug: 285 45 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write
reg 8 10
Debug: 286 45 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP read reg 0 0
Debug: 287 45 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 47 command.c:366 register_command_handler(): registering
'ocd_flash'...
Debug: 296 47 command.c:366 register_command_handler(): registering
'ocd_flash'...
Debug: 297 47 command.c:366 register_command_handler(): registering
'ocd_flash'...
Debug: 298 47 command.c:366 register_command_handler(): registering
'ocd_flash'...
Debug: 299 47 command.c:366 register_command_handler(): registering
'ocd_flash'...
Debug: 300 47 command.c:366 register_command_handler(): registering
'ocd_flash'...
Debug: 301 47 command.c:366 register_command_handler(): registering
'ocd_flash'...
Debug: 302 47 command.c:366 register_command_handler(): registering
'ocd_flash'...
Debug: 303 47 command.c:366 register_command_handler(): registering
'ocd_flash'...
Debug: 304 47 command.c:366 register_command_handler(): registering
'ocd_flash'...
Debug: 305 47 command.c:145 script_debug(): command - ocd_command
ocd_command type ocd_mflash init
Debug: 306 47 command.c:145 script_debug(): command - ocd_mflash
ocd_mflash init
Debug: 308 47 mflash.c:1379 handle_mflash_init_command(): Initializing
mflash devices...
Debug: 309 47 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:123 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 55 command.c:145 script_debug(): command - ocd_pld ocd_pld init
Debug: 328 55 pld.c:207 handle_pld_init_command(): Initializing PLDs...
Debug: 329 55 command.c:145 script_debug(): command - ocd_command
ocd_command type ocd_reset init
Debug: 330 55 command.c:145 script_debug(): command - reset ocd_reset init
Debug: 332 55 target.c:1481 target_call_reset_callbacks(): target reset
3 (init)
Debug: 333 55 command.c:145 script_debug(): command - ocd_command
ocd_command type ocd_target names
Debug: 334 55 command.c:145 script_debug(): command - ocd_target
ocd_target names
Debug: 335 55 command.c:145 script_debug(): command - ocd_command
ocd_command type ocd_MK10DN32VFM5.cpu invoke-event reset-start
Debug: 336 55 command.c:145 script_debug(): command -
ocd_MK10DN32VFM5.cpu ocd_MK10DN32VFM5.cpu invoke-event reset-start
Debug: 337 55 command.c:145 script_debug(): command - ocd_command
ocd_command type ocd_transport select
Debug: 338 55 command.c:145 script_debug(): command - ocd_transport
ocd_transport select
Debug: 339 55 command.c:145 script_debug(): command - ocd_command
ocd_command type ocd_transport select
Debug: 340 55 command.c:145 script_debug(): command - ocd_transport
ocd_transport select
Debug: 341 55 command.c:145 script_debug(): command - ocd_command
ocd_command type ocd_MK10DN32VFM5.cpu invoke-event examine-start
Debug: 342 55 command.c:145 script_debug(): command -
ocd_MK10DN32VFM5.cpu ocd_MK10DN32VFM5.cpu invoke-event examine-start
Debug: 343 55 command.c:145 script_debug(): command - ocd_command
ocd_command type ocd_MK10DN32VFM5.cpu arp_examine
Debug: 344 55 command.c:145 script_debug(): command -
ocd_MK10DN32VFM5.cpu ocd_MK10DN32VFM5.cpu arp_examine
Debug: 345 55 arm_adi_v5.c:647 ahbap_debugport_init():
Debug: 346 55 arm_adi_v5.c:688 ahbap_debugport_init(): DAP: wait
CDBGPWRUPACK
Debug: 347 55 arm_adi_v5.h:391 dap_dp_poll_register(): DAP: poll 4, mask
0x0820000000, value 0x20000000
Debug: 348 55 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 5
queued transactions
Debug: 349 55 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 4 0
Debug: 350 55 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write
reg 4 20
Debug: 351 55 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 4 0
Debug: 352 55 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write
reg 4 50000000
Debug: 353 55 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 4 0
Debug: 354 57 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not
OK: 1 FAULT
Debug: 355 57 command.c:145 script_debug(): command - ocd_command
ocd_command type ocd_MK10DN32VFM5.cpu invoke-event reset-assert-pre
Debug: 356 58 command.c:145 script_debug(): command -
ocd_MK10DN32VFM5.cpu ocd_MK10DN32VFM5.cpu invoke-event reset-assert-pre
Debug: 357 58 command.c:145 script_debug(): command - ocd_command
ocd_command type ocd_transport select
Debug: 358 58 command.c:145 script_debug(): command - ocd_transport
ocd_transport select
Debug: 359 58 command.c:145 script_debug(): command - ocd_command
ocd_command type ocd_MK10DN32VFM5.cpu arp_reset assert 1
Debug: 360 58 command.c:145 script_debug(): command -
ocd_MK10DN32VFM5.cpu ocd_MK10DN32VFM5.cpu arp_reset assert 1
Debug: 361 58 target.c:1835 target_free_all_working_areas_restore():
freeing all working areas
Debug: 362 58 cortex_m.c:971 cortex_m_assert_reset(): target->state: unknown
Debug: 363 59 core.c:644 swd_add_reset(): SRST line asserted
Debug: 364 60 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 365 61 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 5
queued transactions
Debug: 366 61 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write
reg 8 0
Debug: 367 61 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write
reg 0 a2000002
Debug: 368 61 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write
reg 4 e000edf0
Debug: 369 61 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 370 61 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write
reg 0 1e
Debug: 371 63 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not
OK: 0 JUNK
User : 372 64 command.c:546 command_print(): in procedure 'reset' called
at file "openocd.cfg", line 10
in procedure 'ocd_bouncer'
Debug: 373 64 command.c:628 run_command(): Command failed with error code -4
User : 374 64 command.c:666 command_run_line(): openocd.cfg:10: Error:
in procedure 'script'
at file "embedded:startup.tcl", line 58
in procedure 'reset' called at file "openocd.cfg", line 10
Debug: 375 64 command.c:145 script_debug(): command - ocd_command
ocd_command type ocd_init
Debug: 376 64 command.c:145 script_debug(): command - init ocd_init
Debug: 378 166 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 379 167 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing
2 queued transactions
Debug: 380 167 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read
reg 0 0
Debug: 381 167 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write
reg 0 1e
Debug: 382 169 cmsis_dap_usb.c:600 cmsis_dap_swd_run_queue(): Read
result: 2ba01477
Info : 383 169 adi_v5_swd.c:123 swd_connect(): SWD IDCODE 0x2ba01477
Debug: 384 169 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing
3 queued transactions
Debug: 385 169 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write
reg 8 10
Debug: 386 169 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP read
reg 0 0
Debug: 387 169 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read
reg c 0
Debug: 388 171 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack
not OK: 2 FAULT
User : 389 171 target.c:2525 handle_target(): Polling target
MK10DN32VFM5.cpu failed, GDB will be halted. Polling again in 700ms
Debug: 390 171 target.c:1463 target_call_event_callbacks(): target event
0 (gdb-halt)
Debug: 391 974 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 392 975 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing
2 queued transactions
Debug: 393 975 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read
reg 0 0
Debug: 394 975 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write
reg 0 1e
Debug: 395 977 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack
not OK: 0 JUNK
User : 396 977 target.c:2525 handle_target(): Polling target
MK10DN32VFM5.cpu failed, GDB will be halted. Polling again in 1500ms
Debug: 397 977 target.c:1463 target_call_event_callbacks(): target event
0 (gdb-halt)
Info : 398 2261 server.c:90 add_connection(): accepting 'telnet'
connection on tcp/4444
Debug: 399 2664 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 400 2665 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing
2 queued transactions
Debug: 401 2665 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read
reg 0 0
Debug: 402 2665 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write
reg 0 1e
Debug: 403 2667 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack
not OK: 0 JUNK
User : 404 2667 target.c:2525 handle_target(): Polling target
MK10DN32VFM5.cpu failed, GDB will be halted. Polling again in 3100ms
Debug: 405 2667 target.c:1463 target_call_event_callbacks(): target
event 0 (gdb-halt)
Debug: 406 6174 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 407 6176 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing
2 queued transactions
Debug: 408 6176 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read
reg 0 0
Debug: 409 6176 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write
reg 0 1e
Debug: 410 6178 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack
not OK: 0 JUNK
User : 411 6178 target.c:2525 handle_target(): Polling target
MK10DN32VFM5.cpu failed, GDB will be halted. Polling again in 6300ms
Debug: 412 6178 target.c:1463 target_call_event_callbacks(): target
event 0 (gdb-halt)
Debug: 413 10750 command.c:145 script_debug(): command - ocd_command
ocd_command type ocd_kinetis mdm mass_erase
Debug: 414 10750 command.c:145 script_debug(): command - ocd_kinetis
ocd_kinetis mdm mass_erase
Debug: 416 10750 kinetis.c:235 kinetis_mdm_write_register():
MDM_REG[0x04] <- 00000008
Debug: 417 10750 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue():
Executing 2 queued transactions
Debug: 418 10750 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write
reg 8 1000000
Debug: 419 10750 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write
reg 4 8
Debug: 420 10752 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack
not OK: 0 JUNK
Debug: 421 10752 kinetis.c:245 kinetis_mdm_write_register(): MDM:
dap_run failed
Debug: 422 10752 command.c:628 run_command(): Command failed with error
code -4
User : 423 10753 command.c:666 command_run_line(): in procedure 'kinetis'
Debug: 424 13439 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 425 13441 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue():
Executing 4 queued transactions
Debug: 426 13441 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write
reg 0 a2000002
Debug: 427 13441 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): AP write
reg 4 e000edf0
Debug: 428 13441 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read
reg 0 0
Debug: 429 13441 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write
reg 0 1e
Debug: 430 13443 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack
not OK: 0 JUNK
User : 431 13443 target.c:2525 handle_target(): Polling target
MK10DN32VFM5.cpu failed, GDB will be halted. Polling again in 6300ms
Debug: 432 13444 target.c:1463 target_call_event_callbacks(): target
event 0 (gdb-halt)
Debug: 433 13918 command.c:145 script_debug(): command - ocd_command
ocd_command type ocd_shutdown
Debug: 434 13918 command.c:145 script_debug(): command - shutdown
ocd_shutdown
User : 436 13918 server.c:607 handle_shutdown_command(): shutdown
command invoked
Info : 437 13918 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