Hello,
I compiled openocd use --enable-jlink on window。
My environment is eclipse+Sourcery G++ Lite+openocd+jlink。
scripts as follows:
openocd_cmd.bat
@echo off
start openocd -d 3 -l openocd.log -f jlink.cfg -f stm32.cfg
start telnet localhost 4444
gdb.ini
target remote localhost:3333
monitor reset halt
monitor stm32x mass_erase 0
monitor flash write_image d:/workspace/STM32GCC_TEST/Debug/STM32GCC_TEST.elf 0x8000000 elf
file d:/workspace/STM32GCC_TEST/Debug/STM32GCC_TEST.elf
break main
first, i excute openocd_cmd.bat.
an then use eclipse’s debug ,but i dosen’t work well.
telnet watch
acknowledgment received, but no packet pending
device id = 0x10016414
flash size = 512kbytes
JTAG tap: stm32.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part: 0xba00, ver:
0x3)
JTAG tap: stm32.bs tap/device found: 0x06414041 (mfg: 0x020, part: 0x6414, ver:
0x0)
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc
stm32x mass erase complete
No flash at address 0x10000000
No flash at address 0x1000b7a4
wrote 0 bytes from file d:/workspace/STM32GCC_TEST/Debug/STM32GCC_TEST.elf in 0.
015625s (0.000 kb/s)
address + size wrapped(0xfffffffe, 0x00000004)
address + size wrapped(0xfffffffe, 0x00000004)
dropped 'gdb' connection - error -400
accepting 'gdb' connection from 0
acknowledgment received, but no packet pending
address + size wrapped(0xfffffffe, 0x00000004)
address + size wrapped(0xfffffffe, 0x00000004)
stm32.cpu -- clearing lockup after double fault
address + size wrapped(0xfffffffe, 0x00000004)
>
logfile
Debug: 14 31 configuration.c:45 add_script_search_dir(): adding D:\workspace\STM32GCC_TEST\Debug\..
Debug: 15 31 configuration.c:45 add_script_search_dir(): adding D:/workspace/STM32GCC_TEST/Debug/../share/openocd/scripts
Debug: 16 31 configuration.c:87 find_file(): found jlink.cfg
Debug: 17 31 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_interface jlink
Debug: 18 31 command.c:133 script_debug(): command - interface ocd_interface jlink
Debug: 20 31 command.c:346 register_command_handler(): registering 'ocd_jlink_info'...
Debug: 21 31 command.c:346 register_command_handler(): registering 'ocd_jlink_hw_jtag'...
Debug: 22 31 configuration.c:87 find_file(): found stm32.cfg
Debug: 23 31 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_interface jlink
Debug: 24 31 command.c:133 script_debug(): command - interface ocd_interface jlink
Warn : 26 31 tcl.c:1004 handle_interface_command(): Interface already configured, ignoring
Debug: 27 31 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag_khz 500
Debug: 28 31 command.c:133 script_debug(): command - jtag_khz ocd_jtag_khz 500
Debug: 30 31 core.c:1560 jtag_config_khz(): handle jtag khz
Debug: 31 31 core.c:1523 jtag_khz_to_speed(): convert khz to interface specific speed value
User : 32 31 command.c:539 command_print(): 500 kHz
Debug: 33 31 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag_nsrst_delay 100
Debug: 34 31 command.c:133 script_debug(): command - jtag_nsrst_delay ocd_jtag_nsrst_delay 100
User : 36 31 command.c:539 command_print(): jtag_nsrst_delay: 100
Debug: 37 31 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag_ntrst_delay 100
Debug: 38 31 command.c:133 script_debug(): command - jtag_ntrst_delay ocd_jtag_ntrst_delay 100
User : 40 31 command.c:539 command_print(): jtag_ntrst_delay: 100
Debug: 41 31 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag newtap stm32 cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x3ba00477
Debug: 42 47 command.c:133 script_debug(): command - ocd_jtag ocd_jtag newtap stm32 cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x3ba00477
Debug: 43 47 tcl.c:568 jim_newtap_cmd(): Creating New Tap, Chip: stm32, Tap: cpu, Dotted: stm32.cpu, 8 params
Debug: 44 47 tcl.c:585 jim_newtap_cmd(): Processing option: -irlen
Debug: 45 47 tcl.c:585 jim_newtap_cmd(): Processing option: -ircapture
Debug: 46 47 tcl.c:585 jim_newtap_cmd(): Processing option: -irmask
Debug: 47 47 tcl.c:585 jim_newtap_cmd(): Processing option: -expected-id
Debug: 48 47 core.c:1300 jtag_tap_init(): Created Tap: stm32.cpu @ abs position 0, irlen 4, capture: 0x1 mask: 0xf
Debug: 49 47 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag newtap stm32 bs -irlen 5 -expected-id 0x06412041 -expected-id 0x06410041 -expected-id 0x16410041 -expected-id 0x06414041 -expected-id 0x06418041
Debug: 50 47 command.c:133 script_debug(): command - ocd_jtag ocd_jtag newtap stm32 bs -irlen 5 -expected-id 0x06412041 -expected-id 0x06410041 -expected-id 0x16410041 -expected-id 0x06414041 -expected-id 0x06418041
Debug: 51 47 tcl.c:568 jim_newtap_cmd(): Creating New Tap, Chip: stm32, Tap: bs, Dotted: stm32.bs, 12 params
Debug: 52 47 tcl.c:585 jim_newtap_cmd(): Processing option: -irlen
Debug: 53 47 tcl.c:585 jim_newtap_cmd(): Processing option: -expected-id
Debug: 54 47 tcl.c:585 jim_newtap_cmd(): Processing option: -expected-id
Debug: 55 47 tcl.c:585 jim_newtap_cmd(): Processing option: -expected-id
Debug: 56 47 tcl.c:585 jim_newtap_cmd(): Processing option: -expected-id
Debug: 57 47 tcl.c:585 jim_newtap_cmd(): Processing option: -expected-id
Debug: 58 47 core.c:1300 jtag_tap_init(): Created Tap: stm32.bs @ abs position 0, irlen 5, capture: 0x1 mask: 0x3
Debug: 59 47 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_target create stm32.cpu cortex_m3 -endian little -chain-position stm32.cpu
Debug: 60 47 command.c:133 script_debug(): command - ocd_target ocd_target create stm32.cpu cortex_m3 -endian little -chain-position stm32.cpu
Debug: 61 47 command.c:346 register_command_handler(): registering 'ocd_dap'...
Debug: 62 47 command.c:346 register_command_handler(): registering 'ocd_dap'...
Debug: 63 47 command.c:346 register_command_handler(): registering 'ocd_dap'...
Debug: 64 47 command.c:346 register_command_handler(): registering 'ocd_dap'...
Debug: 65 47 command.c:346 register_command_handler(): registering 'ocd_dap'...
Debug: 66 47 command.c:346 register_command_handler(): registering 'ocd_cortex_m3'...
Debug: 67 47 command.c:346 register_command_handler(): registering 'ocd_cortex_m3'...
Debug: 68 47 command.c:346 register_command_handler(): registering 'ocd_cortex_m3'...
Debug: 69 47 command.c:346 register_command_handler(): registering 'ocd_stm32.cpu'...
Debug: 70 47 command.c:346 register_command_handler(): registering 'ocd_stm32.cpu'...
Debug: 71 47 command.c:346 register_command_handler(): registering 'ocd_stm32.cpu'...
Debug: 72 47 command.c:346 register_command_handler(): registering 'ocd_stm32.cpu'...
Debug: 73 47 command.c:346 register_command_handler(): registering 'ocd_stm32.cpu'...
Debug: 74 47 command.c:346 register_command_handler(): registering 'ocd_stm32.cpu'...
Debug: 75 47 command.c:346 register_command_handler(): registering 'ocd_stm32.cpu'...
Debug: 76 47 command.c:346 register_command_handler(): registering 'ocd_stm32.cpu'...
Debug: 77 47 command.c:346 register_command_handler(): registering 'ocd_stm32.cpu'...
Debug: 78 47 command.c:346 register_command_handler(): registering 'ocd_stm32.cpu'...
Debug: 79 47 command.c:346 register_command_handler(): registering 'ocd_stm32.cpu'...
Debug: 80 47 command.c:346 register_command_handler(): registering 'ocd_stm32.cpu'...
Debug: 81 47 command.c:346 register_command_handler(): registering 'ocd_stm32.cpu'...
Debug: 82 47 command.c:346 register_command_handler(): registering 'ocd_stm32.cpu'...
Debug: 83 47 command.c:346 register_command_handler(): registering 'ocd_stm32.cpu'...
Debug: 84 47 command.c:346 register_command_handler(): registering 'ocd_stm32.cpu'...
Debug: 85 47 command.c:346 register_command_handler(): registering 'ocd_stm32.cpu'...
Debug: 86 47 command.c:346 register_command_handler(): registering 'ocd_stm32.cpu'...
Debug: 87 47 command.c:346 register_command_handler(): registering 'ocd_stm32.cpu'...
Debug: 88 47 command.c:346 register_command_handler(): registering 'ocd_stm32.cpu'...
Debug: 89 47 command.c:346 register_command_handler(): registering 'ocd_stm32.cpu'...
Debug: 90 47 command.c:346 register_command_handler(): registering 'ocd_stm32.cpu'...
Debug: 91 47 command.c:346 register_command_handler(): registering 'ocd_stm32.cpu'...
Debug: 92 47 command.c:346 register_command_handler(): registering 'ocd_stm32.cpu'...
Debug: 93 47 command.c:346 register_command_handler(): registering 'ocd_stm32.cpu'...
Debug: 94 47 command.c:346 register_command_handler(): registering 'ocd_stm32.cpu'...
Debug: 95 47 command.c:346 register_command_handler(): registering 'ocd_stm32.cpu'...
Debug: 96 47 command.c:346 register_command_handler(): registering 'ocd_stm32.cpu'...
Debug: 97 47 command.c:346 register_command_handler(): registering 'ocd_stm32.cpu'...
Debug: 98 47 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu configure -work-area-phys 0x20000000 -work-area-size 0x4000 -work-area-backup 0
Debug: 99 47 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu configure -work-area-phys 0x20000000 -work-area-size 0x4000 -work-area-backup 0
Debug: 100 47 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_flash bank stm32.flash stm32x 0 0 0 0 stm32.cpu
Debug: 101 47 command.c:133 script_debug(): command - ocd_flash ocd_flash bank stm32.flash stm32x 0 0 0 0 stm32.cpu
Debug: 103 47 command.c:346 register_command_handler(): registering 'ocd_stm32x'...
Debug: 104 47 command.c:346 register_command_handler(): registering 'ocd_stm32x'...
Debug: 105 63 command.c:346 register_command_handler(): registering 'ocd_stm32x'...
Debug: 106 63 command.c:346 register_command_handler(): registering 'ocd_stm32x'...
Debug: 107 63 command.c:346 register_command_handler(): registering 'ocd_stm32x'...
Debug: 108 63 httpd_stubs.c:28 httpd_start(): libocdserver was built without HTTPD support
Debug: 109 78 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_init
Debug: 110 78 command.c:133 script_debug(): command - init ocd_init
Debug: 112 78 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_target init
Debug: 113 78 command.c:133 script_debug(): command - ocd_target ocd_target init
Debug: 115 78 target.c:835 handle_target_init_command(): Initializing targets...
Debug: 116 78 command.c:346 register_command_handler(): registering 'ocd_target_request'...
Debug: 117 78 command.c:346 register_command_handler(): registering 'ocd_trace'...
Debug: 118 78 command.c:346 register_command_handler(): registering 'ocd_trace'...
Debug: 119 78 command.c:346 register_command_handler(): registering 'ocd_fast_load_image'...
Debug: 120 78 command.c:346 register_command_handler(): registering 'ocd_fast_load'...
Debug: 121 78 command.c:346 register_command_handler(): registering 'ocd_profile'...
Debug: 122 78 command.c:346 register_command_handler(): registering 'ocd_virt2phys'...
Debug: 123 78 command.c:346 register_command_handler(): registering 'ocd_reg'...
Debug: 124 78 command.c:346 register_command_handler(): registering 'ocd_poll'...
Debug: 125 78 command.c:346 register_command_handler(): registering 'ocd_wait_halt'...
Debug: 126 78 command.c:346 register_command_handler(): registering 'ocd_halt'...
Debug: 127 78 command.c:346 register_command_handler(): registering 'ocd_resume'...
Debug: 128 78 command.c:346 register_command_handler(): registering 'ocd_reset'...
Debug: 129 78 command.c:346 register_command_handler(): registering 'ocd_soft_reset_halt'...
Debug: 130 78 command.c:346 register_command_handler(): registering 'ocd_step'...
Debug: 131 78 command.c:346 register_command_handler(): registering 'ocd_mdw'...
Debug: 132 78 command.c:346 register_command_handler(): registering 'ocd_mdh'...
Debug: 133 78 command.c:346 register_command_handler(): registering 'ocd_mdb'...
Debug: 134 78 command.c:346 register_command_handler(): registering 'ocd_mww'...
Debug: 135 78 command.c:346 register_command_handler(): registering 'ocd_mwh'...
Debug: 136 78 command.c:346 register_command_handler(): registering 'ocd_mwb'...
Debug: 137 78 command.c:346 register_command_handler(): registering 'ocd_bp'...
Debug: 138 78 command.c:346 register_command_handler(): registering 'ocd_rbp'...
Debug: 139 78 command.c:346 register_command_handler(): registering 'ocd_wp'...
Debug: 140 78 command.c:346 register_command_handler(): registering 'ocd_rwp'...
Debug: 141 78 command.c:346 register_command_handler(): registering 'ocd_load_image'...
Debug: 142 78 command.c:346 register_command_handler(): registering 'ocd_dump_image'...
Debug: 143 78 command.c:346 register_command_handler(): registering 'ocd_verify_image'...
Debug: 144 78 command.c:346 register_command_handler(): registering 'ocd_test_image'...
Debug: 145 78 command.c:346 register_command_handler(): registering 'ocd_reset_nag'...
Debug: 146 125 jlink.c:896 jlink_usb_open(): usb ep in 81
Debug: 147 125 jlink.c:896 jlink_usb_open(): usb ep out 02
Info : 148 125 jlink.c:293 jlink_init(): J-Link initialization started / target CPU reset initiated
Info : 149 141 jlink.c:545 jlink_get_version_info(): J-Link ARM V7 compiled Jun 30 2009 11:05:27
Info : 150 141 jlink.c:558 jlink_get_version_info(): JLink caps 0xb9ff7bbf
Info : 151 141 jlink.c:577 jlink_get_version_info(): JLink hw version 70000
Info : 152 156 jlink.c:593 jlink_get_version_info(): JLink max mem block 9152
Info : 153 156 jlink.c:506 jlink_get_status(): Vref = 3.287 TCK = 1 TDI = 0 TDO = 1 TMS = 0 SRST = 0 TRST = 0
Info : 154 156 jlink.c:306 jlink_init(): J-Link JTAG Interface ready
Debug: 155 156 jlink.c:451 jlink_reset(): trst: 0, srst: 0
Debug: 156 172 core.c:1523 jtag_khz_to_speed(): convert khz to interface specific speed value
Debug: 157 172 core.c:1527 jtag_khz_to_speed(): have interface set up
Debug: 158 172 core.c:1523 jtag_khz_to_speed(): convert khz to interface specific speed value
Debug: 159 172 core.c:1527 jtag_khz_to_speed(): have interface set up
Info : 160 172 core.c:1350 jtag_interface_init(): clock speed 500 kHz
Debug: 161 172 openocd.c:122 handle_init_command(): jtag interface init complete
Debug: 162 172 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag init
Debug: 163 172 command.c:133 script_debug(): command - ocd_jtag ocd_jtag init
Debug: 165 172 tcl.c:854 handle_jtag_init_command(): Initializing jtag devices...
Debug: 166 172 jlink.c:451 jlink_reset(): trst: 0, srst: 0
Debug: 167 172 core.c:672 jtag_add_reset(): SRST line released
Debug: 168 172 core.c:697 jtag_add_reset(): TRST line released
Debug: 169 172 core.c:321 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 170 485 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag arp_init
Debug: 171 485 command.c:133 script_debug(): command - ocd_jtag ocd_jtag arp_init
Debug: 172 485 core.c:1364 jtag_init_inner(): Init JTAG chain
Debug: 173 485 core.c:321 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 174 485 core.c:1017 jtag_examine_chain(): DR scan interrogation for IDCODE/BYPASS
Debug: 175 485 core.c:321 jtag_call_event_callbacks(): jtag event: TAP reset
Info : 176 485 core.c:917 jtag_examine_chain_display(): JTAG tap: stm32.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x3)
Info : 177 485 core.c:917 jtag_examine_chain_display(): JTAG tap: stm32.bs tap/device found: 0x06414041 (mfg: 0x020, part: 0x6414, ver: 0x0)
Debug: 178 485 core.c:1182 jtag_validate_ircapture(): IR capture validation scan
Debug: 179 500 core.c:1243 jtag_validate_ircapture(): stm32.cpu: IR capture 0x01
Debug: 180 500 core.c:1243 jtag_validate_ircapture(): stm32.bs: IR capture 0x01
Debug: 181 500 openocd.c:132 handle_init_command(): Examining targets...
Debug: 182 500 arm_adi_v5.c:1204 ahbap_debugport_init():
Debug: 183 516 arm_adi_v5.c:1265 ahbap_debugport_init(): MEM-AP #0 ID Register 0x14770011, Debug ROM Address 0xe00ff003
Debug: 184 516 target.c:1488 target_read_u32(): address: 0xe000ed00, value: 0x411fc231
Debug: 185 516 cortex_m3.c:1694 cortex_m3_examine(): Cortex-M3 r1p1 processor detected
Debug: 186 516 cortex_m3.c:1695 cortex_m3_examine(): cpuid: 0x411fc231
Debug: 187 531 target.c:1488 target_read_u32(): address: 0xe0002000, value: 0x00000261
Debug: 188 531 cortex_m3.c:1712 cortex_m3_examine(): FPB fpcr 0x261, numcode 6, numlit 2
Debug: 189 531 target.c:1488 target_read_u32(): address: 0xe0001000, value: 0x40000001
Debug: 190 531 cortex_m3.c:1664 cortex_m3_dwt_setup(): DWT dwtcr 0x40000001, comp 4, watch/trigger
Info : 191 531 cortex_m3.c:1721 cortex_m3_examine(): stm32.cpu: hardware has 6 breakpoints, 4 watchpoints
Debug: 192 531 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_flash init
Debug: 193 531 command.c:133 script_debug(): command - ocd_flash ocd_flash init
Warn : 195 531 cortex_m3.c:426 cortex_m3_poll(): stm32.cpu -- clearing lockup after double fault
Debug: 197 547 tcl.c:920 handle_flash_init_command(): Initializing flash devices...
Debug: 198 547 command.c:346 register_command_handler(): registering 'ocd_flash'...
Debug: 199 547 command.c:346 register_command_handler(): registering 'ocd_flash'...
Debug: 200 547 command.c:346 register_command_handler(): registering 'ocd_flash'...
Debug: 201 547 command.c:346 register_command_handler(): registering 'ocd_flash'...
Debug: 202 547 command.c:346 register_command_handler(): registering 'ocd_flash'...
Debug: 203 547 command.c:346 register_command_handler(): registering 'ocd_flash'...
Debug: 204 547 command.c:346 register_command_handler(): registering 'ocd_flash'...
Debug: 205 547 command.c:346 register_command_handler(): registering 'ocd_flash'...
Debug: 206 547 command.c:346 register_command_handler(): registering 'ocd_flash'...
Debug: 207 547 command.c:346 register_command_handler(): registering 'ocd_flash'...
Debug: 208 547 command.c:346 register_command_handler(): registering 'ocd_flash'...
Debug: 209 547 command.c:346 register_command_handler(): registering 'ocd_flash'...
Debug: 210 547 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_mflash init
Debug: 211 547 command.c:133 script_debug(): command - ocd_mflash ocd_mflash init
Debug: 213 563 mflash.c:1325 handle_mflash_init_command(): Initializing mflash devices...
Debug: 214 563 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_nand init
Debug: 215 563 command.c:133 script_debug(): command - ocd_nand ocd_nand init
Debug: 217 563 tcl.c:536 handle_nand_init_command(): Initializing NAND devices...
Debug: 218 563 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_pld init
Debug: 219 563 command.c:133 script_debug(): command - ocd_pld ocd_pld init
Debug: 221 563 pld.c:231 handle_pld_init_command(): Initializing PLDs...
Debug: 222 563 gdb_server.c:2370 gdb_target_start(): gdb service for target 'stm32.cpu' on TCP port 3333
Info : 223 563 server.c:81 add_connection(): accepting 'telnet' connection from 0
Info : 224 20110 server.c:81 add_connection(): accepting 'gdb' connection from 0
Debug: 225 20110 breakpoints.c:161 breakpoint_clear_target(): Delete all breakpoints for target: stm32.cpu
Debug: 226 20110 breakpoints.c:299 watchpoint_clear_target(): Delete all watchpoints for target: stm32.cpu
Debug: 227 20125 target.c:968 target_call_event_callbacks(): target event 25 (gdb-attach)
Debug: 228 20125 gdb_server.c:856 gdb_new_connection(): New GDB Connection: 1, Target stm32.cpu, state: halted
Debug: 229 20125 gdb_server.c:2147 gdb_input_inner(): received packet: 'qSupported'
Debug: 230 20125 gdb_server.c:2147 gdb_input_inner(): received packet: 'QStartNoAckMode'
Warn : 231 20125 gdb_server.c:649 gdb_get_packet_inner(): acknowledgment received, but no packet pending
Debug: 232 20125 gdb_server.c:2147 gdb_input_inner(): received packet: 'Hg0'
Debug: 233 20125 gdb_server.c:2147 gdb_input_inner(): received packet: '?'
Debug: 234 20125 gdb_server.c:2147 gdb_input_inner(): received packet: 'Hc-1'
Debug: 235 20125 gdb_server.c:2147 gdb_input_inner(): received packet: 'qC'
Debug: 236 20125 gdb_server.c:2147 gdb_input_inner(): received packet: 'qAttached'
Debug: 237 20125 gdb_server.c:2147 gdb_input_inner(): received packet: 'qOffsets'
Debug: 238 20125 gdb_server.c:2147 gdb_input_inner(): received packet: 'g'
Debug: 239 20125 gdb_server.c:2147 gdb_input_inner(): received packet: 'qXfer:memory-map:read::0,fff'
Debug: 240 20125 target.c:1488 target_read_u32(): address: 0xe0042000, value: 0x10016414
Info : 241 20125 stm32x.c:678 stm32x_probe(): device id = 0x10016414
Debug: 242 20141 target.c:1516 target_read_u16(): address: 0x1ffff7e0, value: 0x0200
Info : 243 20141 stm32x.c:753 stm32x_probe(): flash size = 512kbytes
Debug: 244 20141 gdb_server.c:2147 gdb_input_inner(): received packet: 'm0,4'
Debug: 245 20141 gdb_server.c:1251 gdb_read_memory_packet(): addr: 0x00000000, len: 0x00000004
Debug: 246 20141 target.c:1333 target_read_buffer(): reading buffer of 4 byte at 0x00000000
Debug: 247 20141 gdb_server.c:2147 gdb_input_inner(): received packet: 'qSymbol::'
Debug: 248 20141 gdb_server.c:2147 gdb_input_inner(): received packet: 'qRcmd,72657365742068616c74'
Debug: 249 20141 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_reset halt
Debug: 250 20141 command.c:133 script_debug(): command - reset ocd_reset halt
Debug: 252 20156 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_target names
Debug: 253 20156 command.c:133 script_debug(): command - ocd_target ocd_target names
Debug: 254 20156 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu invoke-event reset-start
Debug: 255 20156 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu invoke-event reset-start
Debug: 256 20156 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag arp_init-reset
Debug: 257 20156 command.c:133 script_debug(): command - ocd_jtag ocd_jtag arp_init-reset
Debug: 258 20156 core.c:1451 jtag_init_reset(): Initializing with hard TRST+SRST reset
Debug: 259 20156 core.c:685 jtag_add_reset(): JTAG reset with TLR instead of TRST
Debug: 260 20156 core.c:321 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 261 20156 core.c:1364 jtag_init_inner(): Init JTAG chain
Debug: 262 20156 core.c:321 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 263 20172 core.c:1017 jtag_examine_chain(): DR scan interrogation for IDCODE/BYPASS
Debug: 264 20172 core.c:321 jtag_call_event_callbacks(): jtag event: TAP reset
Info : 265 20172 core.c:917 jtag_examine_chain_display(): JTAG tap: stm32.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x3)
Info : 266 20172 core.c:917 jtag_examine_chain_display(): JTAG tap: stm32.bs tap/device found: 0x06414041 (mfg: 0x020, part: 0x6414, ver: 0x0)
Debug: 267 20172 core.c:1182 jtag_validate_ircapture(): IR capture validation scan
Debug: 268 20188 core.c:1243 jtag_validate_ircapture(): stm32.cpu: IR capture 0x01
Debug: 269 20188 core.c:1243 jtag_validate_ircapture(): stm32.bs: IR capture 0x01
Debug: 270 20188 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu cget -chain-position
Debug: 271 20188 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu cget -chain-position
Debug: 272 20188 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag tapisenabled stm32.cpu
Debug: 273 20188 command.c:133 script_debug(): command - ocd_jtag ocd_jtag tapisenabled stm32.cpu
Debug: 274 20188 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu arp_examine
Debug: 275 20188 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu arp_examine
Debug: 276 20188 arm_adi_v5.c:1204 ahbap_debugport_init():
Debug: 277 20203 arm_adi_v5.c:1265 ahbap_debugport_init(): MEM-AP #0 ID Register 0x14770011, Debug ROM Address 0xe00ff003
Debug: 278 20203 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu invoke-event reset-assert-pre
Debug: 279 20203 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu invoke-event reset-assert-pre
Debug: 280 20203 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu cget -chain-position
Debug: 281 20203 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu cget -chain-position
Debug: 282 20203 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag tapisenabled stm32.cpu
Debug: 283 20203 command.c:133 script_debug(): command - ocd_jtag ocd_jtag tapisenabled stm32.cpu
Debug: 284 20203 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu arp_reset assert 1
Debug: 285 20203 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu arp_reset assert 1
Debug: 286 20203 cortex_m3.c:784 cortex_m3_assert_reset(): target->state: halted
Debug: 287 20219 cortex_m3.c:891 cortex_m3_assert_reset(): Using Cortex-M3 SYSRESETREQ
Debug: 288 20219 cortex_m3.c:499 cortex_m3_halt(): target->state: reset
Debug: 289 20219 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu invoke-event reset-assert-post
Debug: 290 20219 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu invoke-event reset-assert-post
Debug: 291 20235 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu invoke-event reset-deassert-pre
Debug: 292 20235 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu invoke-event reset-deassert-pre
Debug: 293 20235 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu cget -chain-position
Debug: 294 20235 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu cget -chain-position
Debug: 295 20235 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag tapisenabled stm32.cpu
Debug: 296 20235 command.c:133 script_debug(): command - ocd_jtag ocd_jtag tapisenabled stm32.cpu
Debug: 297 20235 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu arp_reset deassert 1
Debug: 298 20235 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu arp_reset deassert 1
Debug: 299 20235 cortex_m3.c:921 cortex_m3_deassert_reset(): target->state: reset
Debug: 300 20235 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu invoke-event reset-deassert-post
Debug: 301 20235 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu invoke-event reset-deassert-post
Debug: 302 20235 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu cget -chain-position
Debug: 303 20235 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu cget -chain-position
Debug: 304 20235 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag tapisenabled stm32.cpu
Debug: 305 20235 command.c:133 script_debug(): command - ocd_jtag ocd_jtag tapisenabled stm32.cpu
Debug: 306 20235 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu arp_waitstate halted 1000
Debug: 307 20235 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu arp_waitstate halted 1000
Debug: 308 20313 cortex_m3.c:452 cortex_m3_poll(): Exit from reset with dcb_dhcsr 0x30003
Debug: 309 20328 cortex_m3.c:195 cortex_m3_endreset_event(): DCB_DEMCR = 0x01000501
Debug: 310 20328 target.c:1565 target_write_u32(): address: 0xe0002000, value: 0x00000003
Debug: 311 20344 target.c:1565 target_write_u32(): address: 0xe0002008, value: 0x00000000
Debug: 312 20344 target.c:1565 target_write_u32(): address: 0xe000200c, value: 0x00000000
Debug: 313 20360 target.c:1565 target_write_u32(): address: 0xe0002010, value: 0x00000000
Debug: 314 20360 target.c:1565 target_write_u32(): address: 0xe0002014, value: 0x00000000
Debug: 315 20360 target.c:1565 target_write_u32(): address: 0xe0002018, value: 0x00000000
Debug: 316 20375 target.c:1565 target_write_u32(): address: 0xe000201c, value: 0x00000000
Debug: 317 20375 target.c:1565 target_write_u32(): address: 0xe0002020, value: 0x00000000
Debug: 318 20391 target.c:1565 target_write_u32(): address: 0xe0002024, value: 0x00000000
Debug: 319 20391 target.c:1565 target_write_u32(): address: 0xe0001020, value: 0x00000000
Debug: 320 20391 target.c:1565 target_write_u32(): address: 0xe0001024, value: 0x00000000
Debug: 321 20406 target.c:1565 target_write_u32(): address: 0xe0001028, value: 0x00000000
Debug: 322 20406 target.c:1565 target_write_u32(): address: 0xe0001030, value: 0x00000000
Debug: 323 20406 target.c:1565 target_write_u32(): address: 0xe0001034, value: 0x00000000
Debug: 324 20422 target.c:1565 target_write_u32(): address: 0xe0001038, value: 0x00000000
Debug: 325 20422 target.c:1565 target_write_u32(): address: 0xe0001040, value: 0x00000000
Debug: 326 20438 target.c:1565 target_write_u32(): address: 0xe0001044, value: 0x00000000
Debug: 327 20438 target.c:1565 target_write_u32(): address: 0xe0001048, value: 0x00000000
Debug: 328 20438 target.c:1565 target_write_u32(): address: 0xe0001050, value: 0x00000000
Debug: 329 20453 target.c:1565 target_write_u32(): address: 0xe0001054, value: 0x00000000
Debug: 330 20453 target.c:1565 target_write_u32(): address: 0xe0001058, value: 0x00000000
Debug: 331 20469 cortex_m3.c:336 cortex_m3_debug_entry():
Debug: 332 20485 cortex_m3.c:151 cortex_m3_clear_halt(): NVIC_DFSR 0x9
Debug: 333 20500 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 0 value 0x40013800
Debug: 334 20516 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 1 value 0x80
Debug: 335 20531 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 2 value 0x0
Debug: 336 20547 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 3 value 0x40013800
Debug: 337 20563 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 4 value 0x0
Debug: 338 20563 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 5 value 0x200003d8
Debug: 339 20578 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 6 value 0x0
Debug: 340 20594 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 7 value 0x2000ffa0
Debug: 341 20610 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 8 value 0x0
Debug: 342 20610 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 9 value 0x20000160
Debug: 343 20625 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 10 value 0x0
Debug: 344 20641 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 11 value 0x0
Debug: 345 20656 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 12 value 0x4000
Debug: 346 20672 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 13 value 0xfffffffc
Debug: 347 20672 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 14 value 0xffffffff
Debug: 348 20688 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 15 value 0xfffffffe
Debug: 349 20703 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 16 value 0x1000000
Debug: 350 20719 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 17 value 0xfffffffc
Debug: 351 20719 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 18 value 0x20000800
Debug: 352 20735 cortex_m3.c:1378 cortex_m3_load_core_reg_u32(): load from special reg 19 value 0x0
Debug: 353 20750 cortex_m3.c:1378 cortex_m3_load_core_reg_u32(): load from special reg 20 value 0x0
Debug: 354 20766 cortex_m3.c:1378 cortex_m3_load_core_reg_u32(): load from special reg 21 value 0x0
Debug: 355 20766 cortex_m3.c:1378 cortex_m3_load_core_reg_u32(): load from special reg 22 value 0x0
Debug: 356 20766 cortex_m3.c:396 cortex_m3_debug_entry(): entered debug state in core mode: Thread at PC 0xfffffffe, target->state: halted
Debug: 357 20766 target.c:968 target_call_event_callbacks(): target event 2 (gdb-halt)
Debug: 358 20766 target.c:968 target_call_event_callbacks(): target event 3 (halted)
User : 359 20766 target.c:1234 target_arch_state(): target state: halted
User : 360 20766 armv7m.c:489 armv7m_arch_state(): target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc
Debug: 361 20781 target.c:968 target_call_event_callbacks(): target event 8 (gdb-end)
Debug: 362 20781 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu curstate
Debug: 363 20781 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu curstate
Debug: 364 20781 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu invoke-event reset-end
Debug: 365 20781 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu invoke-event reset-end
Debug: 366 20781 gdb_server.c:2147 gdb_input_inner(): received packet: 'qRcmd,73746d333278206d6173735f65726173652030'
Debug: 367 20797 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32x mass_erase 0
Debug: 368 20797 command.c:133 script_debug(): command - ocd_stm32x ocd_stm32x mass_erase 0
Debug: 370 20797 target.c:1565 target_write_u32(): address: 0x40022004, value: 0x45670123
Debug: 371 20813 target.c:1565 target_write_u32(): address: 0x40022004, value: 0xcdef89ab
Debug: 372 20813 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000004
Debug: 373 20813 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000044
Debug: 374 20828 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000003
Debug: 375 20828 stm32x.c:75 stm32x_wait_status_busy(): status: 0x3
Debug: 376 20844 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000003
Debug: 377 20844 stm32x.c:75 stm32x_wait_status_busy(): status: 0x3
Debug: 378 20860 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000020
Debug: 379 20860 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000080
User : 380 20860 command.c:539 command_print(): stm32x mass erase complete
Debug: 381 21047 gdb_server.c:2147 gdb_input_inner(): received packet: 'qRcmd,666c6173682077726974655f696d6167652020643a2f776f726b73706163652f53544d33324743435f544553542f44656275672f53544d33324743435f544553542e656c662030783830303030303020656c66'
Debug: 382 21047 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_flash write_image d:/workspace/STM32GCC_TEST/Debug/STM32GCC_TEST.elf 0x8000000 elf
Debug: 383 21047 command.c:133 script_debug(): command - ocd_flash ocd_flash write_image d:/workspace/STM32GCC_TEST/Debug/STM32GCC_TEST.elf 0x8000000 elf
Debug: 385 21063 configuration.c:87 find_file(): found d:/workspace/STM32GCC_TEST/Debug/STM32GCC_TEST.elf
Error: 386 21063 core.c:193 get_flash_bank_by_addr(): No flash at address 0x10000000
Error: 387 21063 core.c:193 get_flash_bank_by_addr(): No flash at address 0x1000b7a4
User : 388 21063 command.c:539 command_print(): wrote 0 bytes from file d:/workspace/STM32GCC_TEST/Debug/STM32GCC_TEST.elf in 0.015625s (0.000 kb/s)
Debug: 389 21094 gdb_server.c:2147 gdb_input_inner(): received packet: 'g'
Debug: 390 21110 gdb_server.c:2147 gdb_input_inner(): received packet: 'm8000dd2,2'
Debug: 391 21110 gdb_server.c:1251 gdb_read_memory_packet(): addr: 0x08000dd2, len: 0x00000002
Debug: 392 21110 target.c:1333 target_read_buffer(): reading buffer of 2 byte at 0x08000dd2
Debug: 393 21172 gdb_server.c:2147 gdb_input_inner(): received packet: 'qfThreadInfo'
Debug: 394 21172 gdb_server.c:2147 gdb_input_inner(): received packet: 'qL1200000000000000000'
Debug: 395 21172 gdb_server.c:2147 gdb_input_inner(): received packet: 'mfffffffe,4'
Debug: 396 21172 gdb_server.c:1251 gdb_read_memory_packet(): addr: 0xfffffffe, len: 0x00000004
Debug: 397 21172 target.c:1333 target_read_buffer(): reading buffer of 4 byte at 0xfffffffe
Error: 398 21172 target.c:1350 target_read_buffer(): address + size wrapped(0xfffffffe, 0x00000004)
Debug: 399 21188 gdb_server.c:2147 gdb_input_inner(): received packet: 'mfffffffe,4'
Debug: 400 21188 gdb_server.c:1251 gdb_read_memory_packet(): addr: 0xfffffffe, len: 0x00000004
Debug: 401 21188 target.c:1333 target_read_buffer(): reading buffer of 4 byte at 0xfffffffe
Error: 402 21188 target.c:1350 target_read_buffer(): address + size wrapped(0xfffffffe, 0x00000004)
Debug: 403 21203 gdb_server.c:2147 gdb_input_inner(): received packet: 'k'
Debug: 404 21203 gdb_server.c:875 gdb_connection_closed(): GDB Close, Target: stm32.cpu, state: halted, gdb_actual_connections=0
Debug: 405 21203 target.c:968 target_call_event_callbacks(): target event 8 (gdb-end)
Debug: 406 21203 target.c:968 target_call_event_callbacks(): target event 26 (gdb-detach)
Info : 407 21203 server.c:455 server_loop(): dropped 'gdb' connection - error -400
Info : 408 21203 server.c:81 add_connection(): accepting 'gdb' connection from 0
Debug: 409 21203 breakpoints.c:161 breakpoint_clear_target(): Delete all breakpoints for target: stm32.cpu
Debug: 410 21203 breakpoints.c:299 watchpoint_clear_target(): Delete all watchpoints for target: stm32.cpu
Debug: 411 21219 target.c:968 target_call_event_callbacks(): target event 25 (gdb-attach)
Debug: 412 21219 gdb_server.c:856 gdb_new_connection(): New GDB Connection: 1, Target stm32.cpu, state: halted
Debug: 413 21219 gdb_server.c:2147 gdb_input_inner(): received packet: 'qSupported'
Debug: 414 21219 gdb_server.c:2147 gdb_input_inner(): received packet: 'QStartNoAckMode'
Warn : 415 21219 gdb_server.c:649 gdb_get_packet_inner(): acknowledgment received, but no packet pending
Debug: 416 21219 gdb_server.c:2147 gdb_input_inner(): received packet: 'Hg0'
Debug: 417 21219 gdb_server.c:2147 gdb_input_inner(): received packet: '?'
Debug: 418 21219 gdb_server.c:2147 gdb_input_inner(): received packet: 'Hc-1'
Debug: 419 21219 gdb_server.c:2147 gdb_input_inner(): received packet: 'qC'
Debug: 420 21219 gdb_server.c:2147 gdb_input_inner(): received packet: 'qAttached'
Debug: 421 21219 gdb_server.c:2147 gdb_input_inner(): received packet: 'qOffsets'
Debug: 422 21219 gdb_server.c:2147 gdb_input_inner(): received packet: 'g'
Debug: 423 21219 gdb_server.c:2147 gdb_input_inner(): received packet: 'qXfer:memory-map:read::0,fff'
Debug: 424 21219 gdb_server.c:2147 gdb_input_inner(): received packet: 'mfffffffe,4'
Debug: 425 21219 gdb_server.c:1251 gdb_read_memory_packet(): addr: 0xfffffffe, len: 0x00000004
Debug: 426 21219 target.c:1333 target_read_buffer(): reading buffer of 4 byte at 0xfffffffe
Error: 427 21219 target.c:1350 target_read_buffer(): address + size wrapped(0xfffffffe, 0x00000004)
Debug: 428 21219 gdb_server.c:2147 gdb_input_inner(): received packet: 'qSymbol::'
Debug: 429 21250 gdb_server.c:2147 gdb_input_inner(): received packet: 'qfThreadInfo'
Debug: 430 21250 gdb_server.c:2147 gdb_input_inner(): received packet: 'qL1200000000000000000'
Debug: 431 21250 gdb_server.c:2147 gdb_input_inner(): received packet: 'mfffffffe,4'
Debug: 432 21250 gdb_server.c:1251 gdb_read_memory_packet(): addr: 0xfffffffe, len: 0x00000004
Debug: 433 21250 target.c:1333 target_read_buffer(): reading buffer of 4 byte at 0xfffffffe
Error: 434 21250 target.c:1350 target_read_buffer(): address + size wrapped(0xfffffffe, 0x00000004)
Debug: 435 21297 gdb_server.c:2147 gdb_input_inner(): received packet: 'm8000dd2,2'
Debug: 436 21297 gdb_server.c:1251 gdb_read_memory_packet(): addr: 0x08000dd2, len: 0x00000002
Debug: 437 21297 target.c:1333 target_read_buffer(): reading buffer of 2 byte at 0x08000dd2
Debug: 438 21313 gdb_server.c:2147 gdb_input_inner(): received packet: 'm8000dd2,2'
Debug: 439 21313 gdb_server.c:1251 gdb_read_memory_packet(): addr: 0x08000dd2, len: 0x00000002
Debug: 440 21313 target.c:1333 target_read_buffer(): reading buffer of 2 byte at 0x08000dd2
Debug: 441 21328 gdb_server.c:2147 gdb_input_inner(): received packet: 'Z1,8000dd2,2'
Debug: 442 21328 gdb_server.c:1451 gdb_breakpoint_watchpoint_packet(): -
Debug: 443 21328 target.c:1565 target_write_u32(): address: 0xe0002008, value: 0x88000dd1
Debug: 444 21328 cortex_m3.c:963 cortex_m3_set_breakpoint(): fpc_num 0 fpcr_value 0x88000dd1
Debug: 445 21328 cortex_m3.c:999 cortex_m3_set_breakpoint(): BPID: 0, Type: 0, Address: 0x08000dd2 Length: 2 (set=1)
Debug: 446 21328 breakpoints.c:102 breakpoint_add(): added hardware breakpoint at 0x08000dd2 of length 0x00000002, (BPID: 0)
Debug: 447 21328 gdb_server.c:2147 gdb_input_inner(): received packet: 'vCont?'
Debug: 448 21328 gdb_server.c:2147 gdb_input_inner(): received packet: 'Hc0'
Debug: 449 21328 gdb_server.c:2147 gdb_input_inner(): received packet: 'c'
Debug: 450 21328 target.c:968 target_call_event_callbacks(): target event 7 (gdb-start)
Debug: 451 21328 gdb_server.c:1413 gdb_step_continue_packet(): -
Debug: 452 21328 gdb_server.c:1427 gdb_step_continue_packet(): continue
Debug: 453 21328 armv7m.c:129 armv7m_restore_context():
Debug: 454 21344 target.c:968 target_call_event_callbacks(): target event 4 (resumed)
Debug: 455 21344 cortex_m3.c:697 cortex_m3_resume(): target resumed at 0xffffffff
Warn : 456 21453 cortex_m3.c:426 cortex_m3_poll(): stm32.cpu -- clearing lockup after double fault
Debug: 457 21469 cortex_m3.c:336 cortex_m3_debug_entry():
Debug: 458 21485 cortex_m3.c:151 cortex_m3_clear_halt(): NVIC_DFSR 0x1
Debug: 459 21500 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 0 value 0x40013800
Debug: 460 21516 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 1 value 0x80
Debug: 461 21531 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 2 value 0x0
Debug: 462 21531 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 3 value 0x40013800
Debug: 463 21547 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 4 value 0x0
Debug: 464 21563 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 5 value 0x200003d8
Debug: 465 21578 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 6 value 0x0
Debug: 466 21578 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 7 value 0x2000ffa0
Debug: 467 21594 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 8 value 0x0
Debug: 468 21610 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 9 value 0x20000160
Debug: 469 21625 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 10 value 0x0
Debug: 470 21641 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 11 value 0x0
Debug: 471 21641 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 12 value 0x4000
Debug: 472 21656 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 13 value 0xffffffdc
Debug: 473 21672 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 14 value 0xfffffff9
Debug: 474 21688 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 15 value 0xfffffffe
Debug: 475 21688 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 16 value 0x1000003
Debug: 476 21703 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 17 value 0xffffffdc
Debug: 477 21719 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 18 value 0x20000800
Debug: 478 21735 cortex_m3.c:1378 cortex_m3_load_core_reg_u32(): load from special reg 19 value 0x0
Debug: 479 21750 cortex_m3.c:1378 cortex_m3_load_core_reg_u32(): load from special reg 20 value 0x0
Debug: 480 21750 cortex_m3.c:1378 cortex_m3_load_core_reg_u32(): load from special reg 21 value 0x0
Debug: 481 21766 cortex_m3.c:1378 cortex_m3_load_core_reg_u32(): load from special reg 22 value 0x0
Debug: 482 21781 cortex_m3.c:322 cortex_m3_examine_exception_reason(): HardFault SHCSR 0x0, SR 0x40000000, CFSR 0x1, AR 0xffffffff
Debug: 483 21781 cortex_m3.c:396 cortex_m3_debug_entry(): entered debug state in core mode: Handler at PC 0xfffffffe, target->state: halted
Debug: 484 21781 target.c:968 target_call_event_callbacks(): target event 2 (gdb-halt)
Debug: 485 21781 target.c:968 target_call_event_callbacks(): target event 3 (halted)
Debug: 486 21781 target.c:968 target_call_event_callbacks(): target event 8 (gdb-end)
Debug: 487 21781 gdb_server.c:2147 gdb_input_inner(): received packet: 'g'
Debug: 488 21781 gdb_server.c:2147 gdb_input_inner(): received packet: 'z1,8000dd2,2'
Debug: 489 21781 gdb_server.c:1451 gdb_breakpoint_watchpoint_packet(): -
Debug: 490 21781 cortex_m3.c:1022 cortex_m3_unset_breakpoint(): BPID: 0, Type: 0, Address: 0x08000dd2 Length: 2 (set=1)
Debug: 491 21781 target.c:1565 target_write_u32(): address: 0xe0002008, value: 0x00000000
Debug: 492 21797 breakpoints.c:127 breakpoint_free(): free BPID: 0 --> 0
Debug: 493 21797 gdb_server.c:2147 gdb_input_inner(): received packet: 'mfffffffe,4'
Debug: 494 21797 gdb_server.c:1251 gdb_read_memory_packet(): addr: 0xfffffffe, len: 0x00000004
Debug: 495 21797 target.c:1333 target_read_buffer(): reading buffer of 4 byte at 0xfffffffe
Error: 496 21797 target.c:1350 target_read_buffer(): address + size wrapped(0xfffffffe, 0x00000004)
Debug: 497 21813 gdb_server.c:2147 gdb_input_inner(): received packet: 'qL1200000000000000000'
Debug: 498 21828 gdb_server.c:2147 gdb_input_inner(): received packet: 'mfffffff8,4'
Debug: 499 21828 gdb_server.c:1251 gdb_read_memory_packet(): addr: 0xfffffff8, len: 0x00000004
Debug: 500 21828 target.c:1333 target_read_buffer(): reading buffer of 4 byte at 0xfffffff8
Does anyone know, whats wrong?