Hello,
On my system it is not possible to connect to target board unless I
completely remove 'Ralink_MT7650_Bluetooth-01' from Device Manager.
Here is my system:
Asus X-200LA-CT002H (notebook), OS: Windows 8.1 64 bits
Target board:
STM32F429I-DISC/ 02-0 (it is a ST Discovery board)
Also the same behavior with boards: NUCLEO-L152RE and STM32F3Discovery
(both ST)
The command line are:
c:\openocd-0.9.0_fc\bin>openocd.exe -f
c:\openocd-0.9.0_fc\scripts\board\stm32f429discovery.cfg -d 3 -l
d:\openocd_stm32f429_log.txt
(the log file is attaced)
If the Ralink_MT7650_Bluetooth-01 is present in Device Manager
function stlink_usb_open() fails (see attached log -
openocd_stm32f429_log.txt).
If I remove the Ralink_MT7650_Bluetooth-01 from Device Manager (right click
and then Unistal) I can connect to target board - see below and also the
log file openocd_stm32f429_log_ok.txt
c:\openocd-0.9.0_fc\bin>openocd.exe -f
c:\openocd-0.9.0_fc\scripts\board\stm32f429discovery.cfg
Open On-Chip Debugger 0.9.0 (2015-05-19-12:06)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : The selected transport took over low-level target control. The
results might differ compared to plain JTAG/SWD
adapter speed: 2000 kHz
adapter_nsrst_delay: 100
none separate
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : clock speed 1800 kHz
Info : STLINK v2 JTAG v17 API v2 SWIM v0 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 2.864877
Info : stm32f4x.cpu: hardware has 6 breakpoints, 4 watchpoints
This problem appears ONLY on Asus X-200LA machine. I have another laptop
also with Windows 8.1 and there I have no problem to connect to target
using above command.
Also I have a Ubuntu virtual machine on this computer. It is possible to
connect to target from Ubuntu ONLY IF 'Ralink_MT7650_Bluetooth-01' is
connected to Windows and not to Ubuntu.
Also it is not sufficient only to Disable Ralink device. OpenOCD will work
only if Ralink is not present on Device Manager.
The workaround is to remove Ralink from Device Manager after boot or if
this device appear after each USB enumeration. This is not very annoying
but maybe someone has or will have similar problem.
I suppose chances that someone to reproduce this behavior are very low
(except has the same system as me or maybe Ralink BT hardware), so I could
try to compile and debug OpenOCD on my machine.
I have MSYS2 Shell installed on my system and pkg-config-lite-0.28-1. I
need to know how to compile from MSYS2 repositories and tools to use for
debug.
For above tests I have used latest binaries from Freddie Chopin site.
Thank you,
Ciprian
Debug: 17 31 options.c:98 add_default_dirs(): bindir=bin
Debug: 18 31 options.c:99 add_default_dirs(): pkgdatadir=
Debug: 19 31 options.c:100 add_default_dirs(): run_prefix=c:/openocd-0.9.0_fc/
Debug: 20 31 configuration.c:44 add_script_search_dir(): adding
C:\Users\ciprian\AppData\Roaming/OpenOCD
Debug: 21 31 configuration.c:44 add_script_search_dir(): adding
c:/openocd-0.9.0_fc//site
Debug: 22 31 configuration.c:44 add_script_search_dir(): adding
c:/openocd-0.9.0_fc//scripts
Debug: 23 31 configuration.c:84 find_file(): found
c:\openocd-0.9.0_fc\scripts\board\stm32f429discovery.cfg
Debug: 24 31 configuration.c:84 find_file(): found
c:/openocd-0.9.0_fc//scripts/interface/stlink-v2.cfg
Debug: 25 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_interface hla
Debug: 26 31 command.c:145 script_debug(): command - interface ocd_interface hla
Debug: 28 31 command.c:366 register_command_handler(): registering
'ocd_hla_device_desc'...
Debug: 29 31 command.c:366 register_command_handler(): registering
'ocd_hla_serial'...
Debug: 30 31 command.c:366 register_command_handler(): registering
'ocd_hla_layout'...
Debug: 31 31 command.c:366 register_command_handler(): registering
'ocd_hla_vid_pid'...
Debug: 32 31 command.c:366 register_command_handler(): registering
'ocd_hla_command'...
Debug: 33 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_hla_layout stlink
Debug: 34 31 command.c:145 script_debug(): command - hla_layout ocd_hla_layout
stlink
Debug: 36 31 hla_interface.c:241 hl_interface_handle_layout_command():
hl_interface_handle_layout_command
Debug: 37 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_hla_device_desc ST-LINK/V2
Debug: 38 31 command.c:145 script_debug(): command - hla_device_desc
ocd_hla_device_desc ST-LINK/V2
Debug: 40 31 hla_interface.c:215 hl_interface_handle_device_desc_command():
hl_interface_handle_device_desc_command
Debug: 41 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_hla_vid_pid 0x0483 0x3748
Debug: 42 31 command.c:145 script_debug(): command - hla_vid_pid
ocd_hla_vid_pid 0x0483 0x3748
Debug: 44 31 hla_interface.c:269 hl_interface_handle_vid_pid_command():
hl_interface_handle_vid_pid_command
Debug: 45 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_transport select hla_swd
Debug: 46 31 command.c:145 script_debug(): command - ocd_transport
ocd_transport select hla_swd
Debug: 47 31 hla_transport.c:193 hl_transport_select(): hl_transport_select
Debug: 48 31 command.c:366 register_command_handler(): registering 'ocd_hla'...
Debug: 49 31 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 50 31 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 51 31 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 52 31 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 53 31 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 54 31 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 55 31 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 56 31 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 57 31 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 58 31 command.c:366 register_command_handler(): registering
'ocd_jtag_ntrst_delay'...
Debug: 59 31 configuration.c:84 find_file(): found
c:/openocd-0.9.0_fc//scripts/target/stm32f4x.cfg
Debug: 60 31 configuration.c:84 find_file(): found
c:/openocd-0.9.0_fc//scripts/target/swj-dp.tcl
Debug: 61 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_transport select
Debug: 62 31 command.c:145 script_debug(): command - ocd_transport
ocd_transport select
Debug: 63 31 configuration.c:84 find_file(): found
c:/openocd-0.9.0_fc//scripts/mem_helper.tcl
Debug: 64 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_add_usage_text mrw address
Debug: 65 31 command.c:145 script_debug(): command - add_usage_text
ocd_add_usage_text mrw address
Debug: 67 31 command.c:1100 help_add_command(): added 'mrw' help text
Debug: 68 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_add_help_text mrw Returns value of word in memory.
Debug: 69 31 command.c:145 script_debug(): command - add_help_text
ocd_add_help_text mrw Returns value of word in memory.
Debug: 71 31 command.c:1113 help_add_command(): added 'mrw' help text
Debug: 72 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_add_usage_text mmw address setbits clearbits
Debug: 73 31 command.c:145 script_debug(): command - add_usage_text
ocd_add_usage_text mmw address setbits clearbits
Debug: 75 31 command.c:1100 help_add_command(): added 'mmw' help text
Debug: 76 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_add_help_text mmw Modify word in memory. new_val = (old_val &
~clearbits) | setbits;
Debug: 77 31 command.c:145 script_debug(): command - add_help_text
ocd_add_help_text mmw Modify word in memory. new_val = (old_val & ~clearbits) |
setbits;
Debug: 79 31 command.c:1113 help_add_command(): added 'mmw' help text
Debug: 80 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_transport select
Debug: 81 31 command.c:145 script_debug(): command - ocd_transport
ocd_transport select
Debug: 82 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_transport select
Debug: 83 31 command.c:145 script_debug(): command - ocd_transport
ocd_transport select
Debug: 84 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_transport select
Debug: 85 31 command.c:145 script_debug(): command - ocd_transport
ocd_transport select
Debug: 86 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_transport select
Debug: 87 31 command.c:145 script_debug(): command - ocd_transport
ocd_transport select
Debug: 88 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_hla newtap stm32f4x cpu -irlen 4 -ircapture 0x1 -irmask 0xf
-expected-id 0x2ba01477
Debug: 89 31 command.c:145 script_debug(): command - ocd_hla ocd_hla newtap
stm32f4x cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x2ba01477
Debug: 90 31 hla_tcl.c:116 jim_hl_newtap_cmd(): Creating New Tap, Chip:
stm32f4x, Tap: cpu, Dotted: stm32f4x.cpu, 8 params
Debug: 91 31 hla_tcl.c:126 jim_hl_newtap_cmd(): Processing option: -irlen
Debug: 92 31 hla_tcl.c:126 jim_hl_newtap_cmd(): Processing option: -ircapture
Debug: 93 31 hla_tcl.c:126 jim_hl_newtap_cmd(): Processing option: -irmask
Debug: 94 31 hla_tcl.c:126 jim_hl_newtap_cmd(): Processing option: -expected-id
Debug: 95 31 core.c:1302 jtag_tap_init(): Created Tap: stm32f4x.cpu @ abs
position 0, irlen 0, capture: 0x0 mask: 0x0
Debug: 96 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_transport select
Debug: 97 31 command.c:145 script_debug(): command - ocd_transport
ocd_transport select
Debug: 98 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_target create stm32f4x.cpu cortex_m -endian little -chain-position
stm32f4x.cpu
Debug: 99 31 command.c:145 script_debug(): command - ocd_target ocd_target
create stm32f4x.cpu cortex_m -endian little -chain-position stm32f4x.cpu
Info : 100 31 target.c:5178 target_create(): The selected transport took over
low-level target control. The results might differ compared to plain JTAG/SWD
Debug: 101 31 target.c:1837 target_free_all_working_areas_restore(): freeing
all working areas
Debug: 102 31 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 103 31 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 104 31 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 105 31 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 106 31 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 107 31 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 108 31 command.c:366 register_command_handler(): registering
'ocd_tpiu'...
Debug: 109 31 command.c:366 register_command_handler(): registering 'ocd_itm'...
Debug: 110 31 command.c:366 register_command_handler(): registering 'ocd_itm'...
Debug: 111 31 hla_target.c:353 adapter_target_create(): adapter_target_create
Debug: 112 31 hla_target.c:324 adapter_init_arch_info(): adapter_init_arch_info
Debug: 113 31 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 114 31 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 115 31 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 116 31 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 117 31 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 118 31 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 119 31 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 120 31 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 121 31 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 122 31 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 123 31 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 124 31 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 125 31 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 126 31 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 127 31 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 128 31 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 129 31 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 130 31 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 131 31 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 132 31 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 133 31 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 134 31 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 135 31 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 136 31 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 137 31 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 138 31 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 139 31 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 140 31 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 141 31 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 142 31 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 143 31 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 144 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_stm32f4x.cpu configure -work-area-phys 0x20000000 -work-area-size
0x10000 -work-area-backup 0
Debug: 145 31 command.c:145 script_debug(): command - ocd_stm32f4x.cpu
ocd_stm32f4x.cpu configure -work-area-phys 0x20000000 -work-area-size 0x10000
-work-area-backup 0
Debug: 146 31 target.c:1837 target_free_all_working_areas_restore(): freeing
all working areas
Debug: 147 31 target.c:1837 target_free_all_working_areas_restore(): freeing
all working areas
Debug: 148 31 target.c:1837 target_free_all_working_areas_restore(): freeing
all working areas
Debug: 149 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_flash bank stm32f4x.flash stm32f2x 0 0 0 0 stm32f4x.cpu
Debug: 150 31 command.c:145 script_debug(): command - ocd_flash ocd_flash bank
stm32f4x.flash stm32f2x 0 0 0 0 stm32f4x.cpu
Debug: 152 31 command.c:366 register_command_handler(): registering
'ocd_stm32f2x'...
Debug: 153 31 command.c:366 register_command_handler(): registering
'ocd_stm32f2x'...
Debug: 154 31 command.c:366 register_command_handler(): registering
'ocd_stm32f2x'...
Debug: 155 31 tcl.c:824 handle_flash_bank_command(): 'stm32f2x' driver usage
field missing
Debug: 156 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_adapter_khz 2000
Debug: 157 31 command.c:145 script_debug(): command - adapter_khz
ocd_adapter_khz 2000
Debug: 159 31 core.c:1629 jtag_config_khz(): handle jtag khz
Debug: 160 31 core.c:1596 adapter_khz_to_speed(): convert khz to interface
specific speed value
Debug: 161 31 core.c:1596 adapter_khz_to_speed(): convert khz to interface
specific speed value
User : 162 31 command.c:546 command_print(): adapter speed: 2000 kHz
Debug: 163 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_adapter_nsrst_delay 100
Debug: 164 31 command.c:145 script_debug(): command - adapter_nsrst_delay
ocd_adapter_nsrst_delay 100
User : 166 31 command.c:546 command_print(): adapter_nsrst_delay: 100
Debug: 167 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_transport select
Debug: 168 31 command.c:145 script_debug(): command - ocd_transport
ocd_transport select
Debug: 169 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_reset_config srst_nogate
Debug: 170 31 command.c:145 script_debug(): command - reset_config
ocd_reset_config srst_nogate
User : 172 31 command.c:546 command_print(): none separate
Debug: 173 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_transport select
Debug: 174 31 command.c:145 script_debug(): command - ocd_transport
ocd_transport select
Debug: 175 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_stm32f4x.cpu configure -event examine-end
# DBGMCU_CR |= DBG_STANDBY | DBG_STOP | DBG_SLEEP
mmw 0xE0042004 0x00000007 0
# Stop watchdog counters during halt
# DBGMCU_APB1_FZ = DBG_IWDG_STOP | DBG_WWDG_STOP
mww 0xE0042008 0x00001800
Debug: 176 31 command.c:145 script_debug(): command - ocd_stm32f4x.cpu
ocd_stm32f4x.cpu configure -event examine-end
# DBGMCU_CR |= DBG_STANDBY | DBG_STOP | DBG_SLEEP
mmw 0xE0042004 0x00000007 0
# Stop watchdog counters during halt
# DBGMCU_APB1_FZ = DBG_IWDG_STOP | DBG_WWDG_STOP
mww 0xE0042008 0x00001800
Debug: 177 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_stm32f4x.cpu configure -event trace-config
# Set TRACE_IOEN; TRACE_MODE is set to async; when using sync
# change this value accordingly to configure trace pins
# assignment
mmw 0xE0042004 0x00000020 0
Debug: 178 31 command.c:145 script_debug(): command - ocd_stm32f4x.cpu
ocd_stm32f4x.cpu configure -event trace-config
# Set TRACE_IOEN; TRACE_MODE is set to async; when using sync
# change this value accordingly to configure trace pins
# assignment
mmw 0xE0042004 0x00000020 0
Debug: 179 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_reset_config srst_only
Debug: 180 31 command.c:145 script_debug(): command - reset_config
ocd_reset_config srst_only
User : 182 31 command.c:546 command_print(): srst_only separate srst_nogate
srst_open_drain connect_deassert_srst
Debug: 183 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_init
Debug: 184 31 command.c:145 script_debug(): command - init ocd_init
Debug: 186 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_target init
Debug: 187 31 command.c:145 script_debug(): command - ocd_target ocd_target init
Debug: 189 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_target names
Debug: 190 31 command.c:145 script_debug(): command - ocd_target ocd_target
names
Debug: 191 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_stm32f4x.cpu cget -event gdb-flash-erase-start
Debug: 192 31 command.c:145 script_debug(): command - ocd_stm32f4x.cpu
ocd_stm32f4x.cpu cget -event gdb-flash-erase-start
Debug: 193 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_stm32f4x.cpu configure -event gdb-flash-erase-start reset init
Debug: 194 31 command.c:145 script_debug(): command - ocd_stm32f4x.cpu
ocd_stm32f4x.cpu configure -event gdb-flash-erase-start reset init
Debug: 195 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_stm32f4x.cpu cget -event gdb-flash-write-end
Debug: 196 31 command.c:145 script_debug(): command - ocd_stm32f4x.cpu
ocd_stm32f4x.cpu cget -event gdb-flash-write-end
Debug: 197 31 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_stm32f4x.cpu configure -event gdb-flash-write-end reset halt
Debug: 198 31 command.c:145 script_debug(): command - ocd_stm32f4x.cpu
ocd_stm32f4x.cpu configure -event gdb-flash-write-end reset halt
Debug: 199 31 target.c:1313 handle_target_init_command(): Initializing
targets...
Debug: 200 31 hla_target.c:343 adapter_init_target(): adapter_init_target
Debug: 201 31 command.c:366 register_command_handler(): registering
'ocd_target_request'...
Debug: 202 31 command.c:366 register_command_handler(): registering
'ocd_trace'...
Debug: 203 31 command.c:366 register_command_handler(): registering
'ocd_trace'...
Debug: 204 31 command.c:366 register_command_handler(): registering
'ocd_fast_load_image'...
Debug: 205 31 command.c:366 register_command_handler(): registering
'ocd_fast_load'...
Debug: 206 31 command.c:366 register_command_handler(): registering
'ocd_profile'...
Debug: 207 31 command.c:366 register_command_handler(): registering
'ocd_virt2phys'...
Debug: 208 31 command.c:366 register_command_handler(): registering 'ocd_reg'...
Debug: 209 31 command.c:366 register_command_handler(): registering
'ocd_poll'...
Debug: 210 31 command.c:366 register_command_handler(): registering
'ocd_wait_halt'...
Debug: 211 31 command.c:366 register_command_handler(): registering
'ocd_halt'...
Debug: 212 46 command.c:366 register_command_handler(): registering
'ocd_resume'...
Debug: 213 46 command.c:366 register_command_handler(): registering
'ocd_reset'...
Debug: 214 46 command.c:366 register_command_handler(): registering
'ocd_soft_reset_halt'...
Debug: 215 46 command.c:366 register_command_handler(): registering
'ocd_step'...
Debug: 216 46 command.c:366 register_command_handler(): registering 'ocd_mdw'...
Debug: 217 46 command.c:366 register_command_handler(): registering 'ocd_mdh'...
Debug: 218 46 command.c:366 register_command_handler(): registering 'ocd_mdb'...
Debug: 219 46 command.c:366 register_command_handler(): registering 'ocd_mww'...
Debug: 220 46 command.c:366 register_command_handler(): registering 'ocd_mwh'...
Debug: 221 46 command.c:366 register_command_handler(): registering 'ocd_mwb'...
Debug: 222 46 command.c:366 register_command_handler(): registering 'ocd_bp'...
Debug: 223 46 command.c:366 register_command_handler(): registering 'ocd_rbp'...
Debug: 224 46 command.c:366 register_command_handler(): registering 'ocd_wp'...
Debug: 225 46 command.c:366 register_command_handler(): registering 'ocd_rwp'...
Debug: 226 46 command.c:366 register_command_handler(): registering
'ocd_load_image'...
Debug: 227 46 command.c:366 register_command_handler(): registering
'ocd_dump_image'...
Debug: 228 46 command.c:366 register_command_handler(): registering
'ocd_verify_image'...
Debug: 229 46 command.c:366 register_command_handler(): registering
'ocd_test_image'...
Debug: 230 46 command.c:366 register_command_handler(): registering
'ocd_reset_nag'...
Debug: 231 46 command.c:366 register_command_handler(): registering 'ocd_ps'...
Debug: 232 46 command.c:366 register_command_handler(): registering
'ocd_test_mem_access'...
Debug: 233 46 hla_interface.c:111 hl_interface_init(): hl_interface_init
Debug: 234 46 hla_layout.c:85 hl_layout_init(): hl_layout_init
Debug: 235 46 core.c:1596 adapter_khz_to_speed(): convert khz to interface
specific speed value
Debug: 236 46 core.c:1599 adapter_khz_to_speed(): have interface set up
Info : 237 46 stlink_usb.c:1568 stlink_speed(): Unable to match requested speed
2000 kHz, using 1800 kHz
Debug: 238 46 core.c:1596 adapter_khz_to_speed(): convert khz to interface
specific speed value
Debug: 239 46 core.c:1599 adapter_khz_to_speed(): have interface set up
Info : 240 46 stlink_usb.c:1568 stlink_speed(): Unable to match requested speed
2000 kHz, using 1800 kHz
Info : 241 46 core.c:1384 adapter_init(): clock speed 1800 kHz
Debug: 242 46 openocd.c:137 handle_init_command(): Debug Adapter init complete
Debug: 243 46 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_transport init
Debug: 244 46 command.c:145 script_debug(): command - ocd_transport
ocd_transport init
Debug: 246 46 transport.c:240 handle_transport_init(): handle_transport_init
Debug: 247 46 hla_transport.c:154 hl_transport_init(): hl_transport_init
Debug: 248 46 hla_transport.c:171 hl_transport_init(): current transport hla_swd
Debug: 249 46 hla_interface.c:44 hl_interface_open(): hl_interface_open
Debug: 250 46 hla_layout.c:42 hl_layout_open(): hl_layout_open
Debug: 251 46 stlink_usb.c:1602 stlink_usb_open(): stlink_usb_open
Debug: 252 46 stlink_usb.c:1619 stlink_usb_open(): transport: 1 vid: 0x0483
pid: 0x3748 serial:
Error: 253 46 stlink_usb.c:1632 stlink_usb_open(): open failed
Debug: 254 46 hla_layout.c:49 hl_layout_open(): failed
Debug: 255 46 command.c:628 run_command(): Command failed with error code -4
User : 256 46 command.c:689 command_run_line(): in procedure 'init'
in procedure 'ocd_bouncer'
Debug: 257 46 command.c:628 run_command(): Command failed with error code -4
User : 258 46 command.c:689 command_run_line():
Debug: 259 46 hla_interface.c:119 hl_interface_quit(): hl_interface_quit
Debug: 17 32 options.c:98 add_default_dirs(): bindir=bin
Debug: 18 32 options.c:99 add_default_dirs(): pkgdatadir=
Debug: 19 32 options.c:100 add_default_dirs(): run_prefix=c:/openocd-0.9.0_fc/
Debug: 20 32 configuration.c:44 add_script_search_dir(): adding
C:\Users\ciprian\AppData\Roaming/OpenOCD
Debug: 21 32 configuration.c:44 add_script_search_dir(): adding
c:/openocd-0.9.0_fc//site
Debug: 22 32 configuration.c:44 add_script_search_dir(): adding
c:/openocd-0.9.0_fc//scripts
Debug: 23 32 configuration.c:84 find_file(): found
c:\openocd-0.9.0_fc\scripts\board\stm32f429discovery.cfg
Debug: 24 32 configuration.c:84 find_file(): found
c:/openocd-0.9.0_fc//scripts/interface/stlink-v2.cfg
Debug: 25 32 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_interface hla
Debug: 26 32 command.c:145 script_debug(): command - interface ocd_interface hla
Debug: 28 32 command.c:366 register_command_handler(): registering
'ocd_hla_device_desc'...
Debug: 29 32 command.c:366 register_command_handler(): registering
'ocd_hla_serial'...
Debug: 30 32 command.c:366 register_command_handler(): registering
'ocd_hla_layout'...
Debug: 31 32 command.c:366 register_command_handler(): registering
'ocd_hla_vid_pid'...
Debug: 32 32 command.c:366 register_command_handler(): registering
'ocd_hla_command'...
Debug: 33 32 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_hla_layout stlink
Debug: 34 32 command.c:145 script_debug(): command - hla_layout ocd_hla_layout
stlink
Debug: 36 32 hla_interface.c:241 hl_interface_handle_layout_command():
hl_interface_handle_layout_command
Debug: 37 32 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_hla_device_desc ST-LINK/V2
Debug: 38 32 command.c:145 script_debug(): command - hla_device_desc
ocd_hla_device_desc ST-LINK/V2
Debug: 40 32 hla_interface.c:215 hl_interface_handle_device_desc_command():
hl_interface_handle_device_desc_command
Debug: 41 32 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_hla_vid_pid 0x0483 0x3748
Debug: 42 32 command.c:145 script_debug(): command - hla_vid_pid
ocd_hla_vid_pid 0x0483 0x3748
Debug: 44 32 hla_interface.c:269 hl_interface_handle_vid_pid_command():
hl_interface_handle_vid_pid_command
Debug: 45 32 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_transport select hla_swd
Debug: 46 32 command.c:145 script_debug(): command - ocd_transport
ocd_transport select hla_swd
Debug: 47 32 hla_transport.c:193 hl_transport_select(): hl_transport_select
Debug: 48 32 command.c:366 register_command_handler(): registering 'ocd_hla'...
Debug: 49 32 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 50 32 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 51 32 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 52 32 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 53 32 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 54 32 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 55 32 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 56 32 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 57 32 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 58 32 command.c:366 register_command_handler(): registering
'ocd_jtag_ntrst_delay'...
Debug: 59 32 configuration.c:84 find_file(): found
c:/openocd-0.9.0_fc//scripts/target/stm32f4x.cfg
Debug: 60 32 configuration.c:84 find_file(): found
c:/openocd-0.9.0_fc//scripts/target/swj-dp.tcl
Debug: 61 32 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_transport select
Debug: 62 32 command.c:145 script_debug(): command - ocd_transport
ocd_transport select
Debug: 63 32 configuration.c:84 find_file(): found
c:/openocd-0.9.0_fc//scripts/mem_helper.tcl
Debug: 64 32 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_add_usage_text mrw address
Debug: 65 32 command.c:145 script_debug(): command - add_usage_text
ocd_add_usage_text mrw address
Debug: 67 32 command.c:1100 help_add_command(): added 'mrw' help text
Debug: 68 32 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_add_help_text mrw Returns value of word in memory.
Debug: 69 32 command.c:145 script_debug(): command - add_help_text
ocd_add_help_text mrw Returns value of word in memory.
Debug: 71 32 command.c:1113 help_add_command(): added 'mrw' help text
Debug: 72 32 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_add_usage_text mmw address setbits clearbits
Debug: 73 32 command.c:145 script_debug(): command - add_usage_text
ocd_add_usage_text mmw address setbits clearbits
Debug: 75 32 command.c:1100 help_add_command(): added 'mmw' help text
Debug: 76 32 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_add_help_text mmw Modify word in memory. new_val = (old_val &
~clearbits) | setbits;
Debug: 77 32 command.c:145 script_debug(): command - add_help_text
ocd_add_help_text mmw Modify word in memory. new_val = (old_val & ~clearbits) |
setbits;
Debug: 79 32 command.c:1113 help_add_command(): added 'mmw' help text
Debug: 80 32 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_transport select
Debug: 81 32 command.c:145 script_debug(): command - ocd_transport
ocd_transport select
Debug: 82 32 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_transport select
Debug: 83 32 command.c:145 script_debug(): command - ocd_transport
ocd_transport select
Debug: 84 32 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_transport select
Debug: 85 32 command.c:145 script_debug(): command - ocd_transport
ocd_transport select
Debug: 86 32 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_transport select
Debug: 87 32 command.c:145 script_debug(): command - ocd_transport
ocd_transport select
Debug: 88 47 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_hla newtap stm32f4x cpu -irlen 4 -ircapture 0x1 -irmask 0xf
-expected-id 0x2ba01477
Debug: 89 47 command.c:145 script_debug(): command - ocd_hla ocd_hla newtap
stm32f4x cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x2ba01477
Debug: 90 47 hla_tcl.c:116 jim_hl_newtap_cmd(): Creating New Tap, Chip:
stm32f4x, Tap: cpu, Dotted: stm32f4x.cpu, 8 params
Debug: 91 47 hla_tcl.c:126 jim_hl_newtap_cmd(): Processing option: -irlen
Debug: 92 47 hla_tcl.c:126 jim_hl_newtap_cmd(): Processing option: -ircapture
Debug: 93 47 hla_tcl.c:126 jim_hl_newtap_cmd(): Processing option: -irmask
Debug: 94 47 hla_tcl.c:126 jim_hl_newtap_cmd(): Processing option: -expected-id
Debug: 95 47 core.c:1302 jtag_tap_init(): Created Tap: stm32f4x.cpu @ abs
position 0, irlen 0, capture: 0x0 mask: 0x0
Debug: 96 47 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_transport select
Debug: 97 47 command.c:145 script_debug(): command - ocd_transport
ocd_transport select
Debug: 98 47 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_target create stm32f4x.cpu cortex_m -endian little -chain-position
stm32f4x.cpu
Debug: 99 47 command.c:145 script_debug(): command - ocd_target ocd_target
create stm32f4x.cpu cortex_m -endian little -chain-position stm32f4x.cpu
Info : 100 47 target.c:5178 target_create(): The selected transport took over
low-level target control. The results might differ compared to plain JTAG/SWD
Debug: 101 47 target.c:1837 target_free_all_working_areas_restore(): freeing
all working areas
Debug: 102 47 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 103 47 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 104 47 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 105 47 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 106 47 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 107 47 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 108 47 command.c:366 register_command_handler(): registering
'ocd_tpiu'...
Debug: 109 47 command.c:366 register_command_handler(): registering 'ocd_itm'...
Debug: 110 47 command.c:366 register_command_handler(): registering 'ocd_itm'...
Debug: 111 47 hla_target.c:353 adapter_target_create(): adapter_target_create
Debug: 112 47 hla_target.c:324 adapter_init_arch_info(): adapter_init_arch_info
Debug: 113 47 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 114 47 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 115 47 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 116 47 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 117 47 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 118 47 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 119 47 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 120 47 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 121 47 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 122 47 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 123 47 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 124 47 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 125 47 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 126 47 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 127 47 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 128 47 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 129 47 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 130 47 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 131 47 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 132 47 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 133 47 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 134 47 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 135 47 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 136 47 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 137 47 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 138 47 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 139 47 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 140 47 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 141 47 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 142 47 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 143 47 command.c:366 register_command_handler(): registering
'ocd_stm32f4x.cpu'...
Debug: 144 47 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_stm32f4x.cpu configure -work-area-phys 0x20000000 -work-area-size
0x10000 -work-area-backup 0
Debug: 145 47 command.c:145 script_debug(): command - ocd_stm32f4x.cpu
ocd_stm32f4x.cpu configure -work-area-phys 0x20000000 -work-area-size 0x10000
-work-area-backup 0
Debug: 146 47 target.c:1837 target_free_all_working_areas_restore(): freeing
all working areas
Debug: 147 47 target.c:1837 target_free_all_working_areas_restore(): freeing
all working areas
Debug: 148 47 target.c:1837 target_free_all_working_areas_restore(): freeing
all working areas
Debug: 149 47 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_flash bank stm32f4x.flash stm32f2x 0 0 0 0 stm32f4x.cpu
Debug: 150 47 command.c:145 script_debug(): command - ocd_flash ocd_flash bank
stm32f4x.flash stm32f2x 0 0 0 0 stm32f4x.cpu
Debug: 152 47 command.c:366 register_command_handler(): registering
'ocd_stm32f2x'...
Debug: 153 47 command.c:366 register_command_handler(): registering
'ocd_stm32f2x'...
Debug: 154 47 command.c:366 register_command_handler(): registering
'ocd_stm32f2x'...
Debug: 155 47 tcl.c:824 handle_flash_bank_command(): 'stm32f2x' driver usage
field missing
Debug: 156 47 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_adapter_khz 2000
Debug: 157 47 command.c:145 script_debug(): command - adapter_khz
ocd_adapter_khz 2000
Debug: 159 47 core.c:1629 jtag_config_khz(): handle jtag khz
Debug: 160 47 core.c:1596 adapter_khz_to_speed(): convert khz to interface
specific speed value
Debug: 161 47 core.c:1596 adapter_khz_to_speed(): convert khz to interface
specific speed value
User : 162 47 command.c:546 command_print(): adapter speed: 2000 kHz
Debug: 163 47 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_adapter_nsrst_delay 100
Debug: 164 47 command.c:145 script_debug(): command - adapter_nsrst_delay
ocd_adapter_nsrst_delay 100
User : 166 47 command.c:546 command_print(): adapter_nsrst_delay: 100
Debug: 167 47 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_transport select
Debug: 168 47 command.c:145 script_debug(): command - ocd_transport
ocd_transport select
Debug: 169 47 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_reset_config srst_nogate
Debug: 170 47 command.c:145 script_debug(): command - reset_config
ocd_reset_config srst_nogate
User : 172 47 command.c:546 command_print(): none separate
Debug: 173 47 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_transport select
Debug: 174 47 command.c:145 script_debug(): command - ocd_transport
ocd_transport select
Debug: 175 47 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_stm32f4x.cpu configure -event examine-end
# DBGMCU_CR |= DBG_STANDBY | DBG_STOP | DBG_SLEEP
mmw 0xE0042004 0x00000007 0
# Stop watchdog counters during halt
# DBGMCU_APB1_FZ = DBG_IWDG_STOP | DBG_WWDG_STOP
mww 0xE0042008 0x00001800
Debug: 176 47 command.c:145 script_debug(): command - ocd_stm32f4x.cpu
ocd_stm32f4x.cpu configure -event examine-end
# DBGMCU_CR |= DBG_STANDBY | DBG_STOP | DBG_SLEEP
mmw 0xE0042004 0x00000007 0
# Stop watchdog counters during halt
# DBGMCU_APB1_FZ = DBG_IWDG_STOP | DBG_WWDG_STOP
mww 0xE0042008 0x00001800
Debug: 177 47 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_stm32f4x.cpu configure -event trace-config
# Set TRACE_IOEN; TRACE_MODE is set to async; when using sync
# change this value accordingly to configure trace pins
# assignment
mmw 0xE0042004 0x00000020 0
Debug: 178 47 command.c:145 script_debug(): command - ocd_stm32f4x.cpu
ocd_stm32f4x.cpu configure -event trace-config
# Set TRACE_IOEN; TRACE_MODE is set to async; when using sync
# change this value accordingly to configure trace pins
# assignment
mmw 0xE0042004 0x00000020 0
Debug: 179 47 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_reset_config srst_only
Debug: 180 47 command.c:145 script_debug(): command - reset_config
ocd_reset_config srst_only
User : 182 47 command.c:546 command_print(): srst_only separate srst_nogate
srst_open_drain connect_deassert_srst
Debug: 183 47 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_init
Debug: 184 47 command.c:145 script_debug(): command - init ocd_init
Debug: 186 47 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_target init
Debug: 187 47 command.c:145 script_debug(): command - ocd_target ocd_target init
Debug: 189 47 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_target names
Debug: 190 47 command.c:145 script_debug(): command - ocd_target ocd_target
names
Debug: 191 47 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_stm32f4x.cpu cget -event gdb-flash-erase-start
Debug: 192 47 command.c:145 script_debug(): command - ocd_stm32f4x.cpu
ocd_stm32f4x.cpu cget -event gdb-flash-erase-start
Debug: 193 47 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_stm32f4x.cpu configure -event gdb-flash-erase-start reset init
Debug: 194 47 command.c:145 script_debug(): command - ocd_stm32f4x.cpu
ocd_stm32f4x.cpu configure -event gdb-flash-erase-start reset init
Debug: 195 47 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_stm32f4x.cpu cget -event gdb-flash-write-end
Debug: 196 47 command.c:145 script_debug(): command - ocd_stm32f4x.cpu
ocd_stm32f4x.cpu cget -event gdb-flash-write-end
Debug: 197 47 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_stm32f4x.cpu configure -event gdb-flash-write-end reset halt
Debug: 198 47 command.c:145 script_debug(): command - ocd_stm32f4x.cpu
ocd_stm32f4x.cpu configure -event gdb-flash-write-end reset halt
Debug: 199 47 target.c:1313 handle_target_init_command(): Initializing
targets...
Debug: 200 47 hla_target.c:343 adapter_init_target(): adapter_init_target
Debug: 201 47 command.c:366 register_command_handler(): registering
'ocd_target_request'...
Debug: 202 47 command.c:366 register_command_handler(): registering
'ocd_trace'...
Debug: 203 47 command.c:366 register_command_handler(): registering
'ocd_trace'...
Debug: 204 47 command.c:366 register_command_handler(): registering
'ocd_fast_load_image'...
Debug: 205 47 command.c:366 register_command_handler(): registering
'ocd_fast_load'...
Debug: 206 47 command.c:366 register_command_handler(): registering
'ocd_profile'...
Debug: 207 47 command.c:366 register_command_handler(): registering
'ocd_virt2phys'...
Debug: 208 47 command.c:366 register_command_handler(): registering 'ocd_reg'...
Debug: 209 47 command.c:366 register_command_handler(): registering
'ocd_poll'...
Debug: 210 47 command.c:366 register_command_handler(): registering
'ocd_wait_halt'...
Debug: 211 47 command.c:366 register_command_handler(): registering
'ocd_halt'...
Debug: 212 47 command.c:366 register_command_handler(): registering
'ocd_resume'...
Debug: 213 47 command.c:366 register_command_handler(): registering
'ocd_reset'...
Debug: 214 47 command.c:366 register_command_handler(): registering
'ocd_soft_reset_halt'...
Debug: 215 47 command.c:366 register_command_handler(): registering
'ocd_step'...
Debug: 216 47 command.c:366 register_command_handler(): registering 'ocd_mdw'...
Debug: 217 47 command.c:366 register_command_handler(): registering 'ocd_mdh'...
Debug: 218 47 command.c:366 register_command_handler(): registering 'ocd_mdb'...
Debug: 219 47 command.c:366 register_command_handler(): registering 'ocd_mww'...
Debug: 220 47 command.c:366 register_command_handler(): registering 'ocd_mwh'...
Debug: 221 47 command.c:366 register_command_handler(): registering 'ocd_mwb'...
Debug: 222 47 command.c:366 register_command_handler(): registering 'ocd_bp'...
Debug: 223 47 command.c:366 register_command_handler(): registering 'ocd_rbp'...
Debug: 224 47 command.c:366 register_command_handler(): registering 'ocd_wp'...
Debug: 225 47 command.c:366 register_command_handler(): registering 'ocd_rwp'...
Debug: 226 47 command.c:366 register_command_handler(): registering
'ocd_load_image'...
Debug: 227 47 command.c:366 register_command_handler(): registering
'ocd_dump_image'...
Debug: 228 47 command.c:366 register_command_handler(): registering
'ocd_verify_image'...
Debug: 229 47 command.c:366 register_command_handler(): registering
'ocd_test_image'...
Debug: 230 47 command.c:366 register_command_handler(): registering
'ocd_reset_nag'...
Debug: 231 47 command.c:366 register_command_handler(): registering 'ocd_ps'...
Debug: 232 47 command.c:366 register_command_handler(): registering
'ocd_test_mem_access'...
Debug: 233 47 hla_interface.c:111 hl_interface_init(): hl_interface_init
Debug: 234 47 hla_layout.c:85 hl_layout_init(): hl_layout_init
Debug: 235 47 core.c:1596 adapter_khz_to_speed(): convert khz to interface
specific speed value
Debug: 236 47 core.c:1599 adapter_khz_to_speed(): have interface set up
Info : 237 47 stlink_usb.c:1568 stlink_speed(): Unable to match requested speed
2000 kHz, using 1800 kHz
Debug: 238 47 core.c:1596 adapter_khz_to_speed(): convert khz to interface
specific speed value
Debug: 239 47 core.c:1599 adapter_khz_to_speed(): have interface set up
Info : 240 47 stlink_usb.c:1568 stlink_speed(): Unable to match requested speed
2000 kHz, using 1800 kHz
Info : 241 47 core.c:1384 adapter_init(): clock speed 1800 kHz
Debug: 242 47 openocd.c:137 handle_init_command(): Debug Adapter init complete
Debug: 243 47 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_transport init
Debug: 244 47 command.c:145 script_debug(): command - ocd_transport
ocd_transport init
Debug: 246 47 transport.c:240 handle_transport_init(): handle_transport_init
Debug: 247 47 hla_transport.c:154 hl_transport_init(): hl_transport_init
Debug: 248 47 hla_transport.c:171 hl_transport_init(): current transport hla_swd
Debug: 249 47 hla_interface.c:44 hl_interface_open(): hl_interface_open
Debug: 250 47 hla_layout.c:42 hl_layout_open(): hl_layout_open
Debug: 251 47 stlink_usb.c:1602 stlink_usb_open(): stlink_usb_open
Debug: 252 47 stlink_usb.c:1619 stlink_usb_open(): transport: 1 vid: 0x0483
pid: 0x3748 serial:
Info : 253 63 stlink_usb.c:523 stlink_usb_version(): STLINK v2 JTAG v17 API v2
SWIM v0 VID 0x0483 PID 0x3748
Info : 254 63 stlink_usb.c:1730 stlink_usb_open(): using stlink api v2
Debug: 255 63 stlink_usb.c:722 stlink_usb_init_mode(): MODE: 0x02
Info : 256 63 stlink_usb.c:555 stlink_usb_check_voltage(): Target voltage:
2.863477
Debug: 257 63 stlink_usb.c:777 stlink_usb_init_mode(): MODE: 0x01
Debug: 258 63 stlink_usb.c:803 stlink_usb_init_mode(): MODE: 0x02
Debug: 259 63 stlink_usb.c:1768 stlink_usb_open(): Using TAR autoincrement: 4096
Debug: 260 63 hla_interface.c:129 hl_interface_execute_queue():
hl_interface_execute_queue: ignored
Debug: 261 63 core.c:730 jtag_add_reset(): SRST line released
Debug: 262 63 core.c:754 jtag_add_reset(): TRST line released
Debug: 263 63 core.c:328 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 264 63 hla_interface.c:69 hl_interface_init_target():
hl_interface_init_target
Debug: 265 63 stlink_usb.c:828 stlink_usb_idcode(): IDCODE: 0x2BA01477
Debug: 266 63 openocd.c:150 handle_init_command(): Examining targets...
Debug: 267 63 target.c:1465 target_call_event_callbacks(): target event 21
(examine-start)
Debug: 268 63 hla_target.c:752 adapter_read_memory(): adapter_read_memory
0xe000ed00 4 1
Debug: 269 78 target.c:2179 target_read_u32(): address: 0xe000ed00, value:
0x410fc241
Debug: 270 78 cortex_m.c:1906 cortex_m_examine(): Cortex-M4 r0p1 processor
detected
Debug: 271 78 cortex_m.c:1907 cortex_m_examine(): cpuid: 0x410fc241
Debug: 272 78 hla_target.c:752 adapter_read_memory(): adapter_read_memory
0xe000ef40 4 1
Debug: 273 78 target.c:2179 target_read_u32(): address: 0xe000ef40, value:
0x10110021
Debug: 274 78 hla_target.c:752 adapter_read_memory(): adapter_read_memory
0xe000ef44 4 1
Debug: 275 78 target.c:2179 target_read_u32(): address: 0xe000ef44, value:
0x11000011
Debug: 276 78 cortex_m.c:1915 cortex_m_examine(): Cortex-M4 floating point
feature FPv4_SP found
Debug: 277 78 target.c:2267 target_write_u32(): address: 0xe000edfc, value:
0x01000000
Debug: 278 78 hla_target.c:766 adapter_write_memory(): adapter_write_memory
0xe000edfc 4 1
Debug: 279 78 hla_target.c:752 adapter_read_memory(): adapter_read_memory
0xe0002000 4 1
Debug: 280 78 target.c:2179 target_read_u32(): address: 0xe0002000, value:
0x00000260
Debug: 281 78 target.c:2267 target_write_u32(): address: 0xe0002008, value:
0x00000000
Debug: 282 78 hla_target.c:766 adapter_write_memory(): adapter_write_memory
0xe0002008 4 1
Debug: 283 78 target.c:2267 target_write_u32(): address: 0xe000200c, value:
0x00000000
Debug: 284 78 hla_target.c:766 adapter_write_memory(): adapter_write_memory
0xe000200c 4 1
Debug: 285 78 target.c:2267 target_write_u32(): address: 0xe0002010, value:
0x00000000
Debug: 286 78 hla_target.c:766 adapter_write_memory(): adapter_write_memory
0xe0002010 4 1
Debug: 287 78 target.c:2267 target_write_u32(): address: 0xe0002014, value:
0x00000000
Debug: 288 78 hla_target.c:766 adapter_write_memory(): adapter_write_memory
0xe0002014 4 1
Debug: 289 78 target.c:2267 target_write_u32(): address: 0xe0002018, value:
0x00000000
Debug: 290 78 hla_target.c:766 adapter_write_memory(): adapter_write_memory
0xe0002018 4 1
Debug: 291 78 target.c:2267 target_write_u32(): address: 0xe000201c, value:
0x00000000
Debug: 292 78 hla_target.c:766 adapter_write_memory(): adapter_write_memory
0xe000201c 4 1
Debug: 293 78 target.c:2267 target_write_u32(): address: 0xe0002020, value:
0x00000000
Debug: 294 78 hla_target.c:766 adapter_write_memory(): adapter_write_memory
0xe0002020 4 1
Debug: 295 78 target.c:2267 target_write_u32(): address: 0xe0002024, value:
0x00000000
Debug: 296 78 hla_target.c:766 adapter_write_memory(): adapter_write_memory
0xe0002024 4 1
Debug: 297 78 cortex_m.c:1974 cortex_m_examine(): FPB fpcr 0x260, numcode 6,
numlit 2
Debug: 298 78 hla_target.c:752 adapter_read_memory(): adapter_read_memory
0xe0001000 4 1
Debug: 299 78 target.c:2179 target_read_u32(): address: 0xe0001000, value:
0x40000000
Debug: 300 78 target.c:2267 target_write_u32(): address: 0xe0001028, value:
0x00000000
Debug: 301 78 hla_target.c:766 adapter_write_memory(): adapter_write_memory
0xe0001028 4 1
Debug: 302 78 target.c:2267 target_write_u32(): address: 0xe0001038, value:
0x00000000
Debug: 303 78 hla_target.c:766 adapter_write_memory(): adapter_write_memory
0xe0001038 4 1
Debug: 304 94 target.c:2267 target_write_u32(): address: 0xe0001048, value:
0x00000000
Debug: 305 94 hla_target.c:766 adapter_write_memory(): adapter_write_memory
0xe0001048 4 1
Debug: 306 94 target.c:2267 target_write_u32(): address: 0xe0001058, value:
0x00000000
Debug: 307 94 hla_target.c:766 adapter_write_memory(): adapter_write_memory
0xe0001058 4 1
Debug: 308 94 cortex_m.c:1842 cortex_m_dwt_setup(): DWT dwtcr 0x40000000, comp
4, watch/trigger
Info : 309 94 cortex_m.c:1984 cortex_m_examine(): stm32f4x.cpu: hardware has 6
breakpoints, 4 watchpoints
Debug: 310 94 target.c:1465 target_call_event_callbacks(): target event 22
(examine-end)
Debug: 311 94 target.c:4209 target_handle_event(): target: (0) stm32f4x.cpu
(hla_target) event: 22 (examine-end) action:
# DBGMCU_CR |= DBG_STANDBY | DBG_STOP | DBG_SLEEP
mmw 0xE0042004 0x00000007 0
# Stop watchdog counters during halt
# DBGMCU_APB1_FZ = DBG_IWDG_STOP | DBG_WWDG_STOP
mww 0xE0042008 0x00001800
Debug: 312 94 hla_target.c:752 adapter_read_memory(): adapter_read_memory
0xe0042004 4 1
Debug: 313 94 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_mww 0xE0042004 7
Debug: 314 94 command.c:145 script_debug(): command - mww ocd_mww 0xE0042004 7
Debug: 316 94 hla_target.c:766 adapter_write_memory(): adapter_write_memory
0xe0042004 4 1
Debug: 317 94 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_mww 0xE0042008 0x00001800
Debug: 318 94 command.c:145 script_debug(): command - mww ocd_mww 0xE0042008
0x00001800
Debug: 320 94 hla_target.c:766 adapter_write_memory(): adapter_write_memory
0xe0042008 4 1
Debug: 321 94 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_flash init
Debug: 322 94 command.c:145 script_debug(): command - ocd_flash ocd_flash init
Debug: 324 94 tcl.c:890 handle_flash_init_command(): Initializing flash
devices...
Debug: 325 94 command.c:366 register_command_handler(): registering
'ocd_flash'...
Debug: 326 94 command.c:366 register_command_handler(): registering
'ocd_flash'...
Debug: 327 94 command.c:366 register_command_handler(): registering
'ocd_flash'...
Debug: 328 94 command.c:366 register_command_handler(): registering
'ocd_flash'...
Debug: 329 94 command.c:366 register_command_handler(): registering
'ocd_flash'...
Debug: 330 94 command.c:366 register_command_handler(): registering
'ocd_flash'...
Debug: 331 94 command.c:366 register_command_handler(): registering
'ocd_flash'...
Debug: 332 94 command.c:366 register_command_handler(): registering
'ocd_flash'...
Debug: 333 94 command.c:366 register_command_handler(): registering
'ocd_flash'...
Debug: 334 94 command.c:366 register_command_handler(): registering
'ocd_flash'...
Debug: 335 94 command.c:366 register_command_handler(): registering
'ocd_flash'...
Debug: 336 94 command.c:366 register_command_handler(): registering
'ocd_flash'...
Debug: 337 94 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_mflash init
Debug: 338 94 command.c:145 script_debug(): command - ocd_mflash ocd_mflash init
Debug: 340 94 mflash.c:1379 handle_mflash_init_command(): Initializing mflash
devices...
Debug: 341 94 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_nand init
Debug: 342 94 command.c:145 script_debug(): command - ocd_nand ocd_nand init
Debug: 344 94 tcl.c:497 handle_nand_init_command(): Initializing NAND devices...
Debug: 345 94 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_pld init
Debug: 346 94 command.c:145 script_debug(): command - ocd_pld ocd_pld init
Debug: 348 94 pld.c:207 handle_pld_init_command(): Initializing PLDs...
Debug: 349 6434 hla_interface.c:119 hl_interface_quit(): hl_interface_quit
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel