|
From: David 'M. L. <mi...@gm...> - 2017-09-25 19:48:17
|
I think the listing got truncated.. Here is the same output with the
commands issued from a connected telnet session.
$ telnet localhost 4444
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Open On-Chip Debugger
> reset halt
MDM: Chip is unsecured. Continuing.
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc
> flash banks
#0 : ke.flash (kinetis_ke) at 0x00000000, size 0x00000000, buswidth 0,
chipwidth 0
>
$ openocd -d3 -f interface/cmsis-dap.cfg -f target/ke0x.cfg
Open On-Chip Debugger 0.10.0+dev-00173-g496fcfd (2017-09-25-11:01)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
User : 13 3 command.c:544 command_print(): debug_level: 3
Debug: 14 3 options.c:181 add_default_dirs(): bindir=/usr/local/bin
Debug: 15 3 options.c:182 add_default_dirs():
pkgdatadir=/usr/local/share/openocd
Debug: 16 3 options.c:183 add_default_dirs(): exepath=/usr/local/bin
Debug: 17 3 options.c:184 add_default_dirs(): bin2data=../share/openocd
Debug: 18 3 configuration.c:42 add_script_search_dir(): adding
/home/miller/.openocd
Debug: 19 3 configuration.c:42 add_script_search_dir(): adding
/usr/local/bin/../share/openocd/site
Debug: 20 3 configuration.c:42 add_script_search_dir(): adding
/usr/local/bin/../share/openocd/scripts
Debug: 21 3 configuration.c:82 find_file(): found
/usr/local/bin/../share/openocd/scripts/interface/cmsis-dap.cfg
Debug: 22 3 command.c:143 script_debug(): command - ocd_command ocd_command
type ocd_interface cmsis-dap
Debug: 23 3 command.c:143 script_debug(): command - interface ocd_interface
cmsis-dap
Debug: 25 3 command.c:364 register_command_handler(): registering
'ocd_cmsis-dap'...
Debug: 26 3 command.c:364 register_command_handler(): registering
'ocd_cmsis_dap_vid_pid'...
Debug: 27 3 command.c:364 register_command_handler(): registering
'ocd_cmsis_dap_serial'...
Debug: 28 3 configuration.c:82 find_file(): found
/usr/local/bin/../share/openocd/scripts/target/ke0x.cfg
Debug: 29 3 configuration.c:82 find_file(): found
/usr/local/bin/../share/openocd/scripts/target/swj-dp.tcl
Debug: 30 3 command.c:143 script_debug(): command - ocd_command ocd_command
type ocd_transport select
Debug: 31 3 command.c:143 script_debug(): command - ocd_transport
ocd_transport select
Info : 32 3 transport.c:286 jim_transport_select(): auto-selecting first
available session transport "swd". To override use 'transport select
<transport>'.
Debug: 33 3 command.c:323 command_new(): BUG: command 'swd' does not have
the '.usage' field filled out
Debug: 34 3 command.c:364 register_command_handler(): registering
'ocd_swd'...
Debug: 35 4 command.c:143 script_debug(): command - ocd_command ocd_command
type ocd_transport select
Debug: 36 4 command.c:143 script_debug(): command - ocd_transport
ocd_transport select
Debug: 37 4 command.c:143 script_debug(): command - ocd_command ocd_command
type ocd_transport select
Debug: 38 4 command.c:143 script_debug(): command - ocd_transport
ocd_transport select
Debug: 39 4 command.c:143 script_debug(): command - ocd_command ocd_command
type ocd_transport select
Debug: 40 4 command.c:143 script_debug(): command - ocd_transport
ocd_transport select
Debug: 41 4 command.c:143 script_debug(): command - ocd_command ocd_command
type ocd_swd newdap ke cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id
0x0bc11477
Debug: 42 4 command.c:143 script_debug(): command - ocd_swd ocd_swd newdap
ke cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x0bc11477
Debug: 43 4 tcl.c:549 jim_newtap_cmd(): Creating New Tap, Chip: ke, Tap:
cpu, Dotted: ke.cpu, 8 params
Debug: 44 4 core.c:1304 jtag_tap_init(): Created Tap: ke.cpu @ abs position
0, irlen 0, capture: 0x0 mask: 0x0
Debug: 45 4 command.c:143 script_debug(): command - ocd_command ocd_command
type ocd_target create ke.cpu cortex_m -chain-position ke.cpu
Debug: 46 4 command.c:143 script_debug(): command - ocd_target ocd_target
create ke.cpu cortex_m -chain-position ke.cpu
Debug: 47 4 target.c:1920 target_free_all_working_areas_restore(): freeing
all working areas
Debug: 48 4 command.c:364 register_command_handler(): registering
'ocd_arm'...
Debug: 49 4 command.c:364 register_command_handler(): registering
'ocd_arm'...
Debug: 50 4 command.c:364 register_command_handler(): registering
'ocd_arm'...
Debug: 51 4 command.c:364 register_command_handler(): registering
'ocd_arm'...
Debug: 52 4 command.c:364 register_command_handler(): registering
'ocd_arm'...
Debug: 53 4 command.c:364 register_command_handler(): registering
'ocd_arm'...
Debug: 54 4 command.c:364 register_command_handler(): registering
'ocd_arm'...
Debug: 55 4 command.c:364 register_command_handler(): registering
'ocd_dap'...
Debug: 56 4 command.c:364 register_command_handler(): registering
'ocd_dap'...
Debug: 57 4 command.c:364 register_command_handler(): registering
'ocd_dap'...
Debug: 58 4 command.c:364 register_command_handler(): registering
'ocd_dap'...
Debug: 59 4 command.c:364 register_command_handler(): registering
'ocd_dap'...
Debug: 60 4 command.c:364 register_command_handler(): registering
'ocd_dap'...
Debug: 61 4 command.c:364 register_command_handler(): registering
'ocd_dap'...
Debug: 62 4 command.c:364 register_command_handler(): registering
'ocd_dap'...
Debug: 63 4 command.c:364 register_command_handler(): registering
'ocd_tpiu'...
Debug: 64 4 command.c:364 register_command_handler(): registering
'ocd_itm'...
Debug: 65 4 command.c:364 register_command_handler(): registering
'ocd_itm'...
Debug: 66 4 command.c:364 register_command_handler(): registering
'ocd_cortex_m'...
Debug: 67 4 command.c:364 register_command_handler(): registering
'ocd_cortex_m'...
Debug: 68 4 command.c:364 register_command_handler(): registering
'ocd_cortex_m'...
Debug: 69 4 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 70 4 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 71 4 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 72 4 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 73 4 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 74 4 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 75 4 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 76 4 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 77 4 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 78 4 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 79 4 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 80 4 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 81 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 82 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 83 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 84 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 85 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 86 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 87 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 88 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 89 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 90 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 91 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 92 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 93 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 94 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 95 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 96 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 97 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 98 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 99 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 100 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 101 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 102 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 103 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 104 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 105 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 106 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 107 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 108 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 109 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 110 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 111 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 112 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 113 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 114 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 115 5 command.c:364 register_command_handler(): registering
'ocd_ke.cpu'...
Debug: 116 5 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_ke.cpu configure -work-area-phys 0x20000000
-work-area-size 0x400 -work-area-backup 0
Debug: 117 5 command.c:143 script_debug(): command - ocd_ke.cpu ocd_ke.cpu
configure -work-area-phys 0x20000000 -work-area-size 0x400
-work-area-backup 0
Debug: 118 5 target.c:1920 target_free_all_working_areas_restore(): freeing
all working areas
Debug: 119 5 target.c:1920 target_free_all_working_areas_restore(): freeing
all working areas
Debug: 120 5 target.c:1920 target_free_all_working_areas_restore(): freeing
all working areas
Debug: 121 5 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_flash bank ke.flash kinetis_ke 0 0 0 0 ke.cpu
Debug: 122 5 command.c:143 script_debug(): command - ocd_flash ocd_flash
bank ke.flash kinetis_ke 0 0 0 0 ke.cpu
Debug: 124 5 command.c:364 register_command_handler(): registering
'ocd_kinetis_ke'...
Debug: 125 5 command.c:364 register_command_handler(): registering
'ocd_kinetis_ke'...
Debug: 126 5 command.c:364 register_command_handler(): registering
'ocd_kinetis_ke'...
Debug: 127 5 command.c:364 register_command_handler(): registering
'ocd_kinetis_ke'...
Debug: 128 5 command.c:364 register_command_handler(): registering
'ocd_kinetis_ke'...
Info : 129 5 kinetis_ke.c:669 kinetis_ke_flash_bank_command(): add
flash_bank kinetis_ke ke.flash
Debug: 130 5 tcl.c:1100 handle_flash_bank_command(): 'kinetis_ke' driver
usage field missing
Debug: 131 6 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_adapter_khz 1000
Debug: 132 6 command.c:143 script_debug(): command - adapter_khz
ocd_adapter_khz 1000
Debug: 134 6 core.c:1631 jtag_config_khz(): handle jtag khz
Debug: 135 6 core.c:1598 adapter_khz_to_speed(): convert khz to interface
specific speed value
Debug: 136 6 core.c:1598 adapter_khz_to_speed(): convert khz to interface
specific speed value
User : 137 6 command.c:544 command_print(): adapter speed: 1000 kHz
Debug: 138 6 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_reset_config srst_nogate
Debug: 139 6 command.c:143 script_debug(): command - reset_config
ocd_reset_config srst_nogate
User : 141 6 command.c:544 command_print(): none separate
Debug: 142 6 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_transport select
Debug: 143 6 command.c:143 script_debug(): command - ocd_transport
ocd_transport select
Debug: 144 6 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_ke.cpu configure -event examine-end
kinetis_ke mdm check_security
Debug: 145 6 command.c:143 script_debug(): command - ocd_ke.cpu ocd_ke.cpu
configure -event examine-end
kinetis_ke mdm check_security
Debug: 146 6 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_cortex_m reset_config sysresetreq
Debug: 147 6 command.c:143 script_debug(): command - ocd_cortex_m
ocd_cortex_m reset_config sysresetreq
User : 149 6 command.c:544 command_print(): cortex_m reset_config
sysresetreq
Debug: 150 6 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_init
Debug: 151 6 command.c:143 script_debug(): command - init ocd_init
Debug: 153 6 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_target init
Debug: 154 6 command.c:143 script_debug(): command - ocd_target ocd_target
init
Debug: 156 6 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_target names
Debug: 157 6 command.c:143 script_debug(): command - ocd_target ocd_target
names
Debug: 158 6 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_ke.cpu cget -event gdb-flash-erase-start
Debug: 159 6 command.c:143 script_debug(): command - ocd_ke.cpu ocd_ke.cpu
cget -event gdb-flash-erase-start
Debug: 160 6 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_ke.cpu configure -event gdb-flash-erase-start reset
init
Debug: 161 6 command.c:143 script_debug(): command - ocd_ke.cpu ocd_ke.cpu
configure -event gdb-flash-erase-start reset init
Debug: 162 6 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_ke.cpu cget -event gdb-flash-write-end
Debug: 163 6 command.c:143 script_debug(): command - ocd_ke.cpu ocd_ke.cpu
cget -event gdb-flash-write-end
Debug: 164 7 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_ke.cpu configure -event gdb-flash-write-end reset halt
Debug: 165 7 command.c:143 script_debug(): command - ocd_ke.cpu ocd_ke.cpu
configure -event gdb-flash-write-end reset halt
Debug: 166 7 target.c:1329 handle_target_init_command(): Initializing
targets...
Debug: 167 7 command.c:364 register_command_handler(): registering
'ocd_target_request'...
Debug: 168 7 command.c:364 register_command_handler(): registering
'ocd_trace'...
Debug: 169 7 command.c:364 register_command_handler(): registering
'ocd_trace'...
Debug: 170 7 command.c:364 register_command_handler(): registering
'ocd_fast_load_image'...
Debug: 171 7 command.c:364 register_command_handler(): registering
'ocd_fast_load'...
Debug: 172 7 command.c:364 register_command_handler(): registering
'ocd_profile'...
Debug: 173 7 command.c:364 register_command_handler(): registering
'ocd_virt2phys'...
Debug: 174 7 command.c:364 register_command_handler(): registering
'ocd_reg'...
Debug: 175 7 command.c:364 register_command_handler(): registering
'ocd_poll'...
Debug: 176 7 command.c:364 register_command_handler(): registering
'ocd_wait_halt'...
Debug: 177 7 command.c:364 register_command_handler(): registering
'ocd_halt'...
Debug: 178 7 command.c:364 register_command_handler(): registering
'ocd_resume'...
Debug: 179 7 command.c:364 register_command_handler(): registering
'ocd_reset'...
Debug: 180 7 command.c:364 register_command_handler(): registering
'ocd_soft_reset_halt'...
Debug: 181 7 command.c:364 register_command_handler(): registering
'ocd_step'...
Debug: 182 7 command.c:364 register_command_handler(): registering
'ocd_mdd'...
Debug: 183 7 command.c:364 register_command_handler(): registering
'ocd_mdw'...
Debug: 184 7 command.c:364 register_command_handler(): registering
'ocd_mdh'...
Debug: 185 7 command.c:364 register_command_handler(): registering
'ocd_mdb'...
Debug: 186 7 command.c:364 register_command_handler(): registering
'ocd_mwd'...
Debug: 187 7 command.c:364 register_command_handler(): registering
'ocd_mww'...
Debug: 188 7 command.c:364 register_command_handler(): registering
'ocd_mwh'...
Debug: 189 7 command.c:364 register_command_handler(): registering
'ocd_mwb'...
Debug: 190 7 command.c:364 register_command_handler(): registering
'ocd_bp'...
Debug: 191 7 command.c:364 register_command_handler(): registering
'ocd_rbp'...
Debug: 192 7 command.c:364 register_command_handler(): registering
'ocd_wp'...
Debug: 193 7 command.c:364 register_command_handler(): registering
'ocd_rwp'...
Debug: 194 7 command.c:364 register_command_handler(): registering
'ocd_load_image'...
Debug: 195 7 command.c:364 register_command_handler(): registering
'ocd_dump_image'...
Debug: 196 7 command.c:364 register_command_handler(): registering
'ocd_verify_image_checksum'...
Debug: 197 7 command.c:364 register_command_handler(): registering
'ocd_verify_image'...
Debug: 198 7 command.c:364 register_command_handler(): registering
'ocd_test_image'...
Debug: 199 7 command.c:364 register_command_handler(): registering
'ocd_reset_nag'...
Debug: 200 7 command.c:364 register_command_handler(): registering
'ocd_ps'...
Debug: 201 7 command.c:364 register_command_handler(): registering
'ocd_test_mem_access'...
Info : 202 71 cmsis_dap_usb.c:760 cmsis_dap_get_caps_info(): CMSIS-DAP:
SWD Supported
Info : 203 71 cmsis_dap_usb.c:762 cmsis_dap_get_caps_info(): CMSIS-DAP:
JTAG Supported
Info : 204 73 cmsis_dap_usb.c:859 cmsis_dap_swd_open(): CMSIS-DAP:
Interface Initialised (SWD)
Info : 205 75 cmsis_dap_usb.c:740 cmsis_dap_get_version_info(): CMSIS-DAP:
FW Version = 1.0
Debug: 206 77 cmsis_dap_usb.c:931 cmsis_dap_init(): CMSIS-DAP: Packet Size
= 64
Debug: 207 79 cmsis_dap_usb.c:942 cmsis_dap_init(): CMSIS-DAP: Packet Count
= 8
Info : 208 81 cmsis_dap_usb.c:781 cmsis_dap_get_status(): SWCLK/TCK = 1
SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 0 nRESET = 1
Info : 209 91 cmsis_dap_usb.c:985 cmsis_dap_init(): CMSIS-DAP: Interface
ready
Debug: 210 91 core.c:1598 adapter_khz_to_speed(): convert khz to interface
specific speed value
Debug: 211 91 core.c:1601 adapter_khz_to_speed(): have interface set up
Debug: 212 93 core.c:1598 adapter_khz_to_speed(): convert khz to interface
specific speed value
Debug: 213 93 core.c:1601 adapter_khz_to_speed(): have interface set up
Info : 214 93 core.c:1386 adapter_init(): clock speed 1000 kHz
Debug: 215 93 openocd.c:140 handle_init_command(): Debug Adapter init
complete
Debug: 216 93 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_transport init
Debug: 217 93 command.c:143 script_debug(): command - ocd_transport
ocd_transport init
Debug: 219 93 transport.c:239 handle_transport_init(): handle_transport_init
Debug: 220 97 cmsis_dap_usb.c:810 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Info : 221 103 adi_v5_swd.c:137 swd_connect(): SWD DPIDR 0x0bc11477
Debug: 222 103 openocd.c:153 handle_init_command(): Examining targets...
Debug: 223 103 target.c:1522 target_call_event_callbacks(): target event 21
(examine-start)
Debug: 224 103 arm_adi_v5.c:603 dap_dp_init():
Debug: 225 105 arm_adi_v5.c:637 dap_dp_init(): DAP: wait CDBGPWRUPACK
Debug: 226 105 arm_adi_v5.h:428 dap_dp_poll_register(): DAP: poll 4, mask
0x20000000, value 0x20000000
Debug: 227 107 arm_adi_v5.c:644 dap_dp_init(): DAP: wait CSYSPWRUPACK
Debug: 228 107 arm_adi_v5.h:428 dap_dp_poll_register(): DAP: poll 4, mask
0x80000000, value 0x80000000
Debug: 229 109 cmsis_dap_usb.c:639 cmsis_dap_swd_run_queue(): refusing to
enable sticky overrun detection
Debug: 230 113 arm_adi_v5.c:785 dap_find_ap(): Found AHB-AP at AP index: 0
(IDR=0x04770031)
Debug: 231 115 arm_adi_v5.c:712 mem_ap_init(): MEM_AP Packed Transfers:
disabled
Debug: 232 115 arm_adi_v5.c:723 mem_ap_init(): MEM_AP CFG: large data 0,
long address 0, big-endian 0
Debug: 233 117 target.c:2262 target_read_u32(): address: 0xe000ed00, value:
0x410cc600
Debug: 234 117 cortex_m.c:1947 cortex_m_examine(): Cortex-M0 r0p0 processor
detected
Debug: 235 117 cortex_m.c:1955 cortex_m_examine(): cpuid: 0x410cc600
Debug: 236 117 target.c:2350 target_write_u32(): address: 0xe000edfc,
value: 0x01000000
Debug: 237 121 target.c:2262 target_read_u32(): address: 0xe0002000, value:
0x00000021
Debug: 238 121 target.c:2350 target_write_u32(): address: 0xe0002008,
value: 0x00000000
Debug: 239 123 target.c:2350 target_write_u32(): address: 0xe000200c,
value: 0x00000000
Debug: 240 125 cortex_m.c:2046 cortex_m_examine(): FPB fpcr 0x21, numcode
2, numlit 0
Debug: 241 127 target.c:2262 target_read_u32(): address: 0xe0001000, value:
0x20000000
Debug: 242 127 target.c:2350 target_write_u32(): address: 0xe0001028,
value: 0x00000000
Debug: 243 129 target.c:2350 target_write_u32(): address: 0xe0001038,
value: 0x00000000
Debug: 244 131 cortex_m.c:1857 cortex_m_dwt_setup(): DWT dwtcr 0x20000000,
comp 2, watch/trigger
Info : 245 131 cortex_m.c:2056 cortex_m_examine(): ke.cpu: hardware has 2
breakpoints, 2 watchpoints
Debug: 246 131 target.c:1522 target_call_event_callbacks(): target event 22
(examine-end)
Debug: 247 131 target.c:4429 target_handle_event(): target: (0) ke.cpu
(cortex_m) event: 22 (examine-end) action:
kinetis_ke mdm check_security
Debug: 248 131 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_kinetis_ke mdm check_security
Debug: 249 131 command.c:143 script_debug(): command - ocd_kinetis_ke
ocd_kinetis_ke mdm check_security
Debug: 251 135 kinetis_ke.c:182 kinetis_ke_mdm_read_register():
MDM_REG[0xfc]: 001C0020
Debug: 252 137 kinetis_ke.c:182 kinetis_ke_mdm_read_register():
MDM_REG[0x00]: 0001000A
Debug: 253 139 kinetis_ke.c:182 kinetis_ke_mdm_read_register():
MDM_REG[0x00]: 0001000A
Info : 254 139 kinetis_ke.c:650 kinetis_ke_check_flash_security_status():
MDM: Chip is unsecured. Continuing.
Debug: 255 139 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_flash init
Debug: 256 139 command.c:143 script_debug(): command - ocd_flash ocd_flash
init
Debug: 258 141 tcl.c:1166 handle_flash_init_command(): Initializing flash
devices...
Debug: 259 141 command.c:364 register_command_handler(): registering
'ocd_flash'...
Debug: 260 141 command.c:364 register_command_handler(): registering
'ocd_flash'...
Debug: 261 141 command.c:364 register_command_handler(): registering
'ocd_flash'...
Debug: 262 141 command.c:364 register_command_handler(): registering
'ocd_flash'...
Debug: 263 141 command.c:364 register_command_handler(): registering
'ocd_flash'...
Debug: 264 141 command.c:364 register_command_handler(): registering
'ocd_flash'...
Debug: 265 141 command.c:364 register_command_handler(): registering
'ocd_flash'...
Debug: 266 141 command.c:364 register_command_handler(): registering
'ocd_flash'...
Debug: 267 141 command.c:364 register_command_handler(): registering
'ocd_flash'...
Debug: 268 141 command.c:364 register_command_handler(): registering
'ocd_flash'...
Debug: 269 141 command.c:364 register_command_handler(): registering
'ocd_flash'...
Debug: 270 141 command.c:364 register_command_handler(): registering
'ocd_flash'...
Debug: 271 141 command.c:364 register_command_handler(): registering
'ocd_flash'...
Debug: 272 141 command.c:364 register_command_handler(): registering
'ocd_flash'...
Debug: 273 141 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_mflash init
Debug: 274 141 command.c:143 script_debug(): command - ocd_mflash
ocd_mflash init
Debug: 276 143 mflash.c:1377 handle_mflash_init_command(): Initializing
mflash devices...
Debug: 277 143 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_nand init
Debug: 278 143 command.c:143 script_debug(): command - ocd_nand ocd_nand
init
Debug: 280 145 tcl.c:497 handle_nand_init_command(): Initializing NAND
devices...
Debug: 281 145 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_pld init
Debug: 282 145 command.c:143 script_debug(): command - ocd_pld ocd_pld init
Debug: 284 147 pld.c:205 handle_pld_init_command(): Initializing PLDs...
Info : 285 4426 server.c:96 add_connection(): accepting 'telnet' connection
on tcp/4444
Debug: 286 14310 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_reset halt
Debug: 287 14310 command.c:143 script_debug(): command - reset ocd_reset
halt
Debug: 289 14312 target.c:1540 target_call_reset_callbacks(): target reset
2 (halt)
Debug: 290 14312 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_target names
Debug: 291 14312 command.c:143 script_debug(): command - ocd_target
ocd_target names
Debug: 292 14312 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_ke.cpu invoke-event reset-start
Debug: 293 14312 command.c:143 script_debug(): command - ocd_ke.cpu
ocd_ke.cpu invoke-event reset-start
Debug: 294 14312 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_transport select
Debug: 295 14312 command.c:143 script_debug(): command - ocd_transport
ocd_transport select
Debug: 296 14312 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_transport select
Debug: 297 14312 command.c:143 script_debug(): command - ocd_transport
ocd_transport select
Debug: 298 14312 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_ke.cpu invoke-event examine-start
Debug: 299 14312 command.c:143 script_debug(): command - ocd_ke.cpu
ocd_ke.cpu invoke-event examine-start
Debug: 300 14313 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_ke.cpu arp_examine allow-defer
Debug: 301 14313 command.c:143 script_debug(): command - ocd_ke.cpu
ocd_ke.cpu arp_examine allow-defer
Debug: 302 14313 arm_adi_v5.c:603 dap_dp_init():
Debug: 303 14315 arm_adi_v5.c:637 dap_dp_init(): DAP: wait CDBGPWRUPACK
Debug: 304 14315 arm_adi_v5.h:428 dap_dp_poll_register(): DAP: poll 4, mask
0x20000000, value 0x20000000
Debug: 305 14317 arm_adi_v5.c:644 dap_dp_init(): DAP: wait CSYSPWRUPACK
Debug: 306 14317 arm_adi_v5.h:428 dap_dp_poll_register(): DAP: poll 4, mask
0x80000000, value 0x80000000
Debug: 307 14319 cmsis_dap_usb.c:639 cmsis_dap_swd_run_queue(): refusing to
enable sticky overrun detection
Debug: 308 14323 arm_adi_v5.c:785 dap_find_ap(): Found AHB-AP at AP index:
0 (IDR=0x04770031)
Debug: 309 14325 arm_adi_v5.c:712 mem_ap_init(): MEM_AP Packed Transfers:
disabled
Debug: 310 14325 arm_adi_v5.c:723 mem_ap_init(): MEM_AP CFG: large data 0,
long address 0, big-endian 0
Debug: 311 14325 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_ke.cpu invoke-event examine-end
Debug: 312 14325 command.c:143 script_debug(): command - ocd_ke.cpu
ocd_ke.cpu invoke-event examine-end
Debug: 313 14325 target.c:4429 target_handle_event(): target: (0) ke.cpu
(cortex_m) event: 22 (examine-end) action:
kinetis_ke mdm check_security
Debug: 314 14325 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_kinetis_ke mdm check_security
Debug: 315 14325 command.c:143 script_debug(): command - ocd_kinetis_ke
ocd_kinetis_ke mdm check_security
Debug: 317 14327 kinetis_ke.c:182 kinetis_ke_mdm_read_register():
MDM_REG[0xfc]: 001C0020
Debug: 318 14329 kinetis_ke.c:182 kinetis_ke_mdm_read_register():
MDM_REG[0x00]: 0001000A
Debug: 319 14331 kinetis_ke.c:182 kinetis_ke_mdm_read_register():
MDM_REG[0x00]: 0001000A
Info : 320 14331 kinetis_ke.c:650 kinetis_ke_check_flash_security_status():
MDM: Chip is unsecured. Continuing.
Debug: 321 14331 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_ke.cpu invoke-event reset-assert-pre
Debug: 322 14331 command.c:143 script_debug(): command - ocd_ke.cpu
ocd_ke.cpu invoke-event reset-assert-pre
Debug: 323 14331 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_transport select
Debug: 324 14331 command.c:143 script_debug(): command - ocd_transport
ocd_transport select
Debug: 325 14331 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_ke.cpu arp_reset assert 1
Debug: 326 14331 command.c:143 script_debug(): command - ocd_ke.cpu
ocd_ke.cpu arp_reset assert 1
Debug: 327 14331 target.c:1920 target_free_all_working_areas_restore():
freeing all working areas
Debug: 328 14331 cortex_m.c:965 cortex_m_assert_reset(): target->state:
halted
Debug: 329 14335 cortex_m.c:1057 cortex_m_assert_reset(): Using Cortex-M
SYSRESETREQ
Debug: 330 14337 arm_adi_v5.c:603 dap_dp_init():
Debug: 331 14339 arm_adi_v5.c:637 dap_dp_init(): DAP: wait CDBGPWRUPACK
Debug: 332 14339 arm_adi_v5.h:428 dap_dp_poll_register(): DAP: poll 4, mask
0x20000000, value 0x20000000
Debug: 333 14341 arm_adi_v5.c:644 dap_dp_init(): DAP: wait CSYSPWRUPACK
Debug: 334 14341 arm_adi_v5.h:428 dap_dp_poll_register(): DAP: poll 4, mask
0x80000000, value 0x80000000
Debug: 335 14343 cmsis_dap_usb.c:639 cmsis_dap_swd_run_queue(): refusing to
enable sticky overrun detection
Debug: 336 14347 cortex_m.c:583 cortex_m_halt(): target->state: reset
Debug: 337 14347 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_ke.cpu invoke-event reset-assert-post
Debug: 338 14347 command.c:143 script_debug(): command - ocd_ke.cpu
ocd_ke.cpu invoke-event reset-assert-post
Debug: 339 14347 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_ke.cpu invoke-event reset-deassert-pre
Debug: 340 14347 command.c:143 script_debug(): command - ocd_ke.cpu
ocd_ke.cpu invoke-event reset-deassert-pre
Debug: 341 14347 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_transport select
Debug: 342 14347 command.c:143 script_debug(): command - ocd_transport
ocd_transport select
Debug: 343 14347 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_ke.cpu arp_reset deassert 1
Debug: 344 14347 command.c:143 script_debug(): command - ocd_ke.cpu
ocd_ke.cpu arp_reset deassert 1
Debug: 345 14347 target.c:1920 target_free_all_working_areas_restore():
freeing all working areas
Debug: 346 14347 cortex_m.c:1108 cortex_m_deassert_reset(): target->state:
reset
Debug: 347 14400 core.c:647 swd_add_reset(): SRST line released
Debug: 348 14400 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_ke.cpu invoke-event reset-deassert-post
Debug: 349 14400 command.c:143 script_debug(): command - ocd_ke.cpu
ocd_ke.cpu invoke-event reset-deassert-post
Debug: 350 14400 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_transport select
Debug: 351 14400 command.c:143 script_debug(): command - ocd_transport
ocd_transport select
Debug: 352 14400 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_ke.cpu was_examined
Debug: 353 14400 command.c:143 script_debug(): command - ocd_ke.cpu
ocd_ke.cpu was_examined
Debug: 354 14400 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_ke.cpu arp_waitstate halted 1000
Debug: 355 14400 command.c:143 script_debug(): command - ocd_ke.cpu
ocd_ke.cpu arp_waitstate halted 1000
Debug: 356 14402 target.c:2905 target_wait_state(): waiting for target
halted...
Debug: 357 14404 cortex_m.c:529 cortex_m_poll(): Exit from reset with
dcb_dhcsr 0x30003
Debug: 358 14406 cortex_m.c:233 cortex_m_endreset_event(): DCB_DEMCR =
0x01000401
Debug: 359 14410 target.c:2350 target_write_u32(): address: 0xe0002000,
value: 0x00000003
Debug: 360 14414 target.c:2262 target_read_u32(): address: 0xe0002000,
value: 0x00000021
Debug: 361 14414 target.c:2350 target_write_u32(): address: 0xe0002008,
value: 0x00000000
Debug: 362 14416 target.c:2350 target_write_u32(): address: 0xe000200c,
value: 0x00000000
Debug: 363 14418 target.c:2350 target_write_u32(): address: 0xe0001020,
value: 0x00000000
Debug: 364 14420 target.c:2350 target_write_u32(): address: 0xe0001024,
value: 0x00000000
Debug: 365 14422 target.c:2350 target_write_u32(): address: 0xe0001028,
value: 0x00000000
Debug: 366 14424 target.c:2350 target_write_u32(): address: 0xe0001030,
value: 0x00000000
Debug: 367 14426 target.c:2350 target_write_u32(): address: 0xe0001034,
value: 0x00000000
Debug: 368 14428 target.c:2350 target_write_u32(): address: 0xe0001038,
value: 0x00000000
Debug: 369 14432 cortex_m.c:413 cortex_m_debug_entry():
Debug: 370 14438 cortex_m.c:162 cortex_m_clear_halt(): NVIC_DFSR 0x9
Debug: 371 14442 cortex_m.c:1515 cortex_m_load_core_reg_u32(): load from
core reg 0 value 0x16000000
Debug: 372 14444 cortex_m.c:1515 cortex_m_load_core_reg_u32(): load from
core reg 1 value 0x800000
Debug: 373 14446 cortex_m.c:1515 cortex_m_load_core_reg_u32(): load from
core reg 2 value 0x8000000
Debug: 374 14448 cortex_m.c:1515 cortex_m_load_core_reg_u32(): load from
core reg 3 value 0x2480000
Debug: 375 14450 cortex_m.c:1515 cortex_m_load_core_reg_u32(): load from
core reg 4 value 0xe012004
Debug: 376 14452 cortex_m.c:1515 cortex_m_load_core_reg_u32(): load from
core reg 5 value 0x1c80000
Debug: 377 14454 cortex_m.c:1515 cortex_m_load_core_reg_u32(): load from
core reg 6 value 0x10004800
Debug: 378 14456 cortex_m.c:1515 cortex_m_load_core_reg_u32(): load from
core reg 7 value 0x28020800
Debug: 379 14458 cortex_m.c:1515 cortex_m_load_core_reg_u32(): load from
core reg 8 value 0x42100040
Debug: 380 14460 cortex_m.c:1515 cortex_m_load_core_reg_u32(): load from
core reg 9 value 0x2001400
Debug: 381 14462 cortex_m.c:1515 cortex_m_load_core_reg_u32(): load from
core reg 10 value 0x84200000
Debug: 382 14464 cortex_m.c:1515 cortex_m_load_core_reg_u32(): load from
core reg 11 value 0xc41000
Debug: 383 14466 cortex_m.c:1515 cortex_m_load_core_reg_u32(): load from
core reg 12 value 0x600808
Debug: 384 14468 cortex_m.c:1515 cortex_m_load_core_reg_u32(): load from
core reg 13 value 0xfffffffc
Debug: 385 14470 cortex_m.c:1515 cortex_m_load_core_reg_u32(): load from
core reg 14 value 0xfffffff9
Debug: 386 14472 cortex_m.c:1515 cortex_m_load_core_reg_u32(): load from
core reg 15 value 0xfffffffe
Debug: 387 14474 cortex_m.c:1515 cortex_m_load_core_reg_u32(): load from
core reg 16 value 0x1000000
Debug: 388 14476 cortex_m.c:1515 cortex_m_load_core_reg_u32(): load from
core reg 17 value 0xfffffffc
Debug: 389 14478 cortex_m.c:1515 cortex_m_load_core_reg_u32(): load from
core reg 18 value 0x4008200
Debug: 390 14480 cortex_m.c:1569 cortex_m_load_core_reg_u32(): load from
special reg 19 value 0x0
Debug: 391 14482 cortex_m.c:1569 cortex_m_load_core_reg_u32(): load from
special reg 20 value 0x0
Debug: 392 14484 cortex_m.c:1569 cortex_m_load_core_reg_u32(): load from
special reg 21 value 0x0
Debug: 393 14486 cortex_m.c:1569 cortex_m_load_core_reg_u32(): load from
special reg 22 value 0x0
Debug: 394 14486 cortex_m.c:473 cortex_m_debug_entry(): entered debug state
in core mode: Thread at PC 0xfffffffe, target->state: halted
Debug: 395 14486 target.c:1522 target_call_event_callbacks(): target event
0 (gdb-halt)
Debug: 396 14486 target.c:1522 target_call_event_callbacks(): target event
1 (halted)
User : 397 14486 armv7m.c:556 armv7m_arch_state(): target halted due to
debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc
Debug: 398 14486 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_ke.cpu curstate
Debug: 399 14486 command.c:143 script_debug(): command - ocd_ke.cpu
ocd_ke.cpu curstate
Debug: 400 14486 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_ke.cpu invoke-event reset-end
Debug: 401 14486 command.c:143 script_debug(): command - ocd_ke.cpu
ocd_ke.cpu invoke-event reset-end
Debug: 402 25942 command.c:143 script_debug(): command - ocd_command
ocd_command type ocd_flash banks
Debug: 403 25942 command.c:143 script_debug(): command - ocd_flash
ocd_flash banks
User : 405 25944 tcl.c:1117 handle_flash_banks_command(): #0 : ke.flash
(kinetis_ke) at 0x00000000, size 0x00000000, buswidth 0, chipwidth 0
On Mon, Sep 25, 2017 at 12:27 PM, David 'Miller' Lowe <mi...@gm...>
wrote:
> $ openocd -d3 -f interface/cmsis-dap.cfg -f target/ke0x.cfg -c "init" -c
> "reset halt" -c "flash banks"
> Open On-Chip Debugger 0.10.0+dev-00173-g496fcfd (2017-09-25-11:01)
> Licensed under GNU GPL v2
> For bug reports, read
> http://openocd.org/doc/doxygen/bugs.html
> User : 13 2 command.c:544 command_print(): debug_level: 3
> Debug: 14 3 options.c:181 add_default_dirs(): bindir=/usr/local/bin
> Debug: 15 3 options.c:182 add_default_dirs(): pkgdatadir=/usr/local/share/
> openocd
> Debug: 16 3 options.c:183 add_default_dirs(): exepath=/usr/local/bin
> Debug: 17 3 options.c:184 add_default_dirs(): bin2data=../share/openocd
> Debug: 18 3 configuration.c:42 add_script_search_dir(): adding
> /home/miller/.openocd
> Debug: 19 3 configuration.c:42 add_script_search_dir(): adding
> /usr/local/bin/../share/openocd/site
> Debug: 20 3 configuration.c:42 add_script_search_dir(): adding
> /usr/local/bin/../share/openocd/scripts
> Debug: 21 3 configuration.c:82 find_file(): found /usr/local/bin/../share/
> openocd/scripts/interface/cmsis-dap.cfg
> Debug: 22 3 command.c:143 script_debug(): command - ocd_command
> ocd_command type ocd_interface cmsis-dap
> Debug: 23 3 command.c:143 script_debug(): command - interface
> ocd_interface cmsis-dap
> Debug: 25 3 command.c:364 register_command_handler(): registering
> 'ocd_cmsis-dap'...
> Debug: 26 3 command.c:364 register_command_handler(): registering
> 'ocd_cmsis_dap_vid_pid'...
> Debug: 27 3 command.c:364 register_command_handler(): registering
> 'ocd_cmsis_dap_serial'...
> Debug: 28 3 configuration.c:82 find_file(): found /usr/local/bin/../share/
> openocd/scripts/target/ke0x.cfg
> Debug: 29 3 configuration.c:82 find_file(): found /usr/local/bin/../share/
> openocd/scripts/target/swj-dp.tcl
> Debug: 30 3 command.c:143 script_debug(): command - ocd_command
> ocd_command type ocd_transport select
> Debug: 31 3 command.c:143 script_debug(): command - ocd_transport
> ocd_transport select
> Info : 32 3 transport.c:286 jim_transport_select(): auto-selecting first
> available session transport "swd". To override use 'transport select
> <transport>'.
> Debug: 33 3 command.c:323 command_new(): BUG: command 'swd' does not have
> the '.usage' field filled out
> Debug: 34 3 command.c:364 register_command_handler(): registering
> 'ocd_swd'...
> Debug: 35 3 command.c:143 script_debug(): command - ocd_command
> ocd_command type ocd_transport select
> Debug: 36 4 command.c:143 script_debug(): command - ocd_transport
> ocd_transport select
> Debug: 37 4 command.c:143 script_debug(): command - ocd_command
> ocd_command type ocd_transport select
> Debug: 38 4 command.c:143 script_debug(): command - ocd_transport
> ocd_transport select
> Debug: 39 4 command.c:143 script_debug(): command - ocd_command
> ocd_command type ocd_transport select
> Debug: 40 4 command.c:143 script_debug(): command - ocd_transport
> ocd_transport select
> Debug: 41 4 command.c:143 script_debug(): command - ocd_command
> ocd_command type ocd_swd newdap ke cpu -irlen 4 -ircapture 0x1 -irmask 0xf
> -expected-id 0x0bc11477
> Debug: 42 4 command.c:143 script_debug(): command - ocd_swd ocd_swd newdap
> ke cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x0bc11477
> Debug: 43 4 tcl.c:549 jim_newtap_cmd(): Creating New Tap, Chip: ke, Tap:
> cpu, Dotted: ke.cpu, 8 params
> Debug: 44 4 core.c:1304 jtag_tap_init(): Created Tap: ke.cpu @ abs
> position 0, irlen 0, capture: 0x0 mask: 0x0
> Debug: 45 4 command.c:143 script_debug(): command - ocd_command
> ocd_command type ocd_target create ke.cpu cortex_m -chain-position ke.cpu
> Debug: 46 4 command.c:143 script_debug(): command - ocd_target ocd_target
> create ke.cpu cortex_m -chain-position ke.cpu
> Debug: 47 4 target.c:1920 target_free_all_working_areas_restore():
> freeing all working areas
> Debug: 48 4 command.c:364 register_command_handler(): registering
> 'ocd_arm'...
> Debug: 49 4 command.c:364 register_command_handler(): registering
> 'ocd_arm'...
> Debug: 50 4 command.c:364 register_command_handler(): registering
> 'ocd_arm'...
> Debug: 51 4 command.c:364 register_command_handler(): registering
> 'ocd_arm'...
> Debug: 52 4 command.c:364 register_command_handler(): registering
> 'ocd_arm'...
> Debug: 53 4 command.c:364 register_command_handler(): registering
> 'ocd_arm'...
> Debug: 54 4 command.c:364 register_command_handler(): registering
> 'ocd_arm'...
> Debug: 55 4 command.c:364 register_command_handler(): registering
> 'ocd_dap'...
> Debug: 56 4 command.c:364 register_command_handler(): registering
> 'ocd_dap'...
> Debug: 57 4 command.c:364 register_command_handler(): registering
> 'ocd_dap'...
> Debug: 58 4 command.c:364 register_command_handler(): registering
> 'ocd_dap'...
> Debug: 59 4 command.c:364 register_command_handler(): registering
> 'ocd_dap'...
> Debug: 60 4 command.c:364 register_command_handler(): registering
> 'ocd_dap'...
> Debug: 61 4 command.c:364 register_command_handler(): registering
> 'ocd_dap'...
> Debug: 62 4 command.c:364 register_command_handler(): registering
> 'ocd_dap'...
> Debug: 63 4 command.c:364 register_command_handler(): registering
> 'ocd_tpiu'...
> Debug: 64 4 command.c:364 register_command_handler(): registering
> 'ocd_itm'...
> Debug: 65 4 command.c:364 register_command_handler(): registering
> 'ocd_itm'...
> Debug: 66 4 command.c:364 register_command_handler(): registering
> 'ocd_cortex_m'...
> Debug: 67 4 command.c:364 register_command_handler(): registering
> 'ocd_cortex_m'...
> Debug: 68 4 command.c:364 register_command_handler(): registering
> 'ocd_cortex_m'...
> Debug: 69 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 70 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 71 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 72 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 73 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 74 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 75 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 76 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 77 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 78 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 79 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 80 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 81 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 82 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 83 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 84 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 85 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 86 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 87 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 88 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 89 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 90 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 91 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 92 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 93 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 94 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 95 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 96 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 97 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 98 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 99 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 100 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 101 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 102 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 103 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 104 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 105 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 106 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 107 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 108 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 109 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 110 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 111 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 112 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 113 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 114 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 115 5 command.c:364 register_command_handler(): registering
> 'ocd_ke.cpu'...
> Debug: 116 5 command.c:143 script_debug(): command - ocd_command
> ocd_command type ocd_ke.cpu configure -work-area-phys 0x20000000
> -work-area-size 0x400 -work-area-backup 0
> Debug: 117 5 command.c:143 script_debug(): command - ocd_ke.cpu ocd_ke.cpu
> configure -work-area-phys 0x20000000 -work-area-size 0x400
> -work-area-backup 0
> Debug: 118 5 target.c:1920 target_free_all_working_areas_restore():
> freeing all working areas
> Debug: 119 5 target.c:1920 target_free_all_working_areas_restore():
> freeing all working areas
> Debug: 120 5 target.c:1920 target_free_all_working_areas_restore():
> freeing all working areas
> Debug: 121 5 command.c:143 script_debug(): command - ocd_command
> ocd_command type ocd_flash bank ke.flash kinetis_ke 0 0 0 0 ke.cpu
> Debug: 122 5 command.c:143 script_debug(): command - ocd_flash ocd_flash
> bank ke.flash kinetis_ke 0 0 0 0 ke.cpu
> Debug: 124 5 command.c:364 register_command_handler(): registering
> 'ocd_kinetis_ke'...
> Debug: 125 6 command.c:364 register_command_handler(): registering
> 'ocd_kinetis_ke'...
> Debug: 126 6 command.c:364 register_command_handler(): registering
> 'ocd_kinetis_ke'...
> Debug: 127 6 command.c:364 register_command_handler(): registering
> 'ocd_kinetis_ke'...
> Debug: 128 6 command.c:364 register_command_handler(): registering
> 'ocd_kinetis_ke'...
> Info : 129 6 kinetis_ke.c:669 kinetis_ke_flash_bank_command(): add
> flash_bank kinetis_ke ke.flash
> Debug: 130 6 tcl.c:1100 handle_flash_bank_command(): 'kinetis_ke' driver
> usage field missing
> Debug: 131 6 command.c:143 script_debug(): command - ocd_command
> ocd_command type ocd_adapter_khz 1000
> Debug: 132 6 command.c:143 script_debug(): command - adapter_khz
> ocd_adapter_khz 1000
> Debug: 134 6 core.c:1631 jtag_config_khz(): handle jtag khz
> Debug: 135 6 core.c:1598 adapter_khz_to_speed(): convert khz to interface
> specific speed value
> Debug: 136 6 core.c:1598 adapter_khz_to_speed(): convert khz to interface
> specific speed value
> User : 137 6 command.c:544 command_print(): adapter speed: 1000 kHz
> Debug: 138 6 command.c:143 script_debug(): command - ocd_command
> ocd_command type ocd_reset_config srst_nogate
> Debug: 139 6 command.c:143 script_debug(): command - reset_config
> ocd_reset_config srst_nogate
> User : 141 6 command.c:544 command_print(): none separate
> Debug: 142 6 command.c:143 script_debug(): command - ocd_command
> ocd_command type ocd_transport select
> Debug: 143 6 command.c:143 script_debug(): command - ocd_transport
> ocd_transport select
> Debug: 144 6 command.c:143 script_debug(): command - ocd_command
> ocd_command type ocd_ke.cpu configure -event examine-end
> kinetis_ke mdm check_security
>
> Debug: 145 6 command.c:143 script_debug(): command - ocd_ke.cpu ocd_ke.cpu
> configure -event examine-end
> kinetis_ke mdm check_security
>
> Debug: 146 6 command.c:143 script_debug(): command - ocd_command
> ocd_command type ocd_cortex_m reset_config sysresetreq
> Debug: 147 6 command.c:143 script_debug(): command - ocd_cortex_m
> ocd_cortex_m reset_config sysresetreq
> User : 149 6 command.c:544 command_print(): cortex_m reset_config
> sysresetreq
> Debug: 150 6 command.c:143 script_debug(): command - ocd_command
> ocd_command type ocd_init
> Debug: 151 6 command.c:143 script_debug(): command - init ocd_init
> Debug: 153 6 command.c:143 script_debug(): command - ocd_command
> ocd_command type ocd_target init
> Debug: 154 6 command.c:143 script_debug(): command - ocd_target ocd_target
> init
> Debug: 156 6 command.c:143 script_debug(): command - ocd_command
> ocd_command type ocd_target names
> Debug: 157 6 command.c:143 script_debug(): command - ocd_target ocd_target
> names
> Debug: 158 6 command.c:143 script_debug(): command - ocd_command
> ocd_command type ocd_ke.cpu cget -event gdb-flash-erase-start
> Debug: 159 6 command.c:143 script_debug(): command - ocd_ke.cpu ocd_ke.cpu
> cget -event gdb-flash-erase-start
> Debug: 160 6 command.c:143 script_debug(): command - ocd_command
> ocd_command type ocd_ke.cpu configure -event gdb-flash-erase-start reset
> init
> Debug: 161 6 command.c:143 script_debug(): command - ocd_ke.cpu ocd_ke.cpu
> configure -event gdb-flash-erase-start reset init
> Debug: 162 6 command.c:143 script_debug(): command - ocd_command
> ocd_command type ocd_ke.cpu cget -event gdb-flash-write-end
> Debug: 163 6 command.c:143 script_debug(): command - ocd_ke.cpu ocd_ke.cpu
> cget -event gdb-flash-write-end
> Debug: 164 6 command.c:143 script_debug(): command - ocd_command
> ocd_command type ocd_ke.cpu configure -event gdb-flash-write-end reset halt
> Debug: 165 6 command.c:143 script_debug(): command - ocd_ke.cpu ocd_ke.cpu
> configure -event gdb-flash-write-end reset halt
> Debug: 166 7 target.c:1329 handle_target_init_command(): Initializing
> targets...
> Debug: 167 7 command.c:364 register_command_handler(): registering
> 'ocd_target_request'...
> Debug: 168 7 command.c:364 register_command_handler(): registering
> 'ocd_trace'...
> Debug: 169 7 command.c:364 register_command_handler(): registering
> 'ocd_trace'...
> Debug: 170 7 command.c:364 register_command_handler(): registering
> 'ocd_fast_load_image'...
> Debug: 171 7 command.c:364 register_command_handler(): registering
> 'ocd_fast_load'...
> Debug: 172 7 command.c:364 register_command_handler(): registering
> 'ocd_profile'...
> Debug: 173 7 command.c:364 register_command_handler(): registering
> 'ocd_virt2phys'...
> Debug: 174 7 command.c:364 register_command_handler(): registering
> 'ocd_reg'...
> Debug: 175 7 command.c:364 register_command_handler(): registering
> 'ocd_poll'...
> Debug: 176 7 command.c:364 register_command_handler(): registering
> 'ocd_wait_halt'...
> Debug: 177 7 command.c:364 register_command_handler(): registering
> 'ocd_halt'...
> Debug: 178 7 command.c:364 register_command_handler(): registering
> 'ocd_resume'...
> Debug: 179 7 command.c:364 register_command_handler(): registering
> 'ocd_reset'...
> Debug: 180 7 command.c:364 register_command_handler(): registering
> 'ocd_soft_reset_halt'...
> Debug: 181 7 command.c:364 register_command_handler(): registering
> 'ocd_step'...
> Debug: 182 7 command.c:364 register_command_handler(): registering
> 'ocd_mdd'...
> Debug: 183 7 command.c:364 register_command_handler(): registering
> 'ocd_mdw'...
> Debug: 184 7 command.c:364 register_command_handler(): registering
> 'ocd_mdh'...
> Debug: 185 7 command.c:364 register_command_handler(): registering
> 'ocd_mdb'...
> Debug: 186 7 command.c:364 register_command_handler(): registering
> 'ocd_mwd'...
> Debug: 187 7 command.c:364 register_command_handler(): registering
> 'ocd_mww'...
> Debug: 188 7 command.c:364 register_command_handler(): registering
> 'ocd_mwh'...
> Debug: 189 7 command.c:364 register_command_handler(): registering
> 'ocd_mwb'...
> Debug: 190 7 command.c:364 register_command_handler(): registering
> 'ocd_bp'...
> Debug: 191 7 command.c:364 register_command_handler(): registering
> 'ocd_rbp'...
> Debug: 192 7 command.c:364 register_command_handler(): registering
> 'ocd_wp'...
> Debug: 193 7 command.c:364 register_command_handler(): registering
> 'ocd_rwp'...
> Debug: 194 7 command.c:364 register_command_handler(): registering
> 'ocd_load_image'...
> Debug: 195 7 command.c:364 register_command_handler(): registering
> 'ocd_dump_image'...
> Debug: 196 7 command.c:364 register_command_handler(): registering
> 'ocd_verify_image_checksum'...
> Debug: 197 7 command.c:364 register_command_handler(): registering
> 'ocd_verify_image'...
> Debug: 198 7 command.c:364 register_command_handler(): registering
> 'ocd_test_image'...
> Debug: 199 7 command.c:364 register_command_handler(): registering
> 'ocd_reset_nag'...
> Debug: 200 7 command.c:364 register_command_handler(): registering
> 'ocd_ps'...
> Debug: 201 7 command.c:364 register_command_handler(): registering
> 'ocd_test_mem_access'...
> Info : 202 70 cmsis_dap_usb.c:760 cmsis_dap_get_caps_info(): CMSIS-DAP:
> SWD Supported
> Info : 203 70 cmsis_dap_usb.c:762 cmsis_dap_get_caps_info(): CMSIS-DAP:
> JTAG Supported
> Info : 204 72 cmsis_dap_usb.c:859 cmsis_dap_swd_open(): CMSIS-DAP:
> Interface Initialised (SWD)
> Info : 205 74 cmsis_dap_usb.c:740 cmsis_dap_get_version_info(): CMSIS-DAP:
> FW Version = 1.0
> Debug: 206 76 cmsis_dap_usb.c:931 cmsis_dap_init(): CMSIS-DAP: Packet Size
> = 64
> Debug: 207 78 cmsis_dap_usb.c:942 cmsis_dap_init(): CMSIS-DAP: Packet
> Count = 8
> Info : 208 80 cmsis_dap_usb.c:781 cmsis_dap_get_status(): SWCLK/TCK = 1
> SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 0 nRESET = 1
> Info : 209 90 cmsis_dap_usb.c:985 cmsis_dap_init(): CMSIS-DAP: Interface
> ready
> Debug: 210 90 core.c:1598 adapter_khz_to_speed(): convert khz to interface
> specific speed value
> Debug: 211 90 core.c:1601 adapter_khz_to_speed(): have interface set up
> Debug: 212 92 core.c:1598 adapter_khz_to_speed(): convert khz to interface
> specific speed value
> Debug: 213 92 core.c:1601 adapter_khz_to_speed(): have interface set up
> Info : 214 92 core.c:1386 adapter_init(): clock speed 1000 kHz
> Debug: 215 92 openocd.c:140 handle_init_command(): Debug Adapter init
> complete
> Debug: 216 92 command.c:143 script_debug(): command - ocd_command
> ocd_command type ocd_transport init
> Debug: 217 92 command.c:143 script_debug(): command - ocd_transport
> ocd_transport init
> Debug: 219 92 transport.c:239 handle_transport_init():
> handle_transport_init
> Debug: 220 96 cmsis_dap_usb.c:810 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
> Info : 221 102 adi_v5_swd.c:137 swd_connect(): SWD DPIDR 0x0bc11477
> Debug: 222 102 openocd.c:153 handle_init_command(): Examining targets...
> Debug: 223 102 target.c:1522 target_call_event_callbacks(): target event
> 21 (examine-start)
> Debug: 224 102 arm_adi_v5.c:603 dap_dp_init():
> Debug: 225 104 arm_adi_v5.c:637 dap_dp_init(): DAP: wait CDBGPWRUPACK
> Debug: 226 104 arm_adi_v5.h:428 dap_dp_poll_register(): DAP: poll 4, mask
> 0x20000000, value 0x20000000
> Debug: 227 106 arm_adi_v5.c:644 dap_dp_init(): DAP: wait CSYSPWRUPACK
> Debug: 228 106 arm_adi_v5.h:428 dap_dp_poll_register(): DAP: poll 4, mask
> 0x80000000, value 0x80000000
> Debug: 229 108 cmsis_dap_usb.c:639 cmsis_dap_swd_run_queue(): refusing to
> enable sticky overrun detection
> Debug: 230 112 arm_adi_v5.c:785 dap_find_ap(): Found AHB-AP at AP index: 0
> (IDR=0x04770031)
> Debug: 231 114 arm_adi_v5.c:712 mem_ap_init(): MEM_AP Packed Transfers:
> disabled
> Debug: 232 114 arm_adi_v5.c:723 mem_ap_init(): MEM_AP CFG: large data 0,
> long address 0, big-endian 0
> Debug: 233 116 target.c:2262 target_read_u32(): address: 0xe000ed00,
> value: 0x410cc600
> Debug: 234 116 cortex_m.c:1947 cortex_m_examine(): Cortex-M0 r0p0
> processor detected
> Debug: 235 116 cortex_m.c:1955 cortex_m_examine(): cpuid: 0x410cc600
> Debug: 236 116 target.c:2350 target_write_u32(): address: 0xe000edfc,
> value: 0x01000000
> Debug: 237 120 target.c:2262 target_read_u32(): address: 0xe0002000,
> value: 0x00000021
> Debug: 238 120 target.c:2350 target_write_u32(): address: 0xe0002008,
> value: 0x00000000
> Debug: 239 122 target.c:2350 target_write_u32(): address: 0xe000200c,
> value: 0x00000000
> Debug: 240 124 cortex_m.c:2046 cortex_m_examine(): FPB fpcr 0x21, numcode
> 2, numlit 0
> Debug: 241 126 target.c:2262 target_read_u32(): address: 0xe0001000,
> value: 0x20000000
> Debug: 242 126 target.c:2350 target_write_u32(): address: 0xe0001028,
> value: 0x00000000
> Debug: 243 128 target.c:2350 target_write_u32(): address: 0xe0001038,
> value: 0x00000000
> Debug: 244 130 cortex_m.c:1857 cortex_m_dwt_setup(): DWT dwtcr 0x20000000,
> comp 2, watch/trigger
> Info : 245 130 cortex_m.c:2056 cortex_m_examine(): ke.cpu: hardware has 2
> breakpoints, 2 watchpoints
> Debug: 246 130 target.c:1522 target_call_event_callbacks(): target event
> 22 (examine-end)
> Debug: 247 130 target.c:4429 target_handle_event(): target: (0) ke.cpu
> (cortex_m) event: 22 (examine-end) action:
> kinetis_ke mdm check_security
>
> Debug: 248 130 command.c:143 script_debug(): command - ocd_command
> ocd_command type ocd_kinetis_ke mdm check_security
> Debug: 249 130 command.c:143 script_debug(): command - ocd_kinetis_ke
> ocd_kinetis_ke mdm check_security
> Debug: 251 134 kinetis_ke.c:182 kinetis_ke_mdm_read_register():
> MDM_REG[0xfc]: 001C0020
> Debug: 252 136 kinetis_ke.c:182 kinetis_ke_mdm_read_register():
> MDM_REG[0x00]: 0001000A
> Debug: 253 138 kinetis_ke.c:182 kinetis_ke_mdm_read_register():
> MDM_REG[0x00]: 0001000A
> Info : 254 138 kinetis_ke.c:650 kinetis_ke_check_flash_security_status():
> MDM: Chip is unsecured. Continuing.
> Debug: 255 138 command.c:143 script_debug(): command - ocd_command
> ocd_command type ocd_flash init
> Debug: 256 138 command.c:143 script_debug(): command - ocd_flash ocd_flash
> init
> Debug: 258 140 tcl.c:1166 handle_flash_init_command(): Initializing flash
> devices...
> Debug: 259 140 command.c:364 register_command_handler(): registering
> 'ocd_flash'...
> Debug: 260 140 command.c:364 register_command_handler(): registering
> 'ocd_flash'...
> Debug: 261 140 command.c:364 register_command_handler(): registering
> 'ocd_flash'...
> Debug: 262 140 command.c:364 register_command_handler(): registering
> 'ocd_flash'...
> Debug: 263 140 command.c:364 register_command_handler(): registering
> 'ocd_flash'...
> Debug: 264 140 command.c:364 register_command_handler(): registering
> 'ocd_flash'...
> Debug: 265 140 command.c:364 register_command_handler(): registering
> 'ocd_flash'...
> Debug: 266 140 command.c:364 register_command_handler(): registering
> 'ocd_flash'...
> Debug: 267 140 command.c:364 register_command_handler(): registering
> 'ocd_flash'...
> Debug: 268 140 command.c:364 register_command_handler(): registering
> 'ocd_flash'...
> Debug: 269 140 command.c:364 register_command_handler(): registering
> 'ocd_flash'...
> Debug: 270 140 command.c:364 register_command_handler(): registering
> 'ocd_flash'...
> Debug: 271 140 command.c:364 register_command_handler(): registering
> 'ocd_flash'...
> Debug: 272 140 command.c:364 register_command_handler(): registering
> 'ocd_flash'...
> Debug: 273 140 command.c:143 script_debug(): command - ocd_command
> ocd_command type ocd_mflash init
> Debug: 274 140 command.c:143 script_debug(): command - ocd_mflash
> ocd_mflash init
> Debug: 276 142 mflash.c:1377 handle_mflash_init_command(): Initializing
> mflash devices...
> Debug: 277 142 command.c:143 script_debug(): command - ocd_command
> ocd_command type ocd_nand init
> Debug: 278 142 command.c:143 script_debug(): command - ocd_nand ocd_nand
> init
> Debug: 280 144 tcl.c:497 handle_nand_init_command(): Initializing NAND
> devices...
> Debug: 281 144 command.c:143 script_debug(): command - ocd_command
> ocd_command type ocd_pld init
> Debug: 282 144 command.c:143 script_debug(): command - ocd_pld ocd_pld init
> Debug: 284 146 pld.c:205 handle_pld_init_command(): Initializing PLDs...
> Debug: 285 146 command.c:143 script_debug(): command - ocd_command
> ocd_command type ocd_reset halt
> Debug: 286 146 command.c:143 script_debug(): command - reset ocd_reset halt
> Debug: 288 148 target.c:1540 target_call_reset_callbacks(): target reset 2
> (halt)
> Debug: 289 148 command.c:143 script_debug(): command - ocd_command
> ocd_command type ocd_target names
> Debug: 290 148 command.c:143 script_debug(): command ...
[truncated message content] |