Hi,

I'm trying to use an STM32F4DISCOVERY with openocd. I've compiled nearly 
current git (b6068f5a48) a few days ago. It doesn't look like anything for 
this board has been added since then.

The problem is that only sometimes a correct STM32 processor is detected. 
Other times I get errors about a wrong device id.

I start openocd like this:
openocd -f interface/stlink-v2.cfg -f target/stm32f4x_stlink.cfg  -c init -c 
reset

and then I issue a "flash info 0" on the telnet commandline (4444). The error 
output looks like this:

> flash info 0
device id = 0x00000000
Cannot identify target as a STM32 family.
auto_probe failed
in procedure 'flash'

The wrong device id changes randomly, I've seen these id results in the calls 
I made:
device id = 0x00002000
device id = 0x00000000
device id = 0x40002000
device id = 0x40000000

The problem occurs like in 4 of 5 times.

The board itself seems to be fine, flashing with the utility from stm under 
windows works fine and my application works fine once it is flashed onto the 
mcu.  
My host is Fedora 15 x86_64.

I have attached outputs with --debug 3 for both cases.

Can anybody interpret what is going on here? Looks like some sort of timing or 
clock issue to me.

Thanks.

Kind regards,

Gerd
[gerd@rdx ~]$ openocd --debug 3 -f interface/stlink-v2.cfg -f 
target/stm32f4x_stlink.cfg  -c init -c reset
Open On-Chip Debugger 0.6.0-dev-00509-gb6068f5 (2012-04-15-16:49)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.sourceforge.net/doc/doxygen/bugs.html
User : 11 2 command.c:547 command_print(): debug_level: 3
Debug: 12 2 configuration.c:45 add_script_search_dir(): adding 
/home/gerd/.openocd
Debug: 13 2 configuration.c:45 add_script_search_dir(): adding 
/usr/share/openocd/site
Debug: 14 2 configuration.c:45 add_script_search_dir(): adding 
/usr/share/openocd/scripts
Debug: 15 2 configuration.c:86 find_file(): found 
/usr/share/openocd/scripts/interface/stlink-v2.cfg
Debug: 16 2 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_interface stlink
Debug: 17 2 command.c:145 script_debug(): command - interface ocd_interface 
stlink
Debug: 19 2 command.c:367 register_command_handler(): registering 
'ocd_stlink_device_desc'...
Debug: 20 2 command.c:367 register_command_handler(): registering 
'ocd_stlink_serial'...
Debug: 21 2 command.c:367 register_command_handler(): registering 
'ocd_stlink_layout'...
Debug: 22 2 command.c:367 register_command_handler(): registering 
'ocd_stlink_vid_pid'...
Debug: 23 2 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stlink_layout usb
Debug: 24 2 command.c:145 script_debug(): command - stlink_layout 
ocd_stlink_layout usb
Debug: 26 2 stlink_interface.c:161 stlink_interface_handle_layout_command(): 
stlink_interface_handle_layout_command
Debug: 27 2 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stlink_device_desc ST-LINK/V2
Debug: 28 2 command.c:145 script_debug(): command - stlink_device_desc 
ocd_stlink_device_desc ST-LINK/V2
Debug: 30 2 stlink_interface.c:133 
stlink_interface_handle_device_desc_command(): 
stlink_interface_handle_device_desc_command
Debug: 31 2 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stlink_vid_pid 0x0483 0x3748
Debug: 32 2 command.c:145 script_debug(): command - stlink_vid_pid 
ocd_stlink_vid_pid 0x0483 0x3748
Debug: 34 2 stlink_interface.c:189 stlink_interface_handle_vid_pid_command(): 
stlink_interface_handle_vid_pid_command
Debug: 35 3 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_adapter_khz 1
Debug: 36 3 command.c:145 script_debug(): command - adapter_khz ocd_adapter_khz 
1
Debug: 38 3 core.c:1625 jtag_config_khz(): handle jtag khz
Debug: 39 3 core.c:1592 adapter_khz_to_speed(): convert khz to interface 
specific speed value
Debug: 40 3 core.c:1592 adapter_khz_to_speed(): convert khz to interface 
specific speed value
User : 41 3 command.c:547 command_print(): 1 kHz
Debug: 42 3 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_reset_config trst_and_srst
Debug: 43 3 command.c:145 script_debug(): command - reset_config 
ocd_reset_config trst_and_srst
User : 45 3 command.c:547 command_print(): trst_and_srst separate 
srst_gates_jtag trst_push_pull srst_open_drain
Debug: 46 3 configuration.c:86 find_file(): found 
/usr/share/openocd/scripts/target/stm32f4x_stlink.cfg
Debug: 47 3 configuration.c:86 find_file(): found 
/usr/share/openocd/scripts/target/stm32_stlink.cfg
Debug: 48 3 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport select stlink_swd
Debug: 49 3 command.c:145 script_debug(): command - ocd_transport ocd_transport 
select stlink_swd
Debug: 50 3 stlink_transport.c:179 stlink_transport_select(): 
stlink_transport_select
Debug: 51 3 command.c:367 register_command_handler(): registering 
'ocd_stlink'...
Debug: 52 3 command.c:367 register_command_handler(): registering 'ocd_jtag'...
Debug: 53 3 command.c:367 register_command_handler(): registering 'ocd_jtag'...
Debug: 54 3 command.c:367 register_command_handler(): registering 'ocd_jtag'...
Debug: 55 3 command.c:367 register_command_handler(): registering 'ocd_jtag'...
Debug: 56 3 command.c:367 register_command_handler(): registering 'ocd_jtag'...
Debug: 57 3 command.c:367 register_command_handler(): registering 'ocd_jtag'...
Debug: 58 3 command.c:367 register_command_handler(): registering 'ocd_jtag'...
Debug: 59 3 command.c:367 register_command_handler(): registering 'ocd_jtag'...
Debug: 60 3 command.c:367 register_command_handler(): registering 'ocd_jtag'...
Debug: 61 3 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stlink newtap stm32f4x cpu -expected-id 0x2ba01477
Debug: 62 3 command.c:145 script_debug(): command - ocd_stlink ocd_stlink 
newtap stm32f4x cpu -expected-id 0x2ba01477
Debug: 63 3 stlink_tcl.c:101 jim_stlink_newtap_cmd(): Creating New Tap, Chip: 
stm32f4x, Tap: cpu, Dotted: stm32f4x.cpu, 2 params
Debug: 64 3 stlink_tcl.c:111 jim_stlink_newtap_cmd(): Processing option: 
-expected-id
Debug: 65 3 core.c:1322 jtag_tap_init(): Created Tap: stm32f4x.cpu @ abs 
position 0, irlen 0, capture: 0x0 mask: 0x0
Debug: 66 3 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_target create stm32f4x.cpu stm32_stlink -chain-position stm32f4x.cpu
Debug: 67 3 command.c:145 script_debug(): command - ocd_target ocd_target 
create stm32f4x.cpu stm32_stlink -chain-position stm32f4x.cpu
Debug: 68 3 target.c:1611 target_free_all_working_areas_restore(): freeing all 
working areas
Debug: 69 3 stm32_stlink.c:298 stm32_stlink_target_create(): 
stm32_stlink_target_create
Debug: 70 3 stm32_stlink.c:272 stm32_stlink_init_arch_info(): 
stm32_stlink_init_arch_info
Debug: 71 4 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 72 4 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 73 4 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 74 4 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 75 4 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 76 4 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 77 4 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 78 4 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 79 4 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 80 4 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 81 4 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 82 4 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 83 4 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 84 4 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 85 4 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 86 4 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 87 4 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 88 4 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 89 4 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 90 4 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: 91 4 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: 92 4 target.c:1611 target_free_all_working_areas_restore(): freeing all 
working areas
Debug: 93 4 target.c:1611 target_free_all_working_areas_restore(): freeing all 
working areas
Debug: 94 4 target.c:1611 target_free_all_working_areas_restore(): freeing all 
working areas
Debug: 95 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_flash bank stm32f4x.flash stm32f2x 0 0 0 0 stm32f4x.cpu
Debug: 96 4 command.c:145 script_debug(): command - ocd_flash ocd_flash bank 
stm32f4x.flash stm32f2x 0 0 0 0 stm32f4x.cpu
Debug: 98 4 command.c:367 register_command_handler(): registering 
'ocd_stm32f2x'...
Debug: 99 4 tcl.c:780 handle_flash_bank_command(): 'stm32f2x' driver usage 
field missing
Debug: 100 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_init
Debug: 101 4 command.c:145 script_debug(): command - init ocd_init
Debug: 103 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_target init
Debug: 104 4 command.c:145 script_debug(): command - ocd_target ocd_target init
Debug: 106 4 target.c:1174 handle_target_init_command(): Initializing targets...
Debug: 107 4 stm32_stlink.c:288 stm32_stlink_init_target(): 
stm32_stlink_init_target
Debug: 108 4 command.c:367 register_command_handler(): registering 
'ocd_target_request'...
Debug: 109 4 command.c:367 register_command_handler(): registering 
'ocd_trace'...
Debug: 110 4 command.c:367 register_command_handler(): registering 
'ocd_trace'...
Debug: 111 4 command.c:367 register_command_handler(): registering 
'ocd_fast_load_image'...
Debug: 112 4 command.c:367 register_command_handler(): registering 
'ocd_fast_load'...
Debug: 113 4 command.c:367 register_command_handler(): registering 
'ocd_profile'...
Debug: 114 4 command.c:367 register_command_handler(): registering 
'ocd_virt2phys'...
Debug: 115 4 command.c:367 register_command_handler(): registering 'ocd_reg'...
Debug: 116 4 command.c:367 register_command_handler(): registering 'ocd_poll'...
Debug: 117 4 command.c:367 register_command_handler(): registering 
'ocd_wait_halt'...
Debug: 118 4 command.c:367 register_command_handler(): registering 'ocd_halt'...
Debug: 119 4 command.c:367 register_command_handler(): registering 
'ocd_resume'...
Debug: 120 4 command.c:367 register_command_handler(): registering 
'ocd_reset'...
Debug: 121 4 command.c:367 register_command_handler(): registering 
'ocd_soft_reset_halt'...
Debug: 122 4 command.c:367 register_command_handler(): registering 'ocd_step'...
Debug: 123 4 command.c:367 register_command_handler(): registering 'ocd_mdw'...
Debug: 124 4 command.c:367 register_command_handler(): registering 'ocd_mdh'...
Debug: 125 4 command.c:367 register_command_handler(): registering 'ocd_mdb'...
Debug: 126 4 command.c:367 register_command_handler(): registering 'ocd_mww'...
Debug: 127 4 command.c:367 register_command_handler(): registering 'ocd_mwh'...
Debug: 128 4 command.c:367 register_command_handler(): registering 'ocd_mwb'...
Debug: 129 4 command.c:367 register_command_handler(): registering 'ocd_bp'...
Debug: 130 4 command.c:367 register_command_handler(): registering 'ocd_rbp'...
Debug: 131 5 command.c:367 register_command_handler(): registering 'ocd_wp'...
Debug: 132 5 command.c:367 register_command_handler(): registering 'ocd_rwp'...
Debug: 133 5 command.c:367 register_command_handler(): registering 
'ocd_load_image'...
Debug: 134 5 command.c:367 register_command_handler(): registering 
'ocd_dump_image'...
Debug: 135 5 command.c:367 register_command_handler(): registering 
'ocd_verify_image'...
Debug: 136 5 command.c:367 register_command_handler(): registering 
'ocd_test_image'...
Debug: 137 5 command.c:367 register_command_handler(): registering 
'ocd_reset_nag'...
Debug: 138 5 command.c:367 register_command_handler(): registering 'ocd_ps'...
Debug: 139 5 stlink_interface.c:92 stlink_interface_init(): 
stlink_interface_init
Debug: 140 5 stlink_layout.c:88 stlink_layout_init(): stlink_layout_init
Debug: 141 5 core.c:1592 adapter_khz_to_speed(): convert khz to interface 
specific speed value
Debug: 142 5 core.c:1595 adapter_khz_to_speed(): have interface set up
Debug: 143 5 stlink_interface.c:107 stlink_interface_speed(): 
stlink_interface_speed: ignore speed 1
Debug: 144 5 core.c:1592 adapter_khz_to_speed(): convert khz to interface 
specific speed value
Debug: 145 5 core.c:1595 adapter_khz_to_speed(): have interface set up
Info : 146 5 core.c:1399 adapter_init(): clock speed 1 kHz
Debug: 147 5 openocd.c:132 handle_init_command(): Debug Adapter init complete
Debug: 148 5 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport init
Debug: 149 5 command.c:145 script_debug(): command - ocd_transport 
ocd_transport init
Debug: 151 5 transport.c:240 handle_transport_init(): handle_transport_init
Debug: 152 5 stlink_transport.c:140 stlink_transport_init(): 
stlink_transport_init
Debug: 153 5 stlink_transport.c:157 stlink_transport_init(): current transport 
stlink_swd
Debug: 154 5 stlink_interface.c:41 stlink_interface_open(): 
stlink_interface_open
Debug: 155 5 stlink_layout.c:43 stlink_layout_open(): stlink_layout_open
Debug: 156 5 stlink_usb.c:1005 stlink_usb_open(): stlink_usb_open
Debug: 157 5 stlink_usb.c:1020 stlink_usb_open(): transport: 1 vid: 0x0483 pid: 
0x3748
Debug: 158 6 stlink_usb.c:413 stlink_usb_version(): STLINK v2 JTAG v14 API v2 
SWIM v0 VID 0x0483 PID 0x3748
Debug: 159 6 stlink_usb.c:555 stlink_usb_init_mode(): MODE: 0x00
Debug: 160 8 stlink_usb.c:587 stlink_usb_init_mode(): MODE: 0x01
Debug: 161 9 stlink_usb.c:620 stlink_usb_init_mode(): MODE: 0x02
Debug: 162 9 stlink_interface.c:53 stlink_interface_init_target(): 
stlink_interface_init_target
Debug: 163 9 stlink_usb.c:647 stlink_usb_idcode(): IDCODE: 0x2BA01477
Debug: 164 9 openocd.c:145 handle_init_command(): Examining targets...
Debug: 165 9 arm_adi_v5.c:1097 ahbap_debugport_init():  
Debug: 166 9 arm_adi_v5.c:1103 ahbap_debugport_init(): No low level jtag 
hardware found
Debug: 167 9 stm32_stlink.c:631 stm32_stlink_read_memory(): 
stm32_stlink_read_memory 0xe000ed00 4 1
Debug: 168 9 target.c:1908 target_read_u32(): address: 0xe000ed00, value: 
0x00000000
Debug: 169 9 cortex_m.c:1788 cortex_m3_examine(): Cortex-M0 r0p0 processor 
detected
Debug: 170 9 cortex_m.c:1789 cortex_m3_examine(): cpuid: 0x00000000
Debug: 171 9 stm32_stlink.c:631 stm32_stlink_read_memory(): 
stm32_stlink_read_memory 0xe0002000 4 1
Debug: 172 10 target.c:1908 target_read_u32(): address: 0xe0002000, value: 
0x00000000
Debug: 173 10 cortex_m.c:1825 cortex_m3_examine(): FPB fpcr 0x0, numcode 0, 
numlit 0
Debug: 174 10 stm32_stlink.c:631 stm32_stlink_read_memory(): 
stm32_stlink_read_memory 0xe0001000 4 1
Debug: 175 10 target.c:1908 target_read_u32(): address: 0xe0001000, value: 
0x00000000
Debug: 176 10 cortex_m.c:1701 cortex_m3_dwt_setup(): no DWT
Info : 177 10 cortex_m.c:1834 cortex_m3_examine(): stm32f4x.cpu: hardware has 0 
breakpoints, 0 watchpoints
Debug: 178 10 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_flash init
Debug: 179 10 command.c:145 script_debug(): command - ocd_flash ocd_flash init
Debug: 181 10 tcl.c:846 handle_flash_init_command(): Initializing flash 
devices...
Debug: 182 10 command.c:367 register_command_handler(): registering 
'ocd_flash'...
Debug: 183 10 command.c:367 register_command_handler(): registering 
'ocd_flash'...
Debug: 184 10 command.c:367 register_command_handler(): registering 
'ocd_flash'...
Debug: 185 10 command.c:367 register_command_handler(): registering 
'ocd_flash'...
Debug: 186 10 command.c:367 register_command_handler(): registering 
'ocd_flash'...
Debug: 187 10 command.c:367 register_command_handler(): registering 
'ocd_flash'...
Debug: 188 10 command.c:367 register_command_handler(): registering 
'ocd_flash'...
Debug: 189 10 command.c:367 register_command_handler(): registering 
'ocd_flash'...
Debug: 190 10 command.c:367 register_command_handler(): registering 
'ocd_flash'...
Debug: 191 10 command.c:367 register_command_handler(): registering 
'ocd_flash'...
Debug: 192 10 command.c:367 register_command_handler(): registering 
'ocd_flash'...
Debug: 193 10 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_mflash init
Debug: 194 10 command.c:145 script_debug(): command - ocd_mflash ocd_mflash init
Debug: 196 10 mflash.c:1378 handle_mflash_init_command(): Initializing mflash 
devices...
Debug: 197 10 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_nand init
Debug: 198 10 command.c:145 script_debug(): command - ocd_nand ocd_nand init
Debug: 200 10 tcl.c:497 handle_nand_init_command(): Initializing NAND devices...
Debug: 201 10 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_pld init
Debug: 202 10 command.c:145 script_debug(): command - ocd_pld ocd_pld init
Debug: 204 10 pld.c:207 handle_pld_init_command(): Initializing PLDs...
Debug: 205 10 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_reset
Debug: 206 10 command.c:145 script_debug(): command - reset ocd_reset
Debug: 208 11 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_target names
Debug: 209 11 command.c:145 script_debug(): command - ocd_target ocd_target 
names
Debug: 210 11 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stm32f4x.cpu invoke-event reset-start
Debug: 211 11 command.c:145 script_debug(): command - ocd_stm32f4x.cpu 
ocd_stm32f4x.cpu invoke-event reset-start
Debug: 212 11 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_jtag arp_init-reset
Debug: 213 11 command.c:145 script_debug(): command - ocd_jtag ocd_jtag 
arp_init-reset
Debug: 215 11 stlink_transport.c:37 stlink_transport_jtag_command(): 
stlink_transport_jtag_command
Debug: 216 11 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stm32f4x.cpu cget -chain-position
Debug: 217 11 command.c:145 script_debug(): command - ocd_stm32f4x.cpu 
ocd_stm32f4x.cpu cget -chain-position
Debug: 218 11 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_jtag tapisenabled stm32f4x.cpu
Debug: 219 11 command.c:145 script_debug(): command - ocd_jtag ocd_jtag 
tapisenabled stm32f4x.cpu
Debug: 220 11 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stm32f4x.cpu arp_examine
Debug: 221 11 command.c:145 script_debug(): command - ocd_stm32f4x.cpu 
ocd_stm32f4x.cpu arp_examine
Debug: 222 11 arm_adi_v5.c:1097 ahbap_debugport_init():  
Debug: 223 11 arm_adi_v5.c:1103 ahbap_debugport_init(): No low level jtag 
hardware found
Debug: 224 11 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stm32f4x.cpu invoke-event reset-assert-pre
Debug: 225 11 command.c:145 script_debug(): command - ocd_stm32f4x.cpu 
ocd_stm32f4x.cpu invoke-event reset-assert-pre
Debug: 226 11 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stm32f4x.cpu cget -chain-position
Debug: 227 11 command.c:145 script_debug(): command - ocd_stm32f4x.cpu 
ocd_stm32f4x.cpu cget -chain-position
Debug: 228 11 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_jtag tapisenabled stm32f4x.cpu
Debug: 229 11 command.c:145 script_debug(): command - ocd_jtag ocd_jtag 
tapisenabled stm32f4x.cpu
Debug: 230 11 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stm32f4x.cpu arp_reset assert 0
Debug: 231 11 command.c:145 script_debug(): command - ocd_stm32f4x.cpu 
ocd_stm32f4x.cpu arp_reset assert 0
Debug: 232 11 target.c:1611 target_free_all_working_areas_restore(): freeing 
all working areas
Debug: 233 11 stm32_stlink.c:413 stm32_stlink_assert_reset(): 
stm32_stlink_assert_reset
Debug: 234 12 stlink_usb.c:707 stlink_usb_reset(): RESET: 0x00000081
Debug: 235 12 stlink_interface.c:126 stlink_interface_execute_queue(): 
stlink_interface_execute_queue: ignored
Debug: 236 12 core.c:715 jtag_add_reset(): SRST line asserted
Debug: 237 12 core.c:738 jtag_add_reset(): TRST line asserted
Debug: 238 12 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stm32f4x.cpu invoke-event reset-assert-post
Debug: 239 12 command.c:145 script_debug(): command - ocd_stm32f4x.cpu 
ocd_stm32f4x.cpu invoke-event reset-assert-post
Debug: 240 12 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stm32f4x.cpu invoke-event reset-deassert-pre
Debug: 241 12 command.c:145 script_debug(): command - ocd_stm32f4x.cpu 
ocd_stm32f4x.cpu invoke-event reset-deassert-pre
Debug: 242 12 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stm32f4x.cpu cget -chain-position
Debug: 243 12 command.c:145 script_debug(): command - ocd_stm32f4x.cpu 
ocd_stm32f4x.cpu cget -chain-position
Debug: 244 12 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_jtag tapisenabled stm32f4x.cpu
Debug: 245 12 command.c:145 script_debug(): command - ocd_jtag ocd_jtag 
tapisenabled stm32f4x.cpu
Debug: 246 12 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stm32f4x.cpu arp_reset deassert 0
Debug: 247 12 command.c:145 script_debug(): command - ocd_stm32f4x.cpu 
ocd_stm32f4x.cpu arp_reset deassert 0
Debug: 248 12 target.c:1611 target_free_all_working_areas_restore(): freeing 
all working areas
Debug: 249 12 stm32_stlink.c:442 stm32_stlink_deassert_reset(): 
stm32_stlink_deassert_reset
Debug: 250 12 stlink_interface.c:126 stlink_interface_execute_queue(): 
stlink_interface_execute_queue: ignored
Debug: 251 12 core.c:719 jtag_add_reset(): SRST line released
Debug: 252 12 core.c:743 jtag_add_reset(): TRST line released
Debug: 253 12 core.c:323 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 254 12 stm32_stlink.c:502 stm32_stlink_resume(): stm32_stlink_resume 1 
0x00000000 0 0
Debug: 255 12 armv7m.c:144 armv7m_restore_context():  
Debug: 256 12 target.c:1290 target_call_event_callbacks(): target event 4 
(resumed)
Debug: 257 13 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stm32f4x.cpu invoke-event reset-deassert-post
Debug: 258 13 command.c:145 script_debug(): command - ocd_stm32f4x.cpu 
ocd_stm32f4x.cpu invoke-event reset-deassert-post
Debug: 259 13 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stm32f4x.cpu invoke-event reset-end
Debug: 260 13 command.c:145 script_debug(): command - ocd_stm32f4x.cpu 
ocd_stm32f4x.cpu invoke-event reset-end
Debug: 261 13 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_init
Debug: 262 13 command.c:145 script_debug(): command - init ocd_init
Info : 264 2112 server.c:83 add_connection(): accepting 'telnet' connection 
from 4444
Debug: 265 5739 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_flash info 0
Debug: 266 5739 command.c:145 script_debug(): command - ocd_flash ocd_flash 
info 0
Debug: 268 5739 stm32_stlink.c:631 stm32_stlink_read_memory(): 
stm32_stlink_read_memory 0xe0042000 4 1
Debug: 269 5740 target.c:1908 target_read_u32(): address: 0xe0042000, value: 
0x00000000
Info : 270 5740 stm32f2x.c:598 stm32x_probe(): device id = 0x00000000
Debug: 271 5740 stm32_stlink.c:631 stm32_stlink_read_memory(): 
stm32_stlink_read_memory 0x1fff7a22 2 1
Debug: 272 5740 target.c:1932 target_read_u16(): address: 0x1fff7a22, value: 
0x2000
Warn : 273 5740 stm32f2x.c:623 stm32x_probe(): Cannot identify target as a 
STM32 family.
Error: 274 5740 core.c:217 get_flash_bank_by_num(): auto_probe failed
Debug: 275 5740 command.c:628 run_command(): Command failed with error code -4
User : 276 5740 command.c:666 command_run_line(): in procedure 'flash'
[gerd@rdx ~]$ openocd --debug 3 -f interface/stlink-v2.cfg -f 
target/stm32f4x_stlink.cfg  -c init -c reset
Open On-Chip Debugger 0.6.0-dev-00509-gb6068f5 (2012-04-15-16:49)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.sourceforge.net/doc/doxygen/bugs.html
User : 11 2 command.c:547 command_print(): debug_level: 3
Debug: 12 2 configuration.c:45 add_script_search_dir(): adding 
/home/gerd/.openocd
Debug: 13 2 configuration.c:45 add_script_search_dir(): adding 
/usr/share/openocd/site
Debug: 14 2 configuration.c:45 add_script_search_dir(): adding 
/usr/share/openocd/scripts
Debug: 15 2 configuration.c:86 find_file(): found 
/usr/share/openocd/scripts/interface/stlink-v2.cfg
Debug: 16 2 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_interface stlink
Debug: 17 2 command.c:145 script_debug(): command - interface ocd_interface 
stlink
Debug: 19 2 command.c:367 register_command_handler(): registering 
'ocd_stlink_device_desc'...
Debug: 20 2 command.c:367 register_command_handler(): registering 
'ocd_stlink_serial'...
Debug: 21 2 command.c:367 register_command_handler(): registering 
'ocd_stlink_layout'...
Debug: 22 2 command.c:367 register_command_handler(): registering 
'ocd_stlink_vid_pid'...
Debug: 23 2 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stlink_layout usb
Debug: 24 2 command.c:145 script_debug(): command - stlink_layout 
ocd_stlink_layout usb
Debug: 26 2 stlink_interface.c:161 stlink_interface_handle_layout_command(): 
stlink_interface_handle_layout_command
Debug: 27 2 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stlink_device_desc ST-LINK/V2
Debug: 28 2 command.c:145 script_debug(): command - stlink_device_desc 
ocd_stlink_device_desc ST-LINK/V2
Debug: 30 2 stlink_interface.c:133 
stlink_interface_handle_device_desc_command(): 
stlink_interface_handle_device_desc_command
Debug: 31 2 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stlink_vid_pid 0x0483 0x3748
Debug: 32 2 command.c:145 script_debug(): command - stlink_vid_pid 
ocd_stlink_vid_pid 0x0483 0x3748
Debug: 34 2 stlink_interface.c:189 stlink_interface_handle_vid_pid_command(): 
stlink_interface_handle_vid_pid_command
Debug: 35 2 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_adapter_khz 1
Debug: 36 2 command.c:145 script_debug(): command - adapter_khz ocd_adapter_khz 
1
Debug: 38 2 core.c:1625 jtag_config_khz(): handle jtag khz
Debug: 39 2 core.c:1592 adapter_khz_to_speed(): convert khz to interface 
specific speed value
Debug: 40 2 core.c:1592 adapter_khz_to_speed(): convert khz to interface 
specific speed value
User : 41 2 command.c:547 command_print(): 1 kHz
Debug: 42 3 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_reset_config trst_and_srst
Debug: 43 3 command.c:145 script_debug(): command - reset_config 
ocd_reset_config trst_and_srst
User : 45 3 command.c:547 command_print(): trst_and_srst separate 
srst_gates_jtag trst_push_pull srst_open_drain
Debug: 46 3 configuration.c:86 find_file(): found 
/usr/share/openocd/scripts/target/stm32f4x_stlink.cfg
Debug: 47 3 configuration.c:86 find_file(): found 
/usr/share/openocd/scripts/target/stm32_stlink.cfg
Debug: 48 3 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport select stlink_swd
Debug: 49 3 command.c:145 script_debug(): command - ocd_transport ocd_transport 
select stlink_swd
Debug: 50 3 stlink_transport.c:179 stlink_transport_select(): 
stlink_transport_select
Debug: 51 3 command.c:367 register_command_handler(): registering 
'ocd_stlink'...
Debug: 52 3 command.c:367 register_command_handler(): registering 'ocd_jtag'...
Debug: 53 3 command.c:367 register_command_handler(): registering 'ocd_jtag'...
Debug: 54 3 command.c:367 register_command_handler(): registering 'ocd_jtag'...
Debug: 55 3 command.c:367 register_command_handler(): registering 'ocd_jtag'...
Debug: 56 3 command.c:367 register_command_handler(): registering 'ocd_jtag'...
Debug: 57 3 command.c:367 register_command_handler(): registering 'ocd_jtag'...
Debug: 58 3 command.c:367 register_command_handler(): registering 'ocd_jtag'...
Debug: 59 3 command.c:367 register_command_handler(): registering 'ocd_jtag'...
Debug: 60 3 command.c:367 register_command_handler(): registering 'ocd_jtag'...
Debug: 61 3 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stlink newtap stm32f4x cpu -expected-id 0x2ba01477
Debug: 62 3 command.c:145 script_debug(): command - ocd_stlink ocd_stlink 
newtap stm32f4x cpu -expected-id 0x2ba01477
Debug: 63 3 stlink_tcl.c:101 jim_stlink_newtap_cmd(): Creating New Tap, Chip: 
stm32f4x, Tap: cpu, Dotted: stm32f4x.cpu, 2 params
Debug: 64 3 stlink_tcl.c:111 jim_stlink_newtap_cmd(): Processing option: 
-expected-id
Debug: 65 3 core.c:1322 jtag_tap_init(): Created Tap: stm32f4x.cpu @ abs 
position 0, irlen 0, capture: 0x0 mask: 0x0
Debug: 66 3 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_target create stm32f4x.cpu stm32_stlink -chain-position stm32f4x.cpu
Debug: 67 3 command.c:145 script_debug(): command - ocd_target ocd_target 
create stm32f4x.cpu stm32_stlink -chain-position stm32f4x.cpu
Debug: 68 3 target.c:1611 target_free_all_working_areas_restore(): freeing all 
working areas
Debug: 69 3 stm32_stlink.c:298 stm32_stlink_target_create(): 
stm32_stlink_target_create
Debug: 70 3 stm32_stlink.c:272 stm32_stlink_init_arch_info(): 
stm32_stlink_init_arch_info
Debug: 71 3 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 72 3 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 73 3 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 74 3 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 75 3 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 76 3 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 77 3 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 78 3 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 79 4 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 80 4 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 81 4 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 82 4 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 83 4 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 84 4 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 85 4 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 86 4 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 87 4 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 88 4 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 89 4 command.c:367 register_command_handler(): registering 
'ocd_stm32f4x.cpu'...
Debug: 90 4 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: 91 4 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: 92 4 target.c:1611 target_free_all_working_areas_restore(): freeing all 
working areas
Debug: 93 4 target.c:1611 target_free_all_working_areas_restore(): freeing all 
working areas
Debug: 94 4 target.c:1611 target_free_all_working_areas_restore(): freeing all 
working areas
Debug: 95 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_flash bank stm32f4x.flash stm32f2x 0 0 0 0 stm32f4x.cpu
Debug: 96 4 command.c:145 script_debug(): command - ocd_flash ocd_flash bank 
stm32f4x.flash stm32f2x 0 0 0 0 stm32f4x.cpu
Debug: 98 4 command.c:367 register_command_handler(): registering 
'ocd_stm32f2x'...
Debug: 99 4 tcl.c:780 handle_flash_bank_command(): 'stm32f2x' driver usage 
field missing
Debug: 100 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_init
Debug: 101 4 command.c:145 script_debug(): command - init ocd_init
Debug: 103 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_target init
Debug: 104 4 command.c:145 script_debug(): command - ocd_target ocd_target init
Debug: 106 4 target.c:1174 handle_target_init_command(): Initializing targets...
Debug: 107 4 stm32_stlink.c:288 stm32_stlink_init_target(): 
stm32_stlink_init_target
Debug: 108 4 command.c:367 register_command_handler(): registering 
'ocd_target_request'...
Debug: 109 4 command.c:367 register_command_handler(): registering 
'ocd_trace'...
Debug: 110 4 command.c:367 register_command_handler(): registering 
'ocd_trace'...
Debug: 111 4 command.c:367 register_command_handler(): registering 
'ocd_fast_load_image'...
Debug: 112 4 command.c:367 register_command_handler(): registering 
'ocd_fast_load'...
Debug: 113 4 command.c:367 register_command_handler(): registering 
'ocd_profile'...
Debug: 114 4 command.c:367 register_command_handler(): registering 
'ocd_virt2phys'...
Debug: 115 4 command.c:367 register_command_handler(): registering 'ocd_reg'...
Debug: 116 4 command.c:367 register_command_handler(): registering 'ocd_poll'...
Debug: 117 4 command.c:367 register_command_handler(): registering 
'ocd_wait_halt'...
Debug: 118 4 command.c:367 register_command_handler(): registering 'ocd_halt'...
Debug: 119 4 command.c:367 register_command_handler(): registering 
'ocd_resume'...
Debug: 120 4 command.c:367 register_command_handler(): registering 
'ocd_reset'...
Debug: 121 4 command.c:367 register_command_handler(): registering 
'ocd_soft_reset_halt'...
Debug: 122 5 command.c:367 register_command_handler(): registering 'ocd_step'...
Debug: 123 5 command.c:367 register_command_handler(): registering 'ocd_mdw'...
Debug: 124 5 command.c:367 register_command_handler(): registering 'ocd_mdh'...
Debug: 125 5 command.c:367 register_command_handler(): registering 'ocd_mdb'...
Debug: 126 5 command.c:367 register_command_handler(): registering 'ocd_mww'...
Debug: 127 5 command.c:367 register_command_handler(): registering 'ocd_mwh'...
Debug: 128 5 command.c:367 register_command_handler(): registering 'ocd_mwb'...
Debug: 129 5 command.c:367 register_command_handler(): registering 'ocd_bp'...
Debug: 130 5 command.c:367 register_command_handler(): registering 'ocd_rbp'...
Debug: 131 5 command.c:367 register_command_handler(): registering 'ocd_wp'...
Debug: 132 5 command.c:367 register_command_handler(): registering 'ocd_rwp'...
Debug: 133 5 command.c:367 register_command_handler(): registering 
'ocd_load_image'...
Debug: 134 5 command.c:367 register_command_handler(): registering 
'ocd_dump_image'...
Debug: 135 5 command.c:367 register_command_handler(): registering 
'ocd_verify_image'...
Debug: 136 5 command.c:367 register_command_handler(): registering 
'ocd_test_image'...
Debug: 137 5 command.c:367 register_command_handler(): registering 
'ocd_reset_nag'...
Debug: 138 5 command.c:367 register_command_handler(): registering 'ocd_ps'...
Debug: 139 5 stlink_interface.c:92 stlink_interface_init(): 
stlink_interface_init
Debug: 140 5 stlink_layout.c:88 stlink_layout_init(): stlink_layout_init
Debug: 141 5 core.c:1592 adapter_khz_to_speed(): convert khz to interface 
specific speed value
Debug: 142 5 core.c:1595 adapter_khz_to_speed(): have interface set up
Debug: 143 5 stlink_interface.c:107 stlink_interface_speed(): 
stlink_interface_speed: ignore speed 1
Debug: 144 5 core.c:1592 adapter_khz_to_speed(): convert khz to interface 
specific speed value
Debug: 145 5 core.c:1595 adapter_khz_to_speed(): have interface set up
Info : 146 5 core.c:1399 adapter_init(): clock speed 1 kHz
Debug: 147 5 openocd.c:132 handle_init_command(): Debug Adapter init complete
Debug: 148 5 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport init
Debug: 149 5 command.c:145 script_debug(): command - ocd_transport 
ocd_transport init
Debug: 151 5 transport.c:240 handle_transport_init(): handle_transport_init
Debug: 152 5 stlink_transport.c:140 stlink_transport_init(): 
stlink_transport_init
Debug: 153 5 stlink_transport.c:157 stlink_transport_init(): current transport 
stlink_swd
Debug: 154 5 stlink_interface.c:41 stlink_interface_open(): 
stlink_interface_open
Debug: 155 5 stlink_layout.c:43 stlink_layout_open(): stlink_layout_open
Debug: 156 5 stlink_usb.c:1005 stlink_usb_open(): stlink_usb_open
Debug: 157 5 stlink_usb.c:1020 stlink_usb_open(): transport: 1 vid: 0x0483 pid: 
0x3748
Debug: 158 7 stlink_usb.c:413 stlink_usb_version(): STLINK v2 JTAG v14 API v2 
SWIM v0 VID 0x0483 PID 0x3748
Debug: 159 7 stlink_usb.c:555 stlink_usb_init_mode(): MODE: 0x02
Debug: 160 7 stlink_usb.c:587 stlink_usb_init_mode(): MODE: 0x01
Debug: 161 8 stlink_usb.c:620 stlink_usb_init_mode(): MODE: 0x02
Debug: 162 8 stlink_interface.c:53 stlink_interface_init_target(): 
stlink_interface_init_target
Debug: 163 8 stlink_usb.c:647 stlink_usb_idcode(): IDCODE: 0x2BA01477
Debug: 164 8 openocd.c:145 handle_init_command(): Examining targets...
Debug: 165 8 arm_adi_v5.c:1097 ahbap_debugport_init():  
Debug: 166 8 arm_adi_v5.c:1103 ahbap_debugport_init(): No low level jtag 
hardware found
Debug: 167 8 stm32_stlink.c:631 stm32_stlink_read_memory(): 
stm32_stlink_read_memory 0xe000ed00 4 1
Debug: 168 9 target.c:1908 target_read_u32(): address: 0xe000ed00, value: 
0x00002000
Debug: 169 9 cortex_m.c:1788 cortex_m3_examine(): Cortex-M0 r0p0 processor 
detected
Debug: 170 9 cortex_m.c:1789 cortex_m3_examine(): cpuid: 0x00002000
Debug: 171 9 stm32_stlink.c:631 stm32_stlink_read_memory(): 
stm32_stlink_read_memory 0xe0002000 4 1
Debug: 172 9 target.c:1908 target_read_u32(): address: 0xe0002000, value: 
0x00002000
Debug: 173 9 cortex_m.c:1825 cortex_m3_examine(): FPB fpcr 0x2000, numcode 32, 
numlit 0
Debug: 174 9 stm32_stlink.c:631 stm32_stlink_read_memory(): 
stm32_stlink_read_memory 0xe0001000 4 1
Debug: 175 9 target.c:1908 target_read_u32(): address: 0xe0001000, value: 
0x00002000
Debug: 176 9 cortex_m.c:1749 cortex_m3_dwt_setup(): DWT dwtcr 0x2000, comp 0, 
watch/trigger
Info : 177 9 cortex_m.c:1834 cortex_m3_examine(): stm32f4x.cpu: hardware has 32 
breakpoints, 0 watchpoints
Debug: 178 9 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_flash init
Debug: 179 9 command.c:145 script_debug(): command - ocd_flash ocd_flash init
Debug: 181 9 tcl.c:846 handle_flash_init_command(): Initializing flash 
devices...
Debug: 182 9 command.c:367 register_command_handler(): registering 
'ocd_flash'...
Debug: 183 9 command.c:367 register_command_handler(): registering 
'ocd_flash'...
Debug: 184 9 command.c:367 register_command_handler(): registering 
'ocd_flash'...
Debug: 185 9 command.c:367 register_command_handler(): registering 
'ocd_flash'...
Debug: 186 9 command.c:367 register_command_handler(): registering 
'ocd_flash'...
Debug: 187 9 command.c:367 register_command_handler(): registering 
'ocd_flash'...
Debug: 188 9 command.c:367 register_command_handler(): registering 
'ocd_flash'...
Debug: 189 9 command.c:367 register_command_handler(): registering 
'ocd_flash'...
Debug: 190 9 command.c:367 register_command_handler(): registering 
'ocd_flash'...
Debug: 191 9 command.c:367 register_command_handler(): registering 
'ocd_flash'...
Debug: 192 10 command.c:367 register_command_handler(): registering 
'ocd_flash'...
Debug: 193 10 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_mflash init
Debug: 194 10 command.c:145 script_debug(): command - ocd_mflash ocd_mflash init
Debug: 196 10 mflash.c:1378 handle_mflash_init_command(): Initializing mflash 
devices...
Debug: 197 10 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_nand init
Debug: 198 10 command.c:145 script_debug(): command - ocd_nand ocd_nand init
Debug: 200 10 tcl.c:497 handle_nand_init_command(): Initializing NAND devices...
Debug: 201 10 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_pld init
Debug: 202 10 command.c:145 script_debug(): command - ocd_pld ocd_pld init
Debug: 204 10 pld.c:207 handle_pld_init_command(): Initializing PLDs...
Debug: 205 10 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_reset
Debug: 206 10 command.c:145 script_debug(): command - reset ocd_reset
Debug: 208 10 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_target names
Debug: 209 10 command.c:145 script_debug(): command - ocd_target ocd_target 
names
Debug: 210 10 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stm32f4x.cpu invoke-event reset-start
Debug: 211 10 command.c:145 script_debug(): command - ocd_stm32f4x.cpu 
ocd_stm32f4x.cpu invoke-event reset-start
Debug: 212 10 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_jtag arp_init-reset
Debug: 213 10 command.c:145 script_debug(): command - ocd_jtag ocd_jtag 
arp_init-reset
Debug: 215 10 stlink_transport.c:37 stlink_transport_jtag_command(): 
stlink_transport_jtag_command
Debug: 216 10 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stm32f4x.cpu cget -chain-position
Debug: 217 10 command.c:145 script_debug(): command - ocd_stm32f4x.cpu 
ocd_stm32f4x.cpu cget -chain-position
Debug: 218 10 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_jtag tapisenabled stm32f4x.cpu
Debug: 219 10 command.c:145 script_debug(): command - ocd_jtag ocd_jtag 
tapisenabled stm32f4x.cpu
Debug: 220 10 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stm32f4x.cpu arp_examine
Debug: 221 10 command.c:145 script_debug(): command - ocd_stm32f4x.cpu 
ocd_stm32f4x.cpu arp_examine
Debug: 222 10 arm_adi_v5.c:1097 ahbap_debugport_init():  
Debug: 223 10 arm_adi_v5.c:1103 ahbap_debugport_init(): No low level jtag 
hardware found
Debug: 224 10 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stm32f4x.cpu invoke-event reset-assert-pre
Debug: 225 10 command.c:145 script_debug(): command - ocd_stm32f4x.cpu 
ocd_stm32f4x.cpu invoke-event reset-assert-pre
Debug: 226 10 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stm32f4x.cpu cget -chain-position
Debug: 227 10 command.c:145 script_debug(): command - ocd_stm32f4x.cpu 
ocd_stm32f4x.cpu cget -chain-position
Debug: 228 10 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_jtag tapisenabled stm32f4x.cpu
Debug: 229 10 command.c:145 script_debug(): command - ocd_jtag ocd_jtag 
tapisenabled stm32f4x.cpu
Debug: 230 10 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stm32f4x.cpu arp_reset assert 0
Debug: 231 10 command.c:145 script_debug(): command - ocd_stm32f4x.cpu 
ocd_stm32f4x.cpu arp_reset assert 0
Debug: 232 10 target.c:1611 target_free_all_working_areas_restore(): freeing 
all working areas
Debug: 233 10 stm32_stlink.c:413 stm32_stlink_assert_reset(): 
stm32_stlink_assert_reset
Debug: 234 11 stlink_usb.c:707 stlink_usb_reset(): RESET: 0x00000081
Debug: 235 11 stlink_interface.c:126 stlink_interface_execute_queue(): 
stlink_interface_execute_queue: ignored
Debug: 236 12 core.c:715 jtag_add_reset(): SRST line asserted
Debug: 237 12 core.c:738 jtag_add_reset(): TRST line asserted
Debug: 238 12 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stm32f4x.cpu invoke-event reset-assert-post
Debug: 239 12 command.c:145 script_debug(): command - ocd_stm32f4x.cpu 
ocd_stm32f4x.cpu invoke-event reset-assert-post
Debug: 240 12 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stm32f4x.cpu invoke-event reset-deassert-pre
Debug: 241 12 command.c:145 script_debug(): command - ocd_stm32f4x.cpu 
ocd_stm32f4x.cpu invoke-event reset-deassert-pre
Debug: 242 12 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stm32f4x.cpu cget -chain-position
Debug: 243 12 command.c:145 script_debug(): command - ocd_stm32f4x.cpu 
ocd_stm32f4x.cpu cget -chain-position
Debug: 244 12 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_jtag tapisenabled stm32f4x.cpu
Debug: 245 12 command.c:145 script_debug(): command - ocd_jtag ocd_jtag 
tapisenabled stm32f4x.cpu
Debug: 246 12 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stm32f4x.cpu arp_reset deassert 0
Debug: 247 12 command.c:145 script_debug(): command - ocd_stm32f4x.cpu 
ocd_stm32f4x.cpu arp_reset deassert 0
Debug: 248 12 target.c:1611 target_free_all_working_areas_restore(): freeing 
all working areas
Debug: 249 12 stm32_stlink.c:442 stm32_stlink_deassert_reset(): 
stm32_stlink_deassert_reset
Debug: 250 12 stlink_interface.c:126 stlink_interface_execute_queue(): 
stlink_interface_execute_queue: ignored
Debug: 251 12 core.c:719 jtag_add_reset(): SRST line released
Debug: 252 12 core.c:743 jtag_add_reset(): TRST line released
Debug: 253 12 core.c:323 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 254 12 stm32_stlink.c:502 stm32_stlink_resume(): stm32_stlink_resume 1 
0x00000000 0 0
Debug: 255 12 armv7m.c:144 armv7m_restore_context():  
Debug: 256 12 target.c:1290 target_call_event_callbacks(): target event 4 
(resumed)
Debug: 257 12 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stm32f4x.cpu invoke-event reset-deassert-post
Debug: 258 12 command.c:145 script_debug(): command - ocd_stm32f4x.cpu 
ocd_stm32f4x.cpu invoke-event reset-deassert-post
Debug: 259 12 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stm32f4x.cpu invoke-event reset-end
Debug: 260 12 command.c:145 script_debug(): command - ocd_stm32f4x.cpu 
ocd_stm32f4x.cpu invoke-event reset-end
Debug: 261 13 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_init
Debug: 262 13 command.c:145 script_debug(): command - init ocd_init
Debug: 264 114 stm32_stlink.c:56 stm32_stlink_load_core_reg_u32(): 
stm32_stlink_load_core_reg_u32
Debug: 265 114 stm32_stlink.c:71 stm32_stlink_load_core_reg_u32(): load from 
core reg 0  value 0x0
Debug: 266 114 stm32_stlink.c:56 stm32_stlink_load_core_reg_u32(): 
stm32_stlink_load_core_reg_u32
Debug: 267 114 stm32_stlink.c:71 stm32_stlink_load_core_reg_u32(): load from 
core reg 1  value 0x200002ac
Debug: 268 114 stm32_stlink.c:56 stm32_stlink_load_core_reg_u32(): 
stm32_stlink_load_core_reg_u32
Debug: 269 115 stm32_stlink.c:71 stm32_stlink_load_core_reg_u32(): load from 
core reg 2  value 0x1
Debug: 270 115 stm32_stlink.c:56 stm32_stlink_load_core_reg_u32(): 
stm32_stlink_load_core_reg_u32
Debug: 271 115 stm32_stlink.c:71 stm32_stlink_load_core_reg_u32(): load from 
core reg 3  value 0x0
Debug: 272 115 stm32_stlink.c:56 stm32_stlink_load_core_reg_u32(): 
stm32_stlink_load_core_reg_u32
Debug: 273 116 stm32_stlink.c:71 stm32_stlink_load_core_reg_u32(): load from 
core reg 4  value 0x0
Debug: 274 116 stm32_stlink.c:56 stm32_stlink_load_core_reg_u32(): 
stm32_stlink_load_core_reg_u32
Debug: 275 116 stm32_stlink.c:71 stm32_stlink_load_core_reg_u32(): load from 
core reg 5  value 0x0
Debug: 276 116 stm32_stlink.c:56 stm32_stlink_load_core_reg_u32(): 
stm32_stlink_load_core_reg_u32
Debug: 277 116 stm32_stlink.c:71 stm32_stlink_load_core_reg_u32(): load from 
core reg 6  value 0x0
Debug: 278 116 stm32_stlink.c:56 stm32_stlink_load_core_reg_u32(): 
stm32_stlink_load_core_reg_u32
Debug: 279 117 stm32_stlink.c:71 stm32_stlink_load_core_reg_u32(): load from 
core reg 7  value 0x20000d00
Debug: 280 117 stm32_stlink.c:56 stm32_stlink_load_core_reg_u32(): 
stm32_stlink_load_core_reg_u32
Debug: 281 117 stm32_stlink.c:71 stm32_stlink_load_core_reg_u32(): load from 
core reg 8  value 0x0
Debug: 282 117 stm32_stlink.c:56 stm32_stlink_load_core_reg_u32(): 
stm32_stlink_load_core_reg_u32
Debug: 283 118 stm32_stlink.c:71 stm32_stlink_load_core_reg_u32(): load from 
core reg 9  value 0x0
Debug: 284 118 stm32_stlink.c:56 stm32_stlink_load_core_reg_u32(): 
stm32_stlink_load_core_reg_u32
Debug: 285 118 stm32_stlink.c:71 stm32_stlink_load_core_reg_u32(): load from 
core reg 10  value 0x0
Debug: 286 118 stm32_stlink.c:56 stm32_stlink_load_core_reg_u32(): 
stm32_stlink_load_core_reg_u32
Debug: 287 118 stm32_stlink.c:71 stm32_stlink_load_core_reg_u32(): load from 
core reg 11  value 0x0
Debug: 288 118 stm32_stlink.c:56 stm32_stlink_load_core_reg_u32(): 
stm32_stlink_load_core_reg_u32
Debug: 289 119 stm32_stlink.c:71 stm32_stlink_load_core_reg_u32(): load from 
core reg 12  value 0x0
Debug: 290 119 stm32_stlink.c:56 stm32_stlink_load_core_reg_u32(): 
stm32_stlink_load_core_reg_u32
Debug: 291 119 stm32_stlink.c:71 stm32_stlink_load_core_reg_u32(): load from 
core reg 13  value 0x20000ce0
Debug: 292 119 stm32_stlink.c:56 stm32_stlink_load_core_reg_u32(): 
stm32_stlink_load_core_reg_u32
Debug: 293 120 stm32_stlink.c:71 stm32_stlink_load_core_reg_u32(): load from 
core reg 14  value 0xfffffff9
Debug: 294 120 stm32_stlink.c:56 stm32_stlink_load_core_reg_u32(): 
stm32_stlink_load_core_reg_u32
Debug: 295 120 stm32_stlink.c:71 stm32_stlink_load_core_reg_u32(): load from 
core reg 15  value 0x80001be
Debug: 296 120 stm32_stlink.c:56 stm32_stlink_load_core_reg_u32(): 
stm32_stlink_load_core_reg_u32
Debug: 297 120 stm32_stlink.c:71 stm32_stlink_load_core_reg_u32(): load from 
core reg 16  value 0x6100000f
Debug: 298 120 stm32_stlink.c:56 stm32_stlink_load_core_reg_u32(): 
stm32_stlink_load_core_reg_u32
Debug: 299 121 stm32_stlink.c:71 stm32_stlink_load_core_reg_u32(): load from 
core reg 17  value 0x20000ce0
Debug: 300 121 stm32_stlink.c:56 stm32_stlink_load_core_reg_u32(): 
stm32_stlink_load_core_reg_u32
Debug: 301 121 stm32_stlink.c:71 stm32_stlink_load_core_reg_u32(): load from 
core reg 18  value 0x0
Debug: 302 121 stm32_stlink.c:56 stm32_stlink_load_core_reg_u32(): 
stm32_stlink_load_core_reg_u32
Debug: 303 122 stm32_stlink.c:134 stm32_stlink_load_core_reg_u32(): load from 
special reg 19 value 0x0
Debug: 304 122 stm32_stlink.c:56 stm32_stlink_load_core_reg_u32(): 
stm32_stlink_load_core_reg_u32
Debug: 305 122 stm32_stlink.c:134 stm32_stlink_load_core_reg_u32(): load from 
special reg 20 value 0x0
Debug: 306 122 stm32_stlink.c:56 stm32_stlink_load_core_reg_u32(): 
stm32_stlink_load_core_reg_u32
Debug: 307 122 stm32_stlink.c:134 stm32_stlink_load_core_reg_u32(): load from 
special reg 21 value 0x0
Debug: 308 122 stm32_stlink.c:56 stm32_stlink_load_core_reg_u32(): 
stm32_stlink_load_core_reg_u32
Debug: 309 123 stm32_stlink.c:134 stm32_stlink_load_core_reg_u32(): load from 
special reg 22 value 0x0
Debug: 310 123 stm32_stlink.c:369 stlink_debug_entry(): entered debug state in 
core mode: Handler at PC 0x080001be, target->state: halted
Debug: 311 123 target.c:1290 target_call_event_callbacks(): target event 2 
(gdb-halt)
Debug: 312 123 target.c:1290 target_call_event_callbacks(): target event 3 
(halted)
User : 313 123 target.c:1663 target_arch_state(): target state: halted
User : 314 123 armv7m.c:517 armv7m_arch_state(): target halted due to 
breakpoint, current mode: Handler SysTick
xPSR: 0x6100000f pc: 0x080001be msp: 0x20000ce0
Debug: 315 123 stm32_stlink.c:401 stm32_stlink_poll(): halted: PC: 0x080001be
Info : 316 4720 server.c:83 add_connection(): accepting 'telnet' connection 
from 4444
Debug: 317 7328 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_flash info 0
Debug: 318 7328 command.c:145 script_debug(): command - ocd_flash ocd_flash 
info 0
Debug: 320 7328 stm32_stlink.c:631 stm32_stlink_read_memory(): 
stm32_stlink_read_memory 0xe0042000 4 1
Debug: 321 7328 target.c:1908 target_read_u32(): address: 0xe0042000, value: 
0x20006411
Debug: 322 7328 stm32_stlink.c:631 stm32_stlink_read_memory(): 
stm32_stlink_read_memory 0xe000ed00 4 1
Debug: 323 7329 target.c:1908 target_read_u32(): address: 0xe000ed00, value: 
0x410fc241
Info : 324 7329 stm32f2x.c:577 stm32x_get_device_id(): stm32f4x errata detected 
- fixing incorrect MCU_IDCODE
Info : 325 7329 stm32f2x.c:598 stm32x_probe(): device id = 0x10006413
Debug: 326 7329 stm32_stlink.c:631 stm32_stlink_read_memory(): 
stm32_stlink_read_memory 0x1fff7a22 2 1
Debug: 327 7329 target.c:1932 target_read_u16(): address: 0x1fff7a22, value: 
0x0400
Info : 328 7329 stm32f2x.c:627 stm32x_probe(): flash size = 1024kbytes
User : 329 7330 command.c:547 command_print(): #0 : stm32f2x at 0x08000000, 
size 0x00100000, buswidth 0, chipwidth 0
User : 330 7330 command.c:547 command_print():  #  0: 0x00000000 (0x4000 16kB) 
not protected
User : 331 7330 command.c:547 command_print():  #  1: 0x00004000 (0x4000 16kB) 
not protected
User : 332 7330 command.c:547 command_print():  #  2: 0x00008000 (0x4000 16kB) 
not protected
User : 333 7330 command.c:547 command_print():  #  3: 0x0000c000 (0x4000 16kB) 
not protected
User : 334 7330 command.c:547 command_print():  #  4: 0x00010000 (0x10000 64kB) 
not protected
User : 335 7330 command.c:547 command_print():  #  5: 0x00020000 (0x20000 
128kB) not protected
User : 336 7330 command.c:547 command_print():  #  6: 0x00040000 (0x20000 
128kB) not protected
User : 337 7330 command.c:547 command_print():  #  7: 0x00060000 (0x20000 
128kB) not protected
User : 338 7330 command.c:547 command_print():  #  8: 0x00080000 (0x20000 
128kB) not protected
User : 339 7330 command.c:547 command_print():  #  9: 0x000a0000 (0x20000 
128kB) not protected
User : 340 7330 command.c:547 command_print():  # 10: 0x000c0000 (0x20000 
128kB) not protected
User : 341 7330 command.c:547 command_print():  # 11: 0x000e0000 (0x20000 
128kB) not protected
Debug: 342 7330 stm32_stlink.c:631 stm32_stlink_read_memory(): 
stm32_stlink_read_memory 0xe0042000 4 1
Debug: 343 7330 target.c:1908 target_read_u32(): address: 0xe0042000, value: 
0x20006411
Debug: 344 7330 stm32_stlink.c:631 stm32_stlink_read_memory(): 
stm32_stlink_read_memory 0xe000ed00 4 1
Debug: 345 7331 target.c:1908 target_read_u32(): address: 0xe000ed00, value: 
0x410fc241
Info : 346 7331 stm32f2x.c:577 stm32x_get_device_id(): stm32f4x errata detected 
- fixing incorrect MCU_IDCODE
User : 347 7331 command.c:547 command_print(): stm32f4x - Rev: A
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to