Forum: Mikrocontroller und Digitale Elektronik Eclipse STM32f0 Debug Fehler


von Phil B. (Firma: H.) (philipp95)


Lesenswert?

Guten Tag,
ich hab ein Problem mit dem Debug meines STM32f0-discovery boards in 
Eclipse.
http://www.st.com/web/en/catalog/tools/FM116/SC959/SS1532/LN1848/PF259724?s_searchtype=keyword

Erstmal zu meinen Entwicklungstools:
Ich nutze Eclipse Kepler CDT
Sourcery G++ Cross GCC - Toolchain
OpenOCD GDB-Server 0.6.1
den GDB Hardware Debugger (Legacy GDB Hardware Debugging Launcher)
und das STM32f0-Discovery Board mit einem STM32f052RBT6 Chip (ST-Link v2 
auf dem Board enthalten).


Ich habe für dieses Board ein Projekt erstellt und scheitere nun am dem 
Versuch es in Eclipse zu debuggen. Das Projekt lässt sich erstellen und 
auf über ST-Link utility auf das Board flashen. Nach dem Flashen läuft 
das Demoprojekt.

Nun zu meinen Eclipseeinstellungen:

Die Konfiguration des OpenOCD - GDB-Servers
http://www.bilder-hochladen.net/files/lf8g-b-6512.png

Die Konfiguration des GDB-Debuggers
http://www.bilder-hochladen.net/files/lf8g-c-c20a.png
http://www.bilder-hochladen.net/files/lf8g-d-c51c.png
http://www.bilder-hochladen.net/files/lf8g-e-aab3.png
http://www.bilder-hochladen.net/files/lf8g-f-9bf3.png

Meldung des GDB-Servers (Open OCD)
http://www.bilder-hochladen.net/files/lf8g-h-70ef.png

Fehlermeldung des GDB-Debuggers
http://www.bilder-hochladen.net/files/lf8g-i-6f49.png

Fehlermeldung des GDB-Servers (Open OCD)
http://www.bilder-hochladen.net/files/lf8g-j-1f0e.png

Ebenfalls ist es möglich auf dem Board via Konsole - OpenOCD und Telnet 
zu Debuggen.
Benutze ich falsche Parameter?

von Jim M. (turboj)


Lesenswert?

> OpenOCD GDB-Server 0.6.1

Aktuelle OpenOCD Version ist 0.7.0

> Das Projekt lässt sich erstellen und auf über ST-Link utility
> auf das Board flashen.

Ich bin mir nicht 100%ig sicher, ob OpenOCD mit dem standard ST-Link 
Treiber funzt. Gibt das beim Starten Fehlermeldungen?

Kanst Du dich via Terminal (Eclipse hat auch eins, muss man eventuell 
manuell nachinstallieren) an localhost:4444 verbinden? Dort hat OpenOCD 
eine weitere Schnittstelle, über die man z.B. "halt" oder "reset" 
Befehle absetzen kann.

von Phil B. (Firma: H.) (philipp95)


Lesenswert?

Danke für die Antwort!

> Aktuelle OpenOCD Version ist 0.7.0

Das stimmt. Ich habe jetzt auf auf die neue Version upgedated, jedoch 
ohne Erfolg bei dem Debuggen dieses Boards.
Kann es sein, dass das Board noch zu neu ist und der Standard GDB 
Hardware Debugging Launcher von Eclipse damit noch nicht zurecht kommt?

>Ich bin mir nicht 100%ig sicher, ob OpenOCD mit dem standard ST-Link
>Treiber funzt. Gibt das beim Starten Fehlermeldungen?

Doch OpenOCD unterstützt diese Treiber. Ich habe das STM32f051 bereits 
mit Eclipse zum Laufen gebracht: 
http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/PF253215

Habe ebenfalls OpenOCD und den GDB-Debugger verwendet.
Ebenso funktioniert das Debuggen via Konsole und Telnet und auch mit der 
Atollic IDE. Nur eben nicht in Eclipse bzw. mit dem Standard GDB 
Hardware Debugging Launcher.

>Kanst Du dich via Terminal (Eclipse hat auch eins, muss man eventuell
>manuell nachinstallieren) an localhost:4444 verbinden? Dort hat OpenOCD
>eine weitere Schnittstelle, über die man z.B. "halt" oder "reset"
>Befehle absetzen kann.

Das wird dann bestimmt keinen Unterschied zu Telnet machen.
Habt ihr noch andere Ideen bzw. Vorschläge?

von Martin T. (mthomas) (Moderator) Benutzerseite


Lesenswert?

OpenOCD mit -d3 starten und in der Eclipse-Debug-Konfiguration 'verbose 
console mode' aktivieren bringt vielleicht erhellende 
Zusatzinformationen.

von Phil B. (Firma: H.) (philipp95)


Lesenswert?

> OpenOCD mit -d3 starten und in der Eclipse-Debug-Konfiguration 'verbose
> console mode' aktivieren bringt vielleicht erhellende
> Zusatzinformationen.

Okay habe ich gemacht. Jetzt bekomme ich folgende Ausgaben von der 
Konsole:

***************************************************************|
Ausgaben des OpenOCD GDB-Servers vor dem Starten des Debuggers:|
***************************************************************|

Open On-Chip Debugger 0.7.0 (2013-05-05-10:41)
Licensed under GNU GPL v2
For bug reports, read
  http://openocd.sourceforge.net/doc/doxygen/bugs.html
User : 13 4 command.c:549 command_print(): debug_level: 3
Debug: 14 4 configuration.c:45 add_script_search_dir(): adding 
C:/Users/p-boensch/Desktop/Eclipse/Eclipse_Juno_STM32/system/debug/openo 
cd-0.7.0/bin/..
Debug: 15 4 configuration.c:45 add_script_search_dir(): adding 
C:/Users/p-boensch/Desktop/Eclipse/Eclipse_Juno_STM32/system/debug/openo 
cd-0.7.0/bin/../share/openocd/scripts
Debug: 16 4 configuration.c:45 add_script_search_dir(): adding 
C:/Users/p-boensch/Desktop/Eclipse/Eclipse_Juno_STM32/system/debug/openo 
cd-0.7.0/bin/../scripts
Debug: 17 7 configuration.c:86 find_file(): found 
C:\Users\p-boensch\Desktop\Eclipse\Eclipse_Juno_STM32\eclipse-kepler\\sc 
ripts\board\stm32f0discovery.cfg
Debug: 18 8 configuration.c:86 find_file(): found 
C:/Users/p-boensch/Desktop/Eclipse/Eclipse_Juno_STM32/system/debug/openo 
cd-0.7.0/bin/../scripts/interface/stlink-v2.cfg
Debug: 19 9 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_interface hla
Debug: 20 10 command.c:145 script_debug(): command - interface 
ocd_interface hla
Debug: 22 10 command.c:369 register_command_handler(): registering 
'ocd_hla_device_desc'...
Debug: 23 10 command.c:369 register_command_handler(): registering 
'ocd_hla_serial'...
Debug: 24 11 command.c:369 register_command_handler(): registering 
'ocd_hla_layout'...
Debug: 25 11 command.c:369 register_command_handler(): registering 
'ocd_hla_vid_pid'...
Debug: 26 11 command.c:369 register_command_handler(): registering 
'ocd_stlink_api'...
Debug: 27 12 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_hla_layout stlink
Debug: 28 12 command.c:145 script_debug(): command - hla_layout 
ocd_hla_layout stlink
Debug: 30 12 hla_interface.c:167 hl_interface_handle_layout_command(): 
hl_interface_handle_layout_command
Debug: 31 12 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_hla_device_desc ST-LINK/V2
Debug: 32 12 command.c:145 script_debug(): command - hla_device_desc 
ocd_hla_device_desc ST-LINK/V2
Debug: 34 13 hla_interface.c:141 
hl_interface_handle_device_desc_command(): 
hl_interface_handle_device_desc_command
Debug: 35 13 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_hla_vid_pid 0x0483 0x3748
Debug: 36 14 command.c:145 script_debug(): command - hla_vid_pid 
ocd_hla_vid_pid 0x0483 0x3748
Debug: 38 14 hla_interface.c:195 hl_interface_handle_vid_pid_command(): 
hl_interface_handle_vid_pid_command
Debug: 39 14 configuration.c:86 find_file(): found 
C:/Users/p-boensch/Desktop/Eclipse/Eclipse_Juno_STM32/system/debug/openo 
cd-0.7.0/bin/../scripts/target/stm32f0x_stlink.cfg
Debug: 40 16 configuration.c:86 find_file(): found 
C:/Users/p-boensch/Desktop/Eclipse/Eclipse_Juno_STM32/system/debug/openo 
cd-0.7.0/bin/../scripts/target/stm32_stlink.cfg
Debug: 41 17 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_transport select hla_swd
Debug: 42 17 command.c:145 script_debug(): command - ocd_transport 
ocd_transport select hla_swd
Debug: 43 18 hla_transport.c:187 hl_transport_select(): 
hl_transport_select
Debug: 44 18 command.c:369 register_command_handler(): registering 
'ocd_hla'...
Debug: 45 19 command.c:369 register_command_handler(): registering 
'ocd_jtag'...
Debug: 46 19 command.c:369 register_command_handler(): registering 
'ocd_jtag'...
Debug: 47 19 command.c:369 register_command_handler(): registering 
'ocd_jtag'...
Debug: 48 19 command.c:369 register_command_handler(): registering 
'ocd_jtag'...
Debug: 49 19 command.c:369 register_command_handler(): registering 
'ocd_jtag'...
Debug: 50 20 command.c:369 register_command_handler(): registering 
'ocd_jtag'...
Debug: 51 20 command.c:369 register_command_handler(): registering 
'ocd_jtag'...
Debug: 52 21 command.c:369 register_command_handler(): registering 
'ocd_jtag'...
Debug: 53 21 command.c:369 register_command_handler(): registering 
'ocd_jtag'...
Debug: 54 21 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_hla newtap stm32f0x cpu -expected-id 0x0bb11477
Debug: 55 22 command.c:145 script_debug(): command - ocd_hla ocd_hla 
newtap stm32f0x cpu -expected-id 0x0bb11477
Debug: 56 23 hla_tcl.c:104 jim_hl_newtap_cmd(): Creating New Tap, Chip: 
stm32f0x, Tap: cpu, Dotted: stm32f0x.cpu, 2 params
Debug: 57 23 hla_tcl.c:114 jim_hl_newtap_cmd(): Processing option: 
-expected-id
Debug: 58 23 core.c:1323 jtag_tap_init(): Created Tap: stm32f0x.cpu @ 
abs position 0, irlen 0, capture: 0x0 mask: 0x0
Debug: 59 23 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_target create stm32f0x.cpu hla_target 
-chain-position stm32f0x.cpu
Debug: 60 24 command.c:145 script_debug(): command - ocd_target 
ocd_target create stm32f0x.cpu hla_target -chain-position stm32f0x.cpu
Debug: 61 24 target.c:1615 target_free_all_working_areas_restore(): 
freeing all working areas
Debug: 62 25 command.c:369 register_command_handler(): registering 
'ocd_arm'...
Debug: 63 25 command.c:369 register_command_handler(): registering 
'ocd_arm'...
Debug: 64 25 command.c:369 register_command_handler(): registering 
'ocd_arm'...
Debug: 65 26 command.c:369 register_command_handler(): registering 
'ocd_arm'...
Debug: 66 26 command.c:369 register_command_handler(): registering 
'ocd_arm'...
Debug: 67 26 command.c:369 register_command_handler(): registering 
'ocd_arm'...
Debug: 68 26 hla_target.c:299 adapter_target_create(): 
adapter_target_create
Debug: 69 26 hla_target.c:272 adapter_init_arch_info(): 
adapter_init_arch_info
Debug: 70 26 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 71 27 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 72 27 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 73 27 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 74 28 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 75 28 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 76 28 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 77 28 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 78 29 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 79 29 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 80 29 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 81 29 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 82 29 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 83 30 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 84 30 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 85 30 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 86 31 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 87 31 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 88 31 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 89 31 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 90 32 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 91 32 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 92 32 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 93 32 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 94 33 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 95 33 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 96 33 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_stm32f0x.cpu configure -work-area-phys 0x20000000 
-work-area-size 0x2000 -work-area-backup 0
Debug: 97 34 command.c:145 script_debug(): command - ocd_stm32f0x.cpu 
ocd_stm32f0x.cpu configure -work-area-phys 0x20000000 -work-area-size 
0x2000 -work-area-backup 0
Debug: 98 36 target.c:1615 target_free_all_working_areas_restore(): 
freeing all working areas
Debug: 99 36 target.c:1615 target_free_all_working_areas_restore(): 
freeing all working areas
Debug: 100 36 target.c:1615 target_free_all_working_areas_restore(): 
freeing all working areas
Debug: 101 36 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_flash bank stm32f0x.flash stm32f1x 0 0 0 0 
stm32f0x.cpu
Debug: 102 37 command.c:145 script_debug(): command - ocd_flash 
ocd_flash bank stm32f0x.flash stm32f1x 0 0 0 0 stm32f0x.cpu
Debug: 104 38 command.c:369 register_command_handler(): registering 
'ocd_stm32f1x'...
Debug: 105 38 command.c:369 register_command_handler(): registering 
'ocd_stm32f1x'...
Debug: 106 38 command.c:369 register_command_handler(): registering 
'ocd_stm32f1x'...
Debug: 107 38 command.c:369 register_command_handler(): registering 
'ocd_stm32f1x'...
Debug: 108 38 command.c:369 register_command_handler(): registering 
'ocd_stm32f1x'...
Debug: 109 39 tcl.c:781 handle_flash_bank_command(): 'stm32f1x' driver 
usage field missing
Debug: 110 39 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_reset_config srst_only srst_nogate
Debug: 111 39 command.c:145 script_debug(): command - reset_config 
ocd_reset_config srst_only srst_nogate
User : 113 40 command.c:549 command_print(): srst_only separate 
srst_nogate srst_open_drain connect_deassert_srst
Debug: 114 44 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_init
Debug: 115 44 command.c:145 script_debug(): command - init ocd_init
Debug: 117 44 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_target init
Debug: 118 44 command.c:145 script_debug(): command - ocd_target 
ocd_target init
Debug: 120 45 target.c:1178 handle_target_init_command(): Initializing 
targets...
Debug: 121 45 hla_target.c:289 adapter_init_target(): 
adapter_init_target
Debug: 122 45 command.c:369 register_command_handler(): registering 
'ocd_target_request'...
Debug: 123 46 command.c:369 register_command_handler(): registering 
'ocd_trace'...
Debug: 124 46 command.c:369 register_command_handler(): registering 
'ocd_trace'...
Debug: 125 46 command.c:369 register_command_handler(): registering 
'ocd_fast_load_image'...
Debug: 126 46 command.c:369 register_command_handler(): registering 
'ocd_fast_load'...
Debug: 127 46 command.c:369 register_command_handler(): registering 
'ocd_profile'...
Debug: 128 47 command.c:369 register_command_handler(): registering 
'ocd_virt2phys'...
Debug: 129 47 command.c:369 register_command_handler(): registering 
'ocd_reg'...
Debug: 130 47 command.c:369 register_command_handler(): registering 
'ocd_poll'...
Debug: 131 47 command.c:369 register_command_handler(): registering 
'ocd_wait_halt'...
Debug: 132 47 command.c:369 register_command_handler(): registering 
'ocd_halt'...
Debug: 133 48 command.c:369 register_command_handler(): registering 
'ocd_resume'...
Debug: 134 49 command.c:369 register_command_handler(): registering 
'ocd_reset'...
Debug: 135 49 command.c:369 register_command_handler(): registering 
'ocd_soft_reset_halt'...
Debug: 136 50 command.c:369 register_command_handler(): registering 
'ocd_step'...
Debug: 137 50 command.c:369 register_command_handler(): registering 
'ocd_mdw'...
Debug: 138 50 command.c:369 register_command_handler(): registering 
'ocd_mdh'...
Debug: 139 50 command.c:369 register_command_handler(): registering 
'ocd_mdb'...
Debug: 140 51 command.c:369 register_command_handler(): registering 
'ocd_mww'...
Debug: 141 52 command.c:369 register_command_handler(): registering 
'ocd_mwh'...
Debug: 142 53 command.c:369 register_command_handler(): registering 
'ocd_mwb'...
Debug: 143 53 command.c:369 register_command_handler(): registering 
'ocd_bp'...
Debug: 144 53 command.c:369 register_command_handler(): registering 
'ocd_rbp'...
Debug: 145 53 command.c:369 register_command_handler(): registering 
'ocd_wp'...
Debug: 146 53 command.c:369 register_command_handler(): registering 
'ocd_rwp'...
Debug: 147 56 command.c:369 register_command_handler(): registering 
'ocd_load_image'...
Debug: 148 56 command.c:369 register_command_handler(): registering 
'ocd_dump_image'...
Debug: 149 57 command.c:369 register_command_handler(): registering 
'ocd_verify_image'...
Debug: 150 57 command.c:369 register_command_handler(): registering 
'ocd_test_image'...
Debug: 151 57 command.c:369 register_command_handler(): registering 
'ocd_reset_nag'...
Debug: 152 57 command.c:369 register_command_handler(): registering 
'ocd_ps'...
Debug: 153 58 hla_interface.c:107 hl_interface_init(): hl_interface_init
Debug: 154 58 hla_layout.c:91 hl_layout_init(): hl_layout_init
Info : 155 58 core.c:1375 adapter_init(): This adapter doesn't support 
configurable speed
Debug: 156 58 openocd.c:132 handle_init_command(): Debug Adapter init 
complete
Debug: 157 58 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_transport init
Debug: 158 59 command.c:145 script_debug(): command - ocd_transport 
ocd_transport init
Debug: 160 59 transport.c:240 handle_transport_init(): 
handle_transport_init
Debug: 161 59 hla_transport.c:148 hl_transport_init(): hl_transport_init
Debug: 162 60 hla_transport.c:165 hl_transport_init(): current transport 
hla_swd
Debug: 163 60 hla_interface.c:44 hl_interface_open(): hl_interface_open
Debug: 164 60 hla_layout.c:42 hl_layout_open(): hl_layout_open
Debug: 165 60 stlink_usb.c:1233 stlink_usb_open(): stlink_usb_open
Debug: 166 60 stlink_usb.c:1251 stlink_usb_open(): transport: 1 vid: 
0x0483 pid: 0x3748
Info : 167 117 stlink_usb.c:423 stlink_usb_version(): STLINK v2 JTAG v17 
API v2 SWIM v0 VID 0x0483 PID 0x3748
Debug: 168 122 stlink_usb.c:601 stlink_usb_init_mode(): MODE: 0x00
Info : 169 130 stlink_usb.c:457 stlink_usb_check_voltage(): Target 
voltage: 2.913674
Debug: 170 130 stlink_usb.c:656 stlink_usb_init_mode(): MODE: 0x01
Debug: 171 137 stlink_usb.c:695 stlink_usb_init_mode(): MODE: 0x02
Debug: 172 137 hla_interface.c:69 hl_interface_init_target(): 
hl_interface_init_target
Debug: 173 142 stlink_usb.c:722 stlink_usb_idcode(): IDCODE: 0x0BB11477
Debug: 174 142 openocd.c:145 handle_init_command(): Examining targets...
Debug: 175 142 target.c:1294 target_call_event_callbacks(): target event 
21 (examine-start)
Debug: 176 142 hla_target.c:697 adapter_read_memory(): 
adapter_read_memory 0xe000ed00 4 1
Debug: 177 150 target.c:1912 target_read_u32(): address: 0xe000ed00, 
value: 0x410cc200
Debug: 178 150 cortex_m.c:1852 cortex_m3_examine(): Cortex-M0 r0p0 
processor detected
Debug: 179 150 cortex_m.c:1853 cortex_m3_examine(): cpuid: 0x410cc200
Debug: 180 150 hla_target.c:697 adapter_read_memory(): 
adapter_read_memory 0xe0002000 4 1
Debug: 181 158 target.c:1912 target_read_u32(): address: 0xe0002000, 
value: 0x00000040
Debug: 182 158 target.c:1978 target_write_u32(): address: 0xe0002008, 
value: 0x00000000
Debug: 183 158 hla_target.c:745 adapter_write_memory(): 
adapter_write_memory 0xe0002008 4 1
Debug: 184 167 target.c:1978 target_write_u32(): address: 0xe000200c, 
value: 0x00000000
Debug: 185 167 hla_target.c:745 adapter_write_memory(): 
adapter_write_memory 0xe000200c 4 1
Debug: 186 174 target.c:1978 target_write_u32(): address: 0xe0002010, 
value: 0x00000000
Debug: 187 174 hla_target.c:745 adapter_write_memory(): 
adapter_write_memory 0xe0002010 4 1
Debug: 188 181 target.c:1978 target_write_u32(): address: 0xe0002014, 
value: 0x00000000
Debug: 189 181 hla_target.c:745 adapter_write_memory(): 
adapter_write_memory 0xe0002014 4 1
Debug: 190 188 cortex_m.c:1900 cortex_m3_examine(): FPB fpcr 0x40, 
numcode 4, numlit 0
Debug: 191 188 hla_target.c:697 adapter_read_memory(): 
adapter_read_memory 0xe0001000 4 1
Debug: 192 194 target.c:1912 target_read_u32(): address: 0xe0001000, 
value: 0x20000000
Debug: 193 194 target.c:1978 target_write_u32(): address: 0xe0001028, 
value: 0x00000000
Debug: 194 194 hla_target.c:745 adapter_write_memory(): 
adapter_write_memory 0xe0001028 4 1
Debug: 195 201 target.c:1978 target_write_u32(): address: 0xe0001038, 
value: 0x00000000
Debug: 196 201 hla_target.c:745 adapter_write_memory(): 
adapter_write_memory 0xe0001038 4 1
Debug: 197 208 cortex_m.c:1809 cortex_m3_dwt_setup(): DWT dwtcr 
0x20000000, comp 2, watch/trigger
Info : 198 208 cortex_m.c:1909 cortex_m3_examine(): stm32f0x.cpu: 
hardware has 4 breakpoints, 2 watchpoints
Debug: 199 208 target.c:1294 target_call_event_callbacks(): target event 
22 (examine-end)
Debug: 200 208 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_flash init
Debug: 201 209 command.c:145 script_debug(): command - ocd_flash 
ocd_flash init
Debug: 203 209 tcl.c:847 handle_flash_init_command(): Initializing flash 
devices...
Debug: 204 209 command.c:369 register_command_handler(): registering 
'ocd_flash'...
Debug: 205 209 command.c:369 register_command_handler(): registering 
'ocd_flash'...
Debug: 206 209 command.c:369 register_command_handler(): registering 
'ocd_flash'...
Debug: 207 210 command.c:369 register_command_handler(): registering 
'ocd_flash'...
Debug: 208 210 command.c:369 register_command_handler(): registering 
'ocd_flash'...
Debug: 209 210 command.c:369 register_command_handler(): registering 
'ocd_flash'...
Debug: 210 210 command.c:369 register_command_handler(): registering 
'ocd_flash'...
Debug: 211 210 command.c:369 register_command_handler(): registering 
'ocd_flash'...
Debug: 212 210 command.c:369 register_command_handler(): registering 
'ocd_flash'...
Debug: 213 211 command.c:369 register_command_handler(): registering 
'ocd_flash'...
Debug: 214 211 command.c:369 register_command_handler(): registering 
'ocd_flash'...
Debug: 215 211 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_mflash init
Debug: 216 211 command.c:145 script_debug(): command - ocd_mflash 
ocd_mflash init
Debug: 218 212 mflash.c:1379 handle_mflash_init_command(): Initializing 
mflash devices...
Debug: 219 212 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_nand init
Debug: 220 212 command.c:145 script_debug(): command - ocd_nand ocd_nand 
init
Debug: 222 212 tcl.c:497 handle_nand_init_command(): Initializing NAND 
devices...
Debug: 223 212 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_pld init
Debug: 224 213 command.c:145 script_debug(): command - ocd_pld ocd_pld 
init
Debug: 226 213 pld.c:207 handle_pld_init_command(): Initializing PLDs...

**************************************************************|
Ausgabe des Legacy GDB Hardware Debugging Launchers bei Start:|
**************************************************************|
1-gdb-set confirm off
1^done
(gdb)
2-gdb-set width 0
2^done
(gdb)
3-gdb-set height 0
3^done
(gdb)
4-interpreter-exec console echo
4^done
(gdb)
5-gdb-show prompt
5^done,value="(gdb) "
(gdb)
6-gdb-set new-console on
6^error,msg="No symbol table is loaded.  Use the \"file\" command."
(gdb)
7 symbol-file 
C:\\Users\\p-boensch\\Desktop\\Eclipse\\Eclipse_Juno_STM32\\Projekte\\st 
m32f0x\\Debug\\stm32f0x.elf
&"symbol-file 
C:\\\\Users\\\\p-boensch\\\\Desktop\\\\Eclipse\\\\Eclipse_Juno_STM32\\\\ 
Projekte\\\\stm32f0x\\\\Debug\\\\stm32f0x.elf\n"
~"Reading symbols from 
c:\\users\\p-boensch\\desktop\\eclipse\\eclipse_juno_stm32\\projekte\\st 
m32f0x\\debug\\stm32f0x.elf..."
Reading symbols from 
c:\users\p-boensch\desktop\eclipse\eclipse_juno_stm32\projekte\stm32f0x\ 
debug\stm32f0x.elf...~"done.\n"
done.
7^done
(gdb)
8-target-select remote localhost:3333
symbol-file 
C:\\Users\\p-boensch\\Desktop\\Eclipse\\Eclipse_Juno_STM32\\Projekte\\st 
m32f0x\\Debug\\stm32f0x.elf
8^error,msg="Remote connection closed"
(gdb)
9 monitor reset halt
&"monitor reset halt\n"
&"\"monitor\" command not supported by this target.\n"
9^error,msg="\"monitor\" command not supported by this target."
(gdb)
monitor reset halt
"monitor" command not supported by this target.
10 load 
C:\\Users\\p-boensch\\Desktop\\Eclipse\\Eclipse_Juno_STM32\\Projekte\\st 
m32f0x\\Debug\\stm32f0x.elf
load 
C:\\Users\\p-boensch\\Desktop\\Eclipse\\Eclipse_Juno_STM32\\Projekte\\st 
m32f0x\\Debug\\stm32f0x.elf
You can't do that when your target is `None'
&"load 
C:\\\\Users\\\\p-boensch\\\\Desktop\\\\Eclipse\\\\Eclipse_Juno_STM32\\\\ 
Projekte\\\\stm32f0x\\\\Debug\\\\stm32f0x.elf  \n"
&"You can't do that when your target is `None'\n"
10^error,msg="You can't do that when your target is `None'"
(gdb)
11-environment-directory 
C:/Users/p-boensch/Desktop/Eclipse/Eclipse_Juno_STM32/Projekte/stm32f0x 
C:/Users/p-boensch/Desktop/Eclipse/Eclipse_Juno_STM32/Projekte/stm32f0x/ 
.settings 
C:/Users/p-boensch/Desktop/Eclipse/Eclipse_Juno_STM32/Projekte/stm32f0x/ 
Debug 
C:/Users/p-boensch/Desktop/Eclipse/Eclipse_Juno_STM32/Projekte/stm32f0x/ 
Debug/STM32F072B_DISCOVERY 
C:/Users/p-boensch/Desktop/Eclipse/Eclipse_Juno_STM32/Projekte/stm32f0x/ 
Debug/STM32F0xx_StdPeriph_Driver 
C:/Users/p-boensch/Desktop/Eclipse/Eclipse_Juno_STM32/Projekte/stm32f0x/ 
Debug/src 
C:/Users/p-boensch/Desktop/Eclipse/Eclipse_Juno_STM32/Projekte/stm32f0x/ 
STM32F072B_DISCOVERY 
C:/Users/p-boensch/Desktop/Eclipse/Eclipse_Juno_STM32/Projekte/stm32f0x/ 
STM32F0xx_StdPeriph_Driver 
C:/Users/p-boensch/Desktop/Eclipse/Eclipse_Juno_STM32/Projekte/stm32f0x/ 
src
11^done,source-path="C:/Users/p-boensch/Desktop/Eclipse/Eclipse_Juno_STM 
32/Projekte/stm32f0x;C:/Users/p-boensch/Desktop/Eclipse/Eclipse_Juno_STM 
32/Projekte/stm32f0x/.settings;C:/Users/p-boensch/Desktop/Eclipse/Eclips 
e_Juno_STM32/Projekte/stm32f0x/Debug;C:/Users/p-boensch/Desktop/Eclipse/ 
Eclipse_Juno_STM32/Projekte/stm32f0x/Debug/STM32F072B_DISCOVERY;C:/Users 
/p-boensch/Desktop/Eclipse/Eclipse_Juno_STM32/Projekte/stm32f0x/Debug/ST 
M32F0xx_StdPeriph_Driver;C:/Users/p-boensch/Desktop/Eclipse/Eclipse_Juno 
_STM32/Projekte/stm32f0x/Debug/src;C:/Users/p-boensch/Desktop/Eclipse/Ec 
lipse_Juno_STM32/Projekte/stm32f0x/STM32F072B_DISCOVERY;C:/Users/p-boens 
ch/Desktop/Eclipse/Eclipse_Juno_STM32/Projekte/stm32f0x/STM32F0xx_StdPer 
iph_Driver;C:/Users/p-boensch/Desktop/Eclipse/Eclipse_Juno_STM32/Projekt 
e/stm32f0x/src;$cdir;$cwd"
(gdb)
12 info threads
&"info threads\n"
~"No threads.\n"
12^done
(gdb)
13-data-list-register-names
13^done,register-names=["r0","r1","r2","r3","r4","r5","r6","r7","r8","r9 
","r10","r11","r12","sp","lr","pc","f0","f1","f2","f3","f4","f5","f6","f 
7","fps","cpsr","","","","","","","","","","","","","","","","","","","" 
,"","","","","","","","","","","","","","","","","","","","","","","","" 
,"","","","","","","","","","","","","","","","","","","","","",""]
(gdb)
14 tbreak main
tbreak main
Cannot access memory at address 0x800032e
&"tbreak main\n"
&"Cannot access memory at address 0x800032e\n"
14^error,msg="Cannot access memory at address 0x800032e"
(gdb)
15-break-list
15^done,BreakpointTable={nr_rows="0",nr_cols="6",hdr=[{width="7",alignme 
nt="-1",col_name="number",colhdr="Num"},{width="14",alignment="-1",col_n 
ame="type",colhdr="Type"},{width="4",alignment="-1",col_name="disp",colh 
dr="Disp"},{width="3",alignment="-1",col_name="enabled",colhdr="Enb"},{w 
idth="10",alignment="-1",col_name="addr",colhdr="Address"},{width="40",a 
lignment="2",col_name="what",colhdr="What"}],body=[]}
(gdb)
16 continue
&"continue\n"
continue
The program is not being run.
&"The program is not being run.\n"
16^error,msg="The program is not being run."
(gdb)
17 info proc
&"info proc\n"
&"Not supported on this target.\n"
17^error,msg="Not supported on this target."
18 info program
(gdb)
&"info program\n"
~"The program being debugged is not being run.\n"
18^done
19 info threads
(gdb)
&"info threads\n"
~"No threads.\n"
19^done
20-stack-info-depth
(gdb)
20^error,msg="No registers."
(gdb)
21-stack-info-depth
21^error,msg="No registers."
22-stack-list-frames 0 1
(gdb)
22^error,msg="No registers."
23-data-list-changed-registers
(gdb)
23^error,msg="No registers."
(gdb)

Bzw. erscheint das bei Sourcery G++!

***************************************************|
Ausgabe des OpenOCD GDB-Servers nach Debuggerstart:|
***************************************************|
Open On-Chip Debugger 0.7.0 (2013-05-05-10:41)
Licensed under GNU GPL v2
For bug reports, read
  http://openocd.sourceforge.net/doc/doxygen/bugs.html
User : 13 4 command.c:549 command_print(): debug_level: 3
Debug: 14 4 configuration.c:45 add_script_search_dir(): adding 
C:/Users/p-boensch/Desktop/Eclipse/Eclipse_Juno_STM32/system/debug/openo 
cd-0.7.0/bin/..
Debug: 15 4 configuration.c:45 add_script_search_dir(): adding 
C:/Users/p-boensch/Desktop/Eclipse/Eclipse_Juno_STM32/system/debug/openo 
cd-0.7.0/bin/../share/openocd/scripts
Debug: 16 4 configuration.c:45 add_script_search_dir(): adding 
C:/Users/p-boensch/Desktop/Eclipse/Eclipse_Juno_STM32/system/debug/openo 
cd-0.7.0/bin/../scripts
Debug: 17 7 configuration.c:86 find_file(): found 
C:\Users\p-boensch\Desktop\Eclipse\Eclipse_Juno_STM32\eclipse-kepler\\sc 
ripts\board\stm32f0discovery.cfg
Debug: 18 8 configuration.c:86 find_file(): found 
C:/Users/p-boensch/Desktop/Eclipse/Eclipse_Juno_STM32/system/debug/openo 
cd-0.7.0/bin/../scripts/interface/stlink-v2.cfg
Debug: 19 9 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_interface hla
Debug: 20 10 command.c:145 script_debug(): command - interface 
ocd_interface hla
Debug: 22 10 command.c:369 register_command_handler(): registering 
'ocd_hla_device_desc'...
Debug: 23 10 command.c:369 register_command_handler(): registering 
'ocd_hla_serial'...
Debug: 24 11 command.c:369 register_command_handler(): registering 
'ocd_hla_layout'...
Debug: 25 11 command.c:369 register_command_handler(): registering 
'ocd_hla_vid_pid'...
Debug: 26 11 command.c:369 register_command_handler(): registering 
'ocd_stlink_api'...
Debug: 27 12 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_hla_layout stlink
Debug: 28 12 command.c:145 script_debug(): command - hla_layout 
ocd_hla_layout stlink
Debug: 30 12 hla_interface.c:167 hl_interface_handle_layout_command(): 
hl_interface_handle_layout_command
Debug: 31 12 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_hla_device_desc ST-LINK/V2
Debug: 32 12 command.c:145 script_debug(): command - hla_device_desc 
ocd_hla_device_desc ST-LINK/V2
Debug: 34 13 hla_interface.c:141 
hl_interface_handle_device_desc_command(): 
hl_interface_handle_device_desc_command
Debug: 35 13 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_hla_vid_pid 0x0483 0x3748
Debug: 36 14 command.c:145 script_debug(): command - hla_vid_pid 
ocd_hla_vid_pid 0x0483 0x3748
Debug: 38 14 hla_interface.c:195 hl_interface_handle_vid_pid_command(): 
hl_interface_handle_vid_pid_command
Debug: 39 14 configuration.c:86 find_file(): found 
C:/Users/p-boensch/Desktop/Eclipse/Eclipse_Juno_STM32/system/debug/openo 
cd-0.7.0/bin/../scripts/target/stm32f0x_stlink.cfg
Debug: 40 16 configuration.c:86 find_file(): found 
C:/Users/p-boensch/Desktop/Eclipse/Eclipse_Juno_STM32/system/debug/openo 
cd-0.7.0/bin/../scripts/target/stm32_stlink.cfg
Debug: 41 17 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_transport select hla_swd
Debug: 42 17 command.c:145 script_debug(): command - ocd_transport 
ocd_transport select hla_swd
Debug: 43 18 hla_transport.c:187 hl_transport_select(): 
hl_transport_select
Debug: 44 18 command.c:369 register_command_handler(): registering 
'ocd_hla'...
Debug: 45 19 command.c:369 register_command_handler(): registering 
'ocd_jtag'...
Debug: 46 19 command.c:369 register_command_handler(): registering 
'ocd_jtag'...
Debug: 47 19 command.c:369 register_command_handler(): registering 
'ocd_jtag'...
Debug: 48 19 command.c:369 register_command_handler(): registering 
'ocd_jtag'...
Debug: 49 19 command.c:369 register_command_handler(): registering 
'ocd_jtag'...
Debug: 50 20 command.c:369 register_command_handler(): registering 
'ocd_jtag'...
Debug: 51 20 command.c:369 register_command_handler(): registering 
'ocd_jtag'...
Debug: 52 21 command.c:369 register_command_handler(): registering 
'ocd_jtag'...
Debug: 53 21 command.c:369 register_command_handler(): registering 
'ocd_jtag'...
Debug: 54 21 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_hla newtap stm32f0x cpu -expected-id 0x0bb11477
Debug: 55 22 command.c:145 script_debug(): command - ocd_hla ocd_hla 
newtap stm32f0x cpu -expected-id 0x0bb11477
Debug: 56 23 hla_tcl.c:104 jim_hl_newtap_cmd(): Creating New Tap, Chip: 
stm32f0x, Tap: cpu, Dotted: stm32f0x.cpu, 2 params
Debug: 57 23 hla_tcl.c:114 jim_hl_newtap_cmd(): Processing option: 
-expected-id
Debug: 58 23 core.c:1323 jtag_tap_init(): Created Tap: stm32f0x.cpu @ 
abs position 0, irlen 0, capture: 0x0 mask: 0x0
Debug: 59 23 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_target create stm32f0x.cpu hla_target 
-chain-position stm32f0x.cpu
Debug: 60 24 command.c:145 script_debug(): command - ocd_target 
ocd_target create stm32f0x.cpu hla_target -chain-position stm32f0x.cpu
Debug: 61 24 target.c:1615 target_free_all_working_areas_restore(): 
freeing all working areas
Debug: 62 25 command.c:369 register_command_handler(): registering 
'ocd_arm'...
Debug: 63 25 command.c:369 register_command_handler(): registering 
'ocd_arm'...
Debug: 64 25 command.c:369 register_command_handler(): registering 
'ocd_arm'...
Debug: 65 26 command.c:369 register_command_handler(): registering 
'ocd_arm'...
Debug: 66 26 command.c:369 register_command_handler(): registering 
'ocd_arm'...
Debug: 67 26 command.c:369 register_command_handler(): registering 
'ocd_arm'...
Debug: 68 26 hla_target.c:299 adapter_target_create(): 
adapter_target_create
Debug: 69 26 hla_target.c:272 adapter_init_arch_info(): 
adapter_init_arch_info
Debug: 70 26 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 71 27 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 72 27 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 73 27 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 74 28 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 75 28 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 76 28 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 77 28 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 78 29 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 79 29 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 80 29 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 81 29 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 82 29 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 83 30 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 84 30 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 85 30 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 86 31 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 87 31 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 88 31 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 89 31 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 90 32 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 91 32 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 92 32 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 93 32 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 94 33 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 95 33 command.c:369 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 96 33 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_stm32f0x.cpu configure -work-area-phys 0x20000000 
-work-area-size 0x2000 -work-area-backup 0
Debug: 97 34 command.c:145 script_debug(): command - ocd_stm32f0x.cpu 
ocd_stm32f0x.cpu configure -work-area-phys 0x20000000 -work-area-size 
0x2000 -work-area-backup 0
Debug: 98 36 target.c:1615 target_free_all_working_areas_restore(): 
freeing all working areas
Debug: 99 36 target.c:1615 target_free_all_working_areas_restore(): 
freeing all working areas
Debug: 100 36 target.c:1615 target_free_all_working_areas_restore(): 
freeing all working areas
Debug: 101 36 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_flash bank stm32f0x.flash stm32f1x 0 0 0 0 
stm32f0x.cpu
Debug: 102 37 command.c:145 script_debug(): command - ocd_flash 
ocd_flash bank stm32f0x.flash stm32f1x 0 0 0 0 stm32f0x.cpu
Debug: 104 38 command.c:369 register_command_handler(): registering 
'ocd_stm32f1x'...
Debug: 105 38 command.c:369 register_command_handler(): registering 
'ocd_stm32f1x'...
Debug: 106 38 command.c:369 register_command_handler(): registering 
'ocd_stm32f1x'...
Debug: 107 38 command.c:369 register_command_handler(): registering 
'ocd_stm32f1x'...
Debug: 108 38 command.c:369 register_command_handler(): registering 
'ocd_stm32f1x'...
Debug: 109 39 tcl.c:781 handle_flash_bank_command(): 'stm32f1x' driver 
usage field missing
Debug: 110 39 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_reset_config srst_only srst_nogate
Debug: 111 39 command.c:145 script_debug(): command - reset_config 
ocd_reset_config srst_only srst_nogate
User : 113 40 command.c:549 command_print(): srst_only separate 
srst_nogate srst_open_drain connect_deassert_srst
Debug: 114 44 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_init
Debug: 115 44 command.c:145 script_debug(): command - init ocd_init
Debug: 117 44 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_target init
Debug: 118 44 command.c:145 script_debug(): command - ocd_target 
ocd_target init
Debug: 120 45 target.c:1178 handle_target_init_command(): Initializing 
targets...
Debug: 121 45 hla_target.c:289 adapter_init_target(): 
adapter_init_target
Debug: 122 45 command.c:369 register_command_handler(): registering 
'ocd_target_request'...
Debug: 123 46 command.c:369 register_command_handler(): registering 
'ocd_trace'...
Debug: 124 46 command.c:369 register_command_handler(): registering 
'ocd_trace'...
Debug: 125 46 command.c:369 register_command_handler(): registering 
'ocd_fast_load_image'...
Debug: 126 46 command.c:369 register_command_handler(): registering 
'ocd_fast_load'...
Debug: 127 46 command.c:369 register_command_handler(): registering 
'ocd_profile'...
Debug: 128 47 command.c:369 register_command_handler(): registering 
'ocd_virt2phys'...
Debug: 129 47 command.c:369 register_command_handler(): registering 
'ocd_reg'...
Debug: 130 47 command.c:369 register_command_handler(): registering 
'ocd_poll'...
Debug: 131 47 command.c:369 register_command_handler(): registering 
'ocd_wait_halt'...
Debug: 132 47 command.c:369 register_command_handler(): registering 
'ocd_halt'...
Debug: 133 48 command.c:369 register_command_handler(): registering 
'ocd_resume'...
Debug: 134 49 command.c:369 register_command_handler(): registering 
'ocd_reset'...
Debug: 135 49 command.c:369 register_command_handler(): registering 
'ocd_soft_reset_halt'...
Debug: 136 50 command.c:369 register_command_handler(): registering 
'ocd_step'...
Debug: 137 50 command.c:369 register_command_handler(): registering 
'ocd_mdw'...
Debug: 138 50 command.c:369 register_command_handler(): registering 
'ocd_mdh'...
Debug: 139 50 command.c:369 register_command_handler(): registering 
'ocd_mdb'...
Debug: 140 51 command.c:369 register_command_handler(): registering 
'ocd_mww'...
Debug: 141 52 command.c:369 register_command_handler(): registering 
'ocd_mwh'...
Debug: 142 53 command.c:369 register_command_handler(): registering 
'ocd_mwb'...
Debug: 143 53 command.c:369 register_command_handler(): registering 
'ocd_bp'...
Debug: 144 53 command.c:369 register_command_handler(): registering 
'ocd_rbp'...
Debug: 145 53 command.c:369 register_command_handler(): registering 
'ocd_wp'...
Debug: 146 53 command.c:369 register_command_handler(): registering 
'ocd_rwp'...
Debug: 147 56 command.c:369 register_command_handler(): registering 
'ocd_load_image'...
Debug: 148 56 command.c:369 register_command_handler(): registering 
'ocd_dump_image'...
Debug: 149 57 command.c:369 register_command_handler(): registering 
'ocd_verify_image'...
Debug: 150 57 command.c:369 register_command_handler(): registering 
'ocd_test_image'...
Debug: 151 57 command.c:369 register_command_handler(): registering 
'ocd_reset_nag'...
Debug: 152 57 command.c:369 register_command_handler(): registering 
'ocd_ps'...
Debug: 153 58 hla_interface.c:107 hl_interface_init(): hl_interface_init
Debug: 154 58 hla_layout.c:91 hl_layout_init(): hl_layout_init
Info : 155 58 core.c:1375 adapter_init(): This adapter doesn't support 
configurable speed
Debug: 156 58 openocd.c:132 handle_init_command(): Debug Adapter init 
complete
Debug: 157 58 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_transport init
Debug: 158 59 command.c:145 script_debug(): command - ocd_transport 
ocd_transport init
Debug: 160 59 transport.c:240 handle_transport_init(): 
handle_transport_init
Debug: 161 59 hla_transport.c:148 hl_transport_init(): hl_transport_init
Debug: 162 60 hla_transport.c:165 hl_transport_init(): current transport 
hla_swd
Debug: 163 60 hla_interface.c:44 hl_interface_open(): hl_interface_open
Debug: 164 60 hla_layout.c:42 hl_layout_open(): hl_layout_open
Debug: 165 60 stlink_usb.c:1233 stlink_usb_open(): stlink_usb_open
Debug: 166 60 stlink_usb.c:1251 stlink_usb_open(): transport: 1 vid: 
0x0483 pid: 0x3748
Info : 167 117 stlink_usb.c:423 stlink_usb_version(): STLINK v2 JTAG v17 
API v2 SWIM v0 VID 0x0483 PID 0x3748
Debug: 168 122 stlink_usb.c:601 stlink_usb_init_mode(): MODE: 0x00
Info : 169 130 stlink_usb.c:457 stlink_usb_check_voltage(): Target 
voltage: 2.913674
Debug: 170 130 stlink_usb.c:656 stlink_usb_init_mode(): MODE: 0x01
Debug: 171 137 stlink_usb.c:695 stlink_usb_init_mode(): MODE: 0x02
Debug: 172 137 hla_interface.c:69 hl_interface_init_target(): 
hl_interface_init_target
Debug: 173 142 stlink_usb.c:722 stlink_usb_idcode(): IDCODE: 0x0BB11477
Debug: 174 142 openocd.c:145 handle_init_command(): Examining targets...
Debug: 175 142 target.c:1294 target_call_event_callbacks(): target event 
21 (examine-start)
Debug: 176 142 hla_target.c:697 adapter_read_memory(): 
adapter_read_memory 0xe000ed00 4 1
Debug: 177 150 target.c:1912 target_read_u32(): address: 0xe000ed00, 
value: 0x410cc200
Debug: 178 150 cortex_m.c:1852 cortex_m3_examine(): Cortex-M0 r0p0 
processor detected
Debug: 179 150 cortex_m.c:1853 cortex_m3_examine(): cpuid: 0x410cc200
Debug: 180 150 hla_target.c:697 adapter_read_memory(): 
adapter_read_memory 0xe0002000 4 1
Debug: 181 158 target.c:1912 target_read_u32(): address: 0xe0002000, 
value: 0x00000040
Debug: 182 158 target.c:1978 target_write_u32(): address: 0xe0002008, 
value: 0x00000000
Debug: 183 158 hla_target.c:745 adapter_write_memory(): 
adapter_write_memory 0xe0002008 4 1
Debug: 184 167 target.c:1978 target_write_u32(): address: 0xe000200c, 
value: 0x00000000
Debug: 185 167 hla_target.c:745 adapter_write_memory(): 
adapter_write_memory 0xe000200c 4 1
Debug: 186 174 target.c:1978 target_write_u32(): address: 0xe0002010, 
value: 0x00000000
Debug: 187 174 hla_target.c:745 adapter_write_memory(): 
adapter_write_memory 0xe0002010 4 1
Debug: 188 181 target.c:1978 target_write_u32(): address: 0xe0002014, 
value: 0x00000000
Debug: 189 181 hla_target.c:745 adapter_write_memory(): 
adapter_write_memory 0xe0002014 4 1
Debug: 190 188 cortex_m.c:1900 cortex_m3_examine(): FPB fpcr 0x40, 
numcode 4, numlit 0
Debug: 191 188 hla_target.c:697 adapter_read_memory(): 
adapter_read_memory 0xe0001000 4 1
Debug: 192 194 target.c:1912 target_read_u32(): address: 0xe0001000, 
value: 0x20000000
Debug: 193 194 target.c:1978 target_write_u32(): address: 0xe0001028, 
value: 0x00000000
Debug: 194 194 hla_target.c:745 adapter_write_memory(): 
adapter_write_memory 0xe0001028 4 1
Debug: 195 201 target.c:1978 target_write_u32(): address: 0xe0001038, 
value: 0x00000000
Debug: 196 201 hla_target.c:745 adapter_write_memory(): 
adapter_write_memory 0xe0001038 4 1
Debug: 197 208 cortex_m.c:1809 cortex_m3_dwt_setup(): DWT dwtcr 
0x20000000, comp 2, watch/trigger
Info : 198 208 cortex_m.c:1909 cortex_m3_examine(): stm32f0x.cpu: 
hardware has 4 breakpoints, 2 watchpoints
Debug: 199 208 target.c:1294 target_call_event_callbacks(): target event 
22 (examine-end)
Debug: 200 208 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_flash init
Debug: 201 209 command.c:145 script_debug(): command - ocd_flash 
ocd_flash init
Debug: 203 209 tcl.c:847 handle_flash_init_command(): Initializing flash 
devices...
Debug: 204 209 command.c:369 register_command_handler(): registering 
'ocd_flash'...
Debug: 205 209 command.c:369 register_command_handler(): registering 
'ocd_flash'...
Debug: 206 209 command.c:369 register_command_handler(): registering 
'ocd_flash'...
Debug: 207 210 command.c:369 register_command_handler(): registering 
'ocd_flash'...
Debug: 208 210 command.c:369 register_command_handler(): registering 
'ocd_flash'...
Debug: 209 210 command.c:369 register_command_handler(): registering 
'ocd_flash'...
Debug: 210 210 command.c:369 register_command_handler(): registering 
'ocd_flash'...
Debug: 211 210 command.c:369 register_command_handler(): registering 
'ocd_flash'...
Debug: 212 210 command.c:369 register_command_handler(): registering 
'ocd_flash'...
Debug: 213 211 command.c:369 register_command_handler(): registering 
'ocd_flash'...
Debug: 214 211 command.c:369 register_command_handler(): registering 
'ocd_flash'...
Debug: 215 211 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_mflash init
Debug: 216 211 command.c:145 script_debug(): command - ocd_mflash 
ocd_mflash init
Debug: 218 212 mflash.c:1379 handle_mflash_init_command(): Initializing 
mflash devices...
Debug: 219 212 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_nand init
Debug: 220 212 command.c:145 script_debug(): command - ocd_nand ocd_nand 
init
Debug: 222 212 tcl.c:497 handle_nand_init_command(): Initializing NAND 
devices...
Debug: 223 212 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_pld init
Debug: 224 213 command.c:145 script_debug(): command - ocd_pld ocd_pld 
init
Debug: 226 213 pld.c:207 handle_pld_init_command(): Initializing PLDs...
Info : 227 64078 server.c:83 add_connection(): accepting 'gdb' 
connection from 3333
Debug: 228 64079 breakpoints.c:359 breakpoint_clear_target_internal(): 
Delete all breakpoints for target: stm32f0x.cpu
Debug: 229 64080 breakpoints.c:499 watchpoint_clear_target(): Delete all 
watchpoints for target: stm32f0x.cpu
Debug: 230 64080 target.c:1294 target_call_event_callbacks(): target 
event 23 (gdb-attach)
Debug: 231 64080 hla_target.c:697 adapter_read_memory(): 
adapter_read_memory 0xe000ed00 4 1
Debug: 232 64087 target.c:1912 target_read_u32(): address: 0xe000ed00, 
value: 0x410cc200
Debug: 233 64087 hla_target.c:697 adapter_read_memory(): 
adapter_read_memory 0x40015800 4 1
Debug: 234 64093 target.c:1912 target_read_u32(): address: 0x40015800, 
value: 0x10016448
Info : 235 64093 stm32f1x.c:873 stm32x_probe(): device id = 0x10016448
Warn : 236 64093 stm32f1x.c:938 stm32x_probe(): Cannot identify target 
as a STM32 family.
Error: 237 64094 core.c:217 get_flash_bank_by_num(): auto_probe failed
Error: 238 64094 gdb_server.c:805 gdb_new_connection(): Connect failed. 
Consider setting up a gdb-attach event for the target to prepare target 
for GDB connect, or use 'gdb_memory_map disable'.
Error: 239 64094 server.c:87 add_connection(): attempted 'gdb' 
connection rejected

von Bernardo F. (bernardo)


Lesenswert?

Hallo Phil,

damit der openocd mit dem Flash des STM32F07x klarkommt, musst dieser 
vor Übersetzung zunächst gepatched werden, siehe:

http://openocd.zylin.com/gitweb?p=openocd.git;a=commitdiff;h=7b9b4a0d287cdf84033a0d34d05a25fa80160cf5

Der Patch ist mit seinen 5 Wochen noch vergleichsweise jung. Ich habe 
ihn allerdings nicht ausprobiert, da ich nur mit Cortex-M3 und manchmal 
M4-Kernen (keine M0-Kerne) arbeite.

Viele Grüße
bernardo

von Phil B. (Firma: H.) (philipp95)


Lesenswert?

Hallo Bernardo,
Danke erst einmal für deine Hilfe.
Gibt es irgend ein Tutorial wie ich diesen Patch durchführen kann. Das 
geht etwas über die Grenzen meines Wissens hinaus. Bzw. kann mir da 
jemand einen Tipp / eine Anleitung geben?

Vielen Dank!

von Bernardo F. (bernardo)


Lesenswert?

Hallo Phil,

falls eine UNIX-ähnliche Umgebung zur Verfügung steht, kann man über git 
direkt die dev-Version des openOCD-0.8.0 herunterladen und übersetzen. 
In dieser ist der Patch bereits enthalten. Unter Mavericks läuft das 
z.B. durch Terminalbefehle so ab (vorausgesetzt, automake etc. ist 
nachinstalliert, z.B. über homebrew):

git clone http://openocd.zylin.com/openocd
cd openocd
git pull
./bootstrap
./configure --disable-werror --enable-stlink
make

Wenn es für Windows sein sollte, muss man sich entweder erst eine 
entsprechende Umgebung wie z.B. cygwin einrichten oder einen 
cross-compiler unter Linux oder MacOS verwenden. Geht zwar auch, ist 
aber nicht mehr in 5 Minuten erledigt. Dann ist es wohl besser, ab und 
an bei Freddie

http://www.freddiechopin.info/en/download/category/10-openocd-dev

nachzusehen, ob schon neues Executable der Version openocd-0.8.0-dev zum 
Download bereit liegt; build date muss dann natürlich neueren Datums 
sein als der Patch ;-).

Viele Grüße
bernardo

von Phil B. (Firma: H.) (philipp95)


Lesenswert?

Hallo Bernardo,
vielen Dank für deine Hilfe. Ich werde mich denke ich auf den Patch des 
OpenOCD-Servers warten.

Danke noch einmal für die schnelle Hilfe bei meinem Problem!

mfg Phil

von Phil B. (Firma: H.) (philipp95)


Lesenswert?

Entschuldigt für den Doppelpost, aber eine Frage kommt mir desto trotz 
nicht aus dem Sinn:

Wieso hat das Debuggen dann mit dem OpenOCD 0.7.0 und Windows Telnet 
funktioniert?
Ich meine Befehle wie "halt" und "step", worauf das Board bzw. der Chip 
reagiert.

von Bernardo F. (bernardo)


Lesenswert?

Hallo Phil,

der Kern bzw. das daran angekoppelte kernnahe Debug System hat nichts 
mit dem im Chip integrierten Speicher zu tun und sollte deshalb auch 
funktionieren. Die Fehlermeldung

Warn : 236 64093 stm32f1x.c:938 stm32x_probe(): Cannot identify target
as a STM32 family.
Error: 237 64094 core.c:217 get_flash_bank_by_num(): auto_probe failed

besagt, dass das on-chip Flash nicht erkannt wird. Die Funktion 
stm32x_probe() überprüft die DeviceID, kann aber anhand der 
niederwertigen 12-Bit (in Deinem Fall 0x448) den Speicher nicht 
zuordnen.  Das hat aber nichts mit Debug Funktionalitäten wie etwa halt, 
single-step etc. zu tun.  Das ist im CoreSight Debug Interface selbst 
implementiert, siehe auch

http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0432c/Bcgbfdhc.html

Nur zur Info: vorhin habe ich mal auf einer alten Win7-Installation die 
neue (patched) Version des openocd unter cygwin kompiliert. Bis auf das 
ULink-Interface, das ich kurzerhand deaktiviert habe, ließ sich auch 
diese Version problemfrei übersetzen. Ich denke mal, dass bald eine neue 
Version von Freddie angeboten wird, die alte ist von Mitte Dezember und 
damit auch nicht mehr ganz taufrisch :-).

Viele Grüße
bernardo

von Phil B. (Firma: H.) (philipp95)


Lesenswert?

Okay, dann danke für deine Hilfe und die Tipps!
Da werde ich mich jetzt halt etwas gedulden.

mfg Phil

von Bernardo F. (bernardo)


Lesenswert?

Hallo Phil,

wenn's dringend ist: im Land der aufgehenden Sonne hat Nemuisan letzte 
Woche ein Windows Binary der Version 0.8.0-dev (Build date 2014-03-18) 
unter

https://onedrive.live.com/?cid=36f4d1230f8a673c&id=36F4D1230F8A673C%213400

zum Download bereitgestellt. Die Version ist zwar nochmals mit eigenen 
Patches verändert worden, der relevante Patch sollte aber schon drin 
sein.

Viele Grüße
bernardo

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.