OpenOCDv0.4.0 Error ft2232_read():couldn't read enough bytes

I am trying to upgrade to OpenOCD 0.4.0, using ftd2xx drivers, olimex arm-usb-tiny,stm-h103. OpenOCD seems to be working ok until ft2232 read is attempted

Error: 573 66190 ft2232.c:438 ft2232_read(): couldn’t read enough bytes from FT2232 device (0 < 6)

(Platform; Eclipse Galileo, Cygwin ,Windows7 64 bit) Note that programming worked ok, no errors with older versions.

There are lots of posts regarding libftdi-1.0 in relation to read errors on ft2232. I have not been able to work out how all this relates to the current version of OpenOCD etc

Can anyone advise what the current status is ? How do these various versions/drivers relate…libftdi, libusb, libftd2xx

Full log is as follows;

Open On-Chip Debugger 0.4.0 (2010-06-25-11:18)

Licensed under GNU GPL v2

For bug reports, read

http://openocd.berlios.de/doc/doxygen/bugs.html

User : 10 0 command.c:539 command_print(): debug_level: 3

Debug: 11 0 configuration.c:45 add_script_search_dir(): adding C:\Eclipse\openocd\src..

Debug: 12 0 configuration.c:45 add_script_search_dir(): adding C:/Eclipse/openocd/src/…/share/openocd/scripts

Debug: 13 0 configuration.c:87 find_file(): found olimex-jtag-tiny.cfg

Debug: 14 0 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_interface ft2232

Debug: 15 0 command.c:133 script_debug(): command - interface ocd_interface ft2232

Debug: 17 0 command.c:346 register_command_handler(): registering ‘ocd_ft2232_device_desc’…

Debug: 18 0 command.c:346 register_command_handler(): registering ‘ocd_ft2232_serial’…

Debug: 19 0 command.c:346 register_command_handler(): registering ‘ocd_ft2232_layout’…

Debug: 20 0 command.c:346 register_command_handler(): registering ‘ocd_ft2232_vid_pid’…

Debug: 21 0 command.c:346 register_command_handler(): registering ‘ocd_ft2232_latency’…

Debug: 22 0 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_ft2232_device_desc Olimex OpenOCD JTAG TINY

Debug: 23 0 command.c:133 script_debug(): command - ft2232_device_desc ocd_ft2232_device_desc Olimex OpenOCD JTAG TINY

Debug: 25 0 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_ft2232_layout olimex-jtag

Debug: 26 0 command.c:133 script_debug(): command - ft2232_layout ocd_ft2232_layout olimex-jtag

Debug: 28 0 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_ft2232_vid_pid 0x15ba 0x0004

Debug: 29 0 command.c:133 script_debug(): command - ft2232_vid_pid ocd_ft2232_vid_pid 0x15ba 0x0004

Debug: 31 0 configuration.c:87 find_file(): found olimex_stm32_h103.cfg

Debug: 32 0 configuration.c:87 find_file(): found target/stm32.cfg

Debug: 33 16 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag_khz 10

Debug: 34 16 command.c:133 script_debug(): command - jtag_khz ocd_jtag_khz 10

Debug: 36 16 core.c:1560 jtag_config_khz(): handle jtag khz

Debug: 37 16 core.c:1523 jtag_khz_to_speed(): convert khz to interface specific speed value

User : 38 16 command.c:539 command_print(): 10 kHz

Debug: 39 16 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag_nsrst_delay 100

Debug: 40 16 command.c:133 script_debug(): command - jtag_nsrst_delay ocd_jtag_nsrst_delay 100

User : 42 16 command.c:539 command_print(): jtag_nsrst_delay: 100

Debug: 43 16 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag_ntrst_delay 100

Debug: 44 16 command.c:133 script_debug(): command - jtag_ntrst_delay ocd_jtag_ntrst_delay 100

User : 46 16 command.c:539 command_print(): jtag_ntrst_delay: 100

Debug: 47 16 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: 48 16 command.c:133 script_debug(): command - ocd_jtag ocd_jtag newtap stm32 cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x3ba00477

Debug: 49 16 tcl.c:568 jim_newtap_cmd(): Creating New Tap, Chip: stm32, Tap: cpu, Dotted: stm32.cpu, 8 params

Debug: 50 16 tcl.c:585 jim_newtap_cmd(): Processing option: -irlen

Debug: 51 16 tcl.c:585 jim_newtap_cmd(): Processing option: -ircapture

Debug: 52 16 tcl.c:585 jim_newtap_cmd(): Processing option: -irmask

Debug: 53 16 tcl.c:585 jim_newtap_cmd(): Processing option: -expected-id

Debug: 54 16 core.c:1300 jtag_tap_init(): Created Tap: stm32.cpu @ abs position 0, irlen 4, capture: 0x1 mask: 0xf

Debug: 55 16 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag newtap stm32 bs -irlen 5 -expected-id 0x16410041

Debug: 56 16 command.c:133 script_debug(): command - ocd_jtag ocd_jtag newtap stm32 bs -irlen 5 -expected-id 0x16410041

Debug: 57 16 tcl.c:568 jim_newtap_cmd(): Creating New Tap, Chip: stm32, Tap: bs, Dotted: stm32.bs, 4 params

Debug: 58 16 tcl.c:585 jim_newtap_cmd(): Processing option: -irlen

Debug: 59 16 tcl.c:585 jim_newtap_cmd(): Processing option: -expected-id

Debug: 60 16 core.c:1300 jtag_tap_init(): Created Tap: stm32.bs @ abs position 0, irlen 5, capture: 0x1 mask: 0x3

Debug: 61 16 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: 62 16 command.c:133 script_debug(): command - ocd_target ocd_target create stm32.cpu cortex_m3 -endian little -chain-position stm32.cpu

Debug: 63 16 command.c:346 register_command_handler(): registering ‘ocd_dap’…

Debug: 64 16 command.c:346 register_command_handler(): registering ‘ocd_dap’…

Debug: 65 16 command.c:346 register_command_handler(): registering ‘ocd_dap’…

Debug: 66 16 command.c:346 register_command_handler(): registering ‘ocd_dap’…

Debug: 67 16 command.c:346 register_command_handler(): registering ‘ocd_dap’…

Debug: 68 16 command.c:346 register_command_handler(): registering ‘ocd_cortex_m3’…

Debug: 69 16 command.c:346 register_command_handler(): registering ‘ocd_cortex_m3’…

Debug: 70 16 command.c:346 register_command_handler(): registering ‘ocd_cortex_m3’…

Debug: 71 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…

Debug: 72 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…

Debug: 73 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…

Debug: 74 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…

Debug: 75 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…

Debug: 76 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…

Debug: 77 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…

Debug: 78 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…

Debug: 79 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…

Debug: 80 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…

Debug: 81 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…

Debug: 82 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…

Debug: 83 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…

Debug: 84 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…

Debug: 85 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…

Debug: 86 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…

Debug: 87 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…

Debug: 88 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…

Debug: 89 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…

Debug: 90 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…

Debug: 91 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…

Debug: 92 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…

Debug: 93 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…

Debug: 94 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…

Debug: 95 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…

Debug: 96 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…

Debug: 97 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…

Debug: 98 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…

Debug: 99 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…

Debug: 100 16 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu configure -work-area-phys 0x20000000 -work-area-size 0x5000 -work-area-backup 0

Debug: 101 16 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu configure -work-area-phys 0x20000000 -work-area-size 0x5000 -work-area-backup 0

Debug: 102 16 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_flash bank stm32.flash stm32x 0 0 0 0 stm32.cpu

Debug: 103 16 command.c:133 script_debug(): command - ocd_flash ocd_flash bank stm32.flash stm32x 0 0 0 0 stm32.cpu

Debug: 105 16 command.c:346 register_command_handler(): registering ‘ocd_stm32x’…

Debug: 106 16 command.c:346 register_command_handler(): registering ‘ocd_stm32x’…

Debug: 107 16 command.c:346 register_command_handler(): registering ‘ocd_stm32x’…

Debug: 108 16 command.c:346 register_command_handler(): registering ‘ocd_stm32x’…

Debug: 109 16 command.c:346 register_command_handler(): registering ‘ocd_stm32x’…

Debug: 110 16 httpd_stubs.c:28 httpd_start(): libocdserver was built without HTTPD support

Debug: 111 16 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_init

Debug: 112 16 command.c:133 script_debug(): command - init ocd_init

Debug: 114 16 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_target init

Debug: 115 16 command.c:133 script_debug(): command - ocd_target ocd_target init

Debug: 117 16 target.c:835 handle_target_init_command(): Initializing targets…

Debug: 118 16 command.c:346 register_command_handler(): registering ‘ocd_target_request’…

Debug: 119 16 command.c:346 register_command_handler(): registering ‘ocd_trace’…

Debug: 120 16 command.c:346 register_command_handler(): registering ‘ocd_trace’…

Debug: 121 16 command.c:346 register_command_handler(): registering ‘ocd_fast_load_image’…

Debug: 122 16 command.c:346 register_command_handler(): registering ‘ocd_fast_load’…

Debug: 123 16 command.c:346 register_command_handler(): registering ‘ocd_profile’…

Debug: 124 16 command.c:346 register_command_handler(): registering ‘ocd_virt2phys’…

Debug: 125 16 command.c:346 register_command_handler(): registering ‘ocd_reg’…

Debug: 126 16 command.c:346 register_command_handler(): registering ‘ocd_poll’…

Debug: 127 16 command.c:346 register_command_handler(): registering ‘ocd_wait_halt’…

Debug: 128 16 command.c:346 register_command_handler(): registering ‘ocd_halt’…

Debug: 129 16 command.c:346 register_command_handler(): registering ‘ocd_resume’…

Debug: 130 16 command.c:346 register_command_handler(): registering ‘ocd_reset’…

Debug: 131 16 command.c:346 register_command_handler(): registering ‘ocd_soft_reset_halt’…

Debug: 132 16 command.c:346 register_command_handler(): registering ‘ocd_step’…

Debug: 133 16 command.c:346 register_command_handler(): registering ‘ocd_mdw’…

Debug: 134 16 command.c:346 register_command_handler(): registering ‘ocd_mdh’…

Debug: 135 16 command.c:346 register_command_handler(): registering ‘ocd_mdb’…

Debug: 136 16 command.c:346 register_command_handler(): registering ‘ocd_mww’…

Debug: 137 16 command.c:346 register_command_handler(): registering ‘ocd_mwh’…

Debug: 138 16 command.c:346 register_command_handler(): registering ‘ocd_mwb’…

Debug: 139 16 command.c:346 register_command_handler(): registering ‘ocd_bp’…

Debug: 140 16 command.c:346 register_command_handler(): registering ‘ocd_rbp’…

Debug: 141 16 command.c:346 register_command_handler(): registering ‘ocd_wp’…

Debug: 142 16 command.c:346 register_command_handler(): registering ‘ocd_rwp’…

Debug: 143 16 command.c:346 register_command_handler(): registering ‘ocd_load_image’…

Debug: 144 16 command.c:346 register_command_handler(): registering ‘ocd_dump_image’…

Debug: 145 16 command.c:346 register_command_handler(): registering ‘ocd_verify_image’…

Debug: 146 16 command.c:346 register_command_handler(): registering ‘ocd_test_image’…

Debug: 147 16 command.c:346 register_command_handler(): registering ‘ocd_reset_nag’…

Debug: 148 16 ft2232.c:2097 ft2232_init(): ft2232 interface using shortest path jtag state transitions

Debug: 149 16 ft2232.c:1843 ft2232_init_ftd2xx(): ‘ft2232’ interface using FTD2XX with ‘olimex-jtag’ layout (15ba:0004)

Debug: 150 78 ft2232.c:1954 ft2232_init_ftd2xx(): current latency timer: 2

Info : 151 78 ft2232.c:1981 ft2232_init_ftd2xx(): device: 4 “2232C”

Info : 152 78 ft2232.c:1982 ft2232_init_ftd2xx(): deviceID: 364511236

Info : 153 78 ft2232.c:1983 ft2232_init_ftd2xx(): SerialNumber: FTS932G7A

Info : 154 78 ft2232.c:1984 ft2232_init_ftd2xx(): Description: Olimex OpenOCD JTAG TINY A

Debug: 155 78 ft2232.c:2443 olimex_jtag_init(): 80 08 1b

Debug: 156 94 ft2232.c:2487 olimex_jtag_init(): 82 09 0f

Debug: 157 94 core.c:1523 jtag_khz_to_speed(): convert khz to interface specific speed value

Debug: 158 94 core.c:1527 jtag_khz_to_speed(): have interface set up

Debug: 159 94 ft2232.c:523 ft2232_speed(): 86 57 02

Debug: 160 109 core.c:1523 jtag_khz_to_speed(): convert khz to interface specific speed value

Debug: 161 109 core.c:1527 jtag_khz_to_speed(): have interface set up

Info : 162 109 core.c:1350 jtag_interface_init(): clock speed 10 kHz

Debug: 163 109 openocd.c:122 handle_init_command(): jtag interface init complete

Debug: 164 109 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag init

Debug: 165 109 command.c:133 script_debug(): command - ocd_jtag ocd_jtag init

Debug: 167 109 tcl.c:854 handle_jtag_init_command(): Initializing jtag devices…

Debug: 168 109 ft2232.c:1361 olimex_jtag_reset(): trst: 0, srst: 0, high_output: 0x01, high_direction: 0x0f

Debug: 169 109 core.c:672 jtag_add_reset(): SRST line released

Debug: 170 109 core.c:697 jtag_add_reset(): TRST line released

Debug: 171 109 core.c:321 jtag_call_event_callbacks(): jtag event: TAP reset

Debug: 172 421 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag arp_init

Debug: 173 421 command.c:133 script_debug(): command - ocd_jtag ocd_jtag arp_init

Debug: 174 421 core.c:1364 jtag_init_inner(): Init JTAG chain

Debug: 175 421 core.c:321 jtag_call_event_callbacks(): jtag event: TAP reset

Debug: 176 421 core.c:1017 jtag_examine_chain(): DR scan interrogation for IDCODE/BYPASS

Debug: 177 421 core.c:321 jtag_call_event_callbacks(): jtag event: TAP reset

Info : 178 484 core.c:917 jtag_examine_chain_display(): JTAG tap: stm32.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x3)

Info : 179 484 core.c:917 jtag_examine_chain_display(): JTAG tap: stm32.bs tap/device found: 0x16410041 (mfg: 0x020, part: 0x6410, ver: 0x1)

Debug: 180 484 core.c:1182 jtag_validate_ircapture(): IR capture validation scan

Debug: 181 484 core.c:1243 jtag_validate_ircapture(): stm32.cpu: IR capture 0x01

Debug: 182 484 core.c:1243 jtag_validate_ircapture(): stm32.bs: IR capture 0x01

Debug: 183 484 openocd.c:132 handle_init_command(): Examining targets…

Debug: 184 484 arm_adi_v5.c:1204 ahbap_debugport_init():

Debug: 185 593 arm_adi_v5.c:1265 ahbap_debugport_init(): MEM-AP #0 ID Register 0x14770011, Debug ROM Address 0xe00ff003

Debug: 186 624 target.c:1488 target_read_u32(): address: 0xe000ed00, value: 0x411fc231

Debug: 187 624 cortex_m3.c:1694 cortex_m3_examine(): Cortex-M3 r1p1 processor detected

Debug: 188 624 cortex_m3.c:1695 cortex_m3_examine(): cpuid: 0x411fc231

Debug: 189 655 target.c:1488 target_read_u32(): address: 0xe0002000, value: 0x00000260

Debug: 190 655 cortex_m3.c:1712 cortex_m3_examine(): FPB fpcr 0x260, numcode 6, numlit 2

Debug: 191 686 target.c:1488 target_read_u32(): address: 0xe0001000, value: 0x40000000

Debug: 192 686 cortex_m3.c:1664 cortex_m3_dwt_setup(): DWT dwtcr 0x40000000, comp 4, watch/trigger

Info : 193 686 cortex_m3.c:1721 cortex_m3_examine(): stm32.cpu: hardware has 6 breakpoints, 4 watchpoints

Debug: 194 686 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_flash init

Debug: 195 686 command.c:133 script_debug(): command - ocd_flash ocd_flash init

Warn : 197 733 cortex_m3.c:426 cortex_m3_poll(): stm32.cpu – clearing lockup after double fault

Debug: 199 764 tcl.c:920 handle_flash_init_command(): Initializing flash devices…

Debug: 200 764 command.c:346 register_command_handler(): registering ‘ocd_flash’…

Debug: 201 764 command.c:346 register_command_handler(): registering ‘ocd_flash’…

Debug: 202 764 command.c:346 register_command_handler(): registering ‘ocd_flash’…

Debug: 203 764 command.c:346 register_command_handler(): registering ‘ocd_flash’…

Debug: 204 764 command.c:346 register_command_handler(): registering ‘ocd_flash’…

Debug: 205 764 command.c:346 register_command_handler(): registering ‘ocd_flash’…

Debug: 206 764 command.c:346 register_command_handler(): registering ‘ocd_flash’…

Debug: 207 764 command.c:346 register_command_handler(): registering ‘ocd_flash’…

Debug: 208 764 command.c:346 register_command_handler(): registering ‘ocd_flash’…

Debug: 209 764 command.c:346 register_command_handler(): registering ‘ocd_flash’…

Debug: 210 764 command.c:346 register_command_handler(): registering ‘ocd_flash’…

Debug: 211 764 command.c:346 register_command_handler(): registering ‘ocd_flash’…

Debug: 212 764 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_mflash init

Debug: 213 764 command.c:133 script_debug(): command - ocd_mflash ocd_mflash init

Debug: 215 796 mflash.c:1325 handle_mflash_init_command(): Initializing mflash devices…

Debug: 216 796 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_nand init

Debug: 217 796 command.c:133 script_debug(): command - ocd_nand ocd_nand init

Debug: 219 811 tcl.c:536 handle_nand_init_command(): Initializing NAND devices…

Debug: 220 811 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_pld init

Debug: 221 811 command.c:133 script_debug(): command - ocd_pld ocd_pld init

Debug: 223 842 pld.c:231 handle_pld_init_command(): Initializing PLDs…

Debug: 224 842 gdb_server.c:2370 gdb_target_start(): gdb service for target ‘stm32.cpu’ on TCP port 3333

Info : 225 24211 server.c:81 add_connection(): accepting ‘gdb’ connection from 0

Debug: 226 24211 breakpoints.c:161 breakpoint_clear_target(): Delete all breakpoints for target: stm32.cpu

Debug: 227 24211 breakpoints.c:299 watchpoint_clear_target(): Delete all watchpoints for target: stm32.cpu

Debug: 228 24211 target.c:968 target_call_event_callbacks(): target event 25 (gdb-attach)

Debug: 229 24211 gdb_server.c:856 gdb_new_connection(): New GDB Connection: 1, Target stm32.cpu, state: halted

Debug: 230 24211 gdb_server.c:2147 gdb_input_inner(): received packet: ‘qSupported’

Warn : 231 24211 gdb_server.c:649 gdb_get_packet_inner(): acknowledgment received, but no packet pending

Debug: 232 24211 gdb_server.c:2147 gdb_input_inner(): received packet: ‘?’

Debug: 233 24211 gdb_server.c:2147 gdb_input_inner(): received packet: ‘Hc-1’

Debug: 234 24227 gdb_server.c:2147 gdb_input_inner(): received packet: ‘qC’

Debug: 235 24227 gdb_server.c:2147 gdb_input_inner(): received packet: ‘qOffsets’

Debug: 236 24227 gdb_server.c:2147 gdb_input_inner(): received packet: ‘Hg0’

Debug: 237 24227 gdb_server.c:2147 gdb_input_inner(): received packet: ‘g’

Debug: 238 24227 gdb_server.c:2147 gdb_input_inner(): received packet: ‘qXfer:memory-map:read::0,fff’

Debug: 239 24259 target.c:1488 target_read_u32(): address: 0xe0042000, value: 0x20016410

Info : 240 24259 stm32x.c:678 stm32x_probe(): device id = 0x20016410

Debug: 241 24290 target.c:1516 target_read_u16(): address: 0x1ffff7e0, value: 0x0080

Info : 242 24290 stm32x.c:753 stm32x_probe(): flash size = 128kbytes

Debug: 243 24322 gdb_server.c:2147 gdb_input_inner(): received packet: ‘m0,4’

Debug: 244 24322 gdb_server.c:1251 gdb_read_memory_packet(): addr: 0x00000000, len: 0x00000004

Debug: 245 24322 target.c:1333 target_read_buffer(): reading buffer of 4 byte at 0x00000000

Debug: 246 24353 gdb_server.c:2147 gdb_input_inner(): received packet: ‘qSymbol::’

Debug: 247 24431 gdb_server.c:2147 gdb_input_inner(): received packet: ‘m0,4’

Debug: 248 24431 gdb_server.c:1251 gdb_read_memory_packet(): addr: 0x00000000, len: 0x00000004

Debug: 249 24431 target.c:1333 target_read_buffer(): reading buffer of 4 byte at 0x00000000

Debug: 250 24540 gdb_server.c:2147 gdb_input_inner(): received packet: ‘qRcmd,726573657420696e6974’

Debug: 251 24556 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_reset init

Debug: 252 24556 command.c:133 script_debug(): command - reset ocd_reset init

Debug: 254 24587 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_target names

Debug: 255 24587 command.c:133 script_debug(): command - ocd_target ocd_target names

Debug: 256 24587 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu invoke-event reset-start

Debug: 257 24587 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu invoke-event reset-start

Debug: 258 24587 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag arp_init-reset

Debug: 259 24587 command.c:133 script_debug(): command - ocd_jtag ocd_jtag arp_init-reset

Debug: 260 24587 core.c:1451 jtag_init_reset(): Initializing with hard TRST+SRST reset

Debug: 261 24587 core.c:685 jtag_add_reset(): JTAG reset with TLR instead of TRST

Debug: 262 24587 core.c:321 jtag_call_event_callbacks(): jtag event: TAP reset

Debug: 263 24587 core.c:1364 jtag_init_inner(): Init JTAG chain

Debug: 264 24587 core.c:321 jtag_call_event_callbacks(): jtag event: TAP reset

Debug: 265 24587 core.c:1017 jtag_examine_chain(): DR scan interrogation for IDCODE/BYPASS

Debug: 266 24587 core.c:321 jtag_call_event_callbacks(): jtag event: TAP reset

Info : 267 24649 core.c:917 jtag_examine_chain_display(): JTAG tap: stm32.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x3)

Info : 268 24649 core.c:917 jtag_examine_chain_display(): JTAG tap: stm32.bs tap/device found: 0x16410041 (mfg: 0x020, part: 0x6410, ver: 0x1)

Debug: 269 24649 core.c:1182 jtag_validate_ircapture(): IR capture validation scan

Debug: 270 24649 core.c:1243 jtag_validate_ircapture(): stm32.cpu: IR capture 0x01

Debug: 271 24649 core.c:1243 jtag_validate_ircapture(): stm32.bs: IR capture 0x01

Debug: 272 24649 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu cget -chain-position

Debug: 273 24649 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu cget -chain-position

Debug: 274 24649 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag tapisenabled stm32.cpu

Debug: 275 24649 command.c:133 script_debug(): command - ocd_jtag ocd_jtag tapisenabled stm32.cpu

Debug: 276 24649 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu arp_examine

Debug: 277 24649 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu arp_examine

Debug: 278 24649 arm_adi_v5.c:1204 ahbap_debugport_init():

Debug: 279 24758 arm_adi_v5.c:1265 ahbap_debugport_init(): MEM-AP #0 ID Register 0x14770011, Debug ROM Address 0xe00ff003

Debug: 280 24758 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu invoke-event reset-assert-pre

Debug: 281 24758 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu invoke-event reset-assert-pre

Debug: 282 24758 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu cget -chain-position

Debug: 283 24758 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu cget -chain-position

Debug: 284 24758 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag tapisenabled stm32.cpu

Debug: 285 24758 command.c:133 script_debug(): command - ocd_jtag ocd_jtag tapisenabled stm32.cpu

Debug: 286 24758 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu arp_reset assert 1

Debug: 287 24758 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu arp_reset assert 1

Debug: 288 24758 cortex_m3.c:784 cortex_m3_assert_reset(): target->state: halted

Debug: 289 24852 cortex_m3.c:891 cortex_m3_assert_reset(): Using Cortex-M3 SYSRESETREQ

Debug: 290 24883 cortex_m3.c:499 cortex_m3_halt(): target->state: reset

Debug: 291 24883 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu invoke-event reset-assert-post

Debug: 292 24883 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu invoke-event reset-assert-post

Debug: 293 24883 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu invoke-event reset-deassert-pre

Debug: 294 24883 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu invoke-event reset-deassert-pre

Debug: 295 24883 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu cget -chain-position

Debug: 296 24883 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu cget -chain-position

Debug: 297 24883 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag tapisenabled stm32.cpu

Debug: 298 24883 command.c:133 script_debug(): command - ocd_jtag ocd_jtag tapisenabled stm32.cpu

Debug: 299 24883 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu arp_reset deassert 1

Debug: 300 24883 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu arp_reset deassert 1

Debug: 301 24883 cortex_m3.c:921 cortex_m3_deassert_reset(): target->state: reset

Debug: 302 24883 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu invoke-event reset-deassert-post

Debug: 303 24883 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu invoke-event reset-deassert-post

Debug: 304 24883 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu cget -chain-position

Debug: 305 24883 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu cget -chain-position

Debug: 306 24883 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag tapisenabled stm32.cpu

Debug: 307 24883 command.c:133 script_debug(): command - ocd_jtag ocd_jtag tapisenabled stm32.cpu

Debug: 308 24883 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu arp_waitstate halted 1000

Debug: 309 24883 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu arp_waitstate halted 1000

Debug: 310 25008 cortex_m3.c:452 cortex_m3_poll(): Exit from reset with dcb_dhcsr 0x30003

Debug: 311 25039 cortex_m3.c:195 cortex_m3_endreset_event(): DCB_DEMCR = 0x01000501

Debug: 312 25070 target.c:1565 target_write_u32(): address: 0xe0002000, value: 0x00000003

Debug: 313 25117 target.c:1565 target_write_u32(): address: 0xe0002008, value: 0x00000000

Debug: 314 25133 target.c:1565 target_write_u32(): address: 0xe000200c, value: 0x00000000

Debug: 315 25164 target.c:1565 target_write_u32(): address: 0xe0002010, value: 0x00000000

Debug: 316 25180 target.c:1565 target_write_u32(): address: 0xe0002014, value: 0x00000000

Debug: 317 25211 target.c:1565 target_write_u32(): address: 0xe0002018, value: 0x00000000

Debug: 318 25226 target.c:1565 target_write_u32(): address: 0xe000201c, value: 0x00000000

Debug: 319 25242 target.c:1565 target_write_u32(): address: 0xe0002020, value: 0x00000000

Debug: 320 25274 target.c:1565 target_write_u32(): address: 0xe0002024, value: 0x00000000

Debug: 321 25290 target.c:1565 target_write_u32(): address: 0xe0001020, value: 0x00000000

Debug: 322 25321 target.c:1565 target_write_u32(): address: 0xe0001024, value: 0x00000000

Debug: 323 25337 target.c:1565 target_write_u32(): address: 0xe0001028, value: 0x00000000

Debug: 324 25352 target.c:1565 target_write_u32(): address: 0xe0001030, value: 0x00000000

Debug: 325 25383 target.c:1565 target_write_u32(): address: 0xe0001034, value: 0x00000000

Debug: 326 25399 target.c:1565 target_write_u32(): address: 0xe0001038, value: 0x00000000

Debug: 327 25430 target.c:1565 target_write_u32(): address: 0xe0001040, value: 0x00000000

Debug: 328 25446 target.c:1565 target_write_u32(): address: 0xe0001044, value: 0x00000000

Debug: 329 25461 target.c:1565 target_write_u32(): address: 0xe0001048, value: 0x00000000

Debug: 330 25493 target.c:1565 target_write_u32(): address: 0xe0001050, value: 0x00000000

Debug: 331 25508 target.c:1565 target_write_u32(): address: 0xe0001054, value: 0x00000000

Debug: 332 25539 target.c:1565 target_write_u32(): address: 0xe0001058, value: 0x00000000

Debug: 333 25602 cortex_m3.c:336 cortex_m3_debug_entry():

Debug: 334 25680 cortex_m3.c:151 cortex_m3_clear_halt(): NVIC_DFSR 0x9

Debug: 335 25773 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 0 value 0xfbfbbf6c

Debug: 336 25836 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 1 value 0xfddfebee

Debug: 337 25883 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 2 value 0x9ba5d20

Debug: 338 25945 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 3 value 0x48748d3f

Debug: 339 26007 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 4 value 0xffffaf9f

Debug: 340 26070 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 5 value 0xfffffbfe

Debug: 341 26117 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 6 value 0xed0f5059

Debug: 342 26179 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 7 value 0x12dde3b

Debug: 343 26241 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 8 value 0xffeff7d1

Debug: 344 26289 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 9 value 0xffff7ffa

Debug: 345 26352 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 10 value 0xfb433458

Debug: 346 26414 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 11 value 0x144289e

Debug: 347 26476 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 12 value 0xff1bfef7

Debug: 348 26539 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 13 value 0xaf00b580

Debug: 349 26586 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 14 value 0xffffffff

Debug: 350 26648 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 15 value 0xf890f000

Debug: 351 26710 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 16 value 0x0

Debug: 352 26773 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 17 value 0xaf00b580

Debug: 353 26820 cortex_m3.c:1346 cortex_m3_load_core_reg_u32(): load from core reg 18 value 0x67469c4

Debug: 354 26882 cortex_m3.c:1378 cortex_m3_load_core_reg_u32(): load from special reg 19 value 0x0

Debug: 355 26944 cortex_m3.c:1378 cortex_m3_load_core_reg_u32(): load from special reg 20 value 0x0

Debug: 356 27007 cortex_m3.c:1378 cortex_m3_load_core_reg_u32(): load from special reg 21 value 0x0

Debug: 357 27054 cortex_m3.c:1378 cortex_m3_load_core_reg_u32(): load from special reg 22 value 0x0

Debug: 358 27054 cortex_m3.c:396 cortex_m3_debug_entry(): entered debug state in core mode: Thread at PC 0xf890f000, target->state: halted

Debug: 359 27054 target.c:968 target_call_event_callbacks(): target event 2 (gdb-halt)

Debug: 360 27054 target.c:968 target_call_event_callbacks(): target event 3 (halted)

User : 361 27054 target.c:1234 target_arch_state(): target state: halted

Warn : 362 27054 gdb_server.c:441 gdb_put_packet_inner(): negative reply, retrying

User : 363 27054 armv7m.c:489 armv7m_arch_state(): target halted due to debug-request, current mode: Thread

xPSR: 00000000 pc: 0xf890f000 msp: 0xaf00b580

Debug: 364 27054 target.c:968 target_call_event_callbacks(): target event 8 (gdb-end)

Debug: 365 27054 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu curstate

Debug: 366 27054 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu curstate

Debug: 367 27054 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu cget -chain-position

Debug: 368 27054 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu cget -chain-position

Debug: 369 27054 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag tapisenabled stm32.cpu

Debug: 370 27054 command.c:133 script_debug(): command - ocd_jtag ocd_jtag tapisenabled stm32.cpu

Debug: 371 27054 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu arp_waitstate halted 5000

Debug: 372 27054 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu arp_waitstate halted 5000

Debug: 373 27087 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu invoke-event reset-init

Debug: 374 27087 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu invoke-event reset-init

Debug: 375 27087 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu invoke-event reset-end

Debug: 376 27087 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu invoke-event reset-end

Warn : 377 27118 gdb_server.c:441 gdb_put_packet_inner(): negative reply, retrying

Debug: 378 27165 gdb_server.c:2147 gdb_input_inner(): received packet: ‘qRcmd,666c6173682065726173655f736563746f7220302030203331’

Debug: 379 27180 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_flash erase_sector 0 0 31

Debug: 380 27180 command.c:133 script_debug(): command - ocd_flash ocd_flash erase_sector 0 0 31

Debug: 382 27197 target.c:1565 target_write_u32(): address: 0x40022004, value: 0x45670123

Debug: 383 27228 target.c:1565 target_write_u32(): address: 0x40022004, value: 0xcdef89ab

Debug: 384 27259 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000002

Debug: 385 27275 target.c:1565 target_write_u32(): address: 0x40022014, value: 0x08000000

Debug: 386 27292 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000042

Debug: 387 27354 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000003

Debug: 388 27354 stm32x.c:75 stm32x_wait_status_busy(): status: 0x3

Debug: 389 27385 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000020

Debug: 390 27385 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000002

Debug: 391 27416 target.c:1565 target_write_u32(): address: 0x40022014, value: 0x08000400

Debug: 392 27432 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000042

Debug: 393 27479 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000020

Debug: 394 27479 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000002

Debug: 395 27510 target.c:1565 target_write_u32(): address: 0x40022014, value: 0x08000800

Debug: 396 27526 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000042

Debug: 397 27572 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000020

Debug: 398 27572 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000002

Debug: 399 27588 target.c:1565 target_write_u32(): address: 0x40022014, value: 0x08000c00

Debug: 400 27619 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000042

Debug: 401 27666 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000023

Debug: 402 27666 stm32x.c:75 stm32x_wait_status_busy(): status: 0x23

Debug: 403 27697 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000020

Debug: 404 27697 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000002

Debug: 405 27728 target.c:1565 target_write_u32(): address: 0x40022014, value: 0x08001000

Debug: 406 27744 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000042

Debug: 407 27791 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000023

Debug: 408 27791 stm32x.c:75 stm32x_wait_status_busy(): status: 0x23

Debug: 410 27822 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000020

Debug: 411 27822 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000002

Debug: 412 27853 target.c:1565 target_write_u32(): address: 0x40022014, value: 0x08001400

Debug: 413 27869 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000042

Debug: 414 27916 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000020

Debug: 415 27916 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000002

Debug: 416 27947 target.c:1565 target_write_u32(): address: 0x40022014, value: 0x08001800

Debug: 417 27962 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000042

Debug: 418 28009 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000020

Debug: 419 28009 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000002

Debug: 420 28040 target.c:1565 target_write_u32(): address: 0x40022014, value: 0x08001c00

Debug: 421 28056 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000042

Debug: 422 28103 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000020

Debug: 423 28103 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000002

Debug: 424 28134 target.c:1565 target_write_u32(): address: 0x40022014, value: 0x08002000

Debug: 425 28150 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000042

Debug: 426 28196 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000023

Debug: 427 28196 stm32x.c:75 stm32x_wait_status_busy(): status: 0x23

Debug: 428 28228 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000020

Debug: 429 28228 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000002

Debug: 430 28259 target.c:1565 target_write_u32(): address: 0x40022014, value: 0x08002400

Debug: 431 28274 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000042

Debug: 432 28322 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000023

Debug: 433 28322 stm32x.c:75 stm32x_wait_status_busy(): status: 0x23

Debug: 435 28353 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000020

Debug: 436 28353 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000002

Debug: 437 28385 target.c:1565 target_write_u32(): address: 0x40022014, value: 0x08002800

Debug: 438 28400 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000042

Debug: 439 28447 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000023

Debug: 440 28447 stm32x.c:75 stm32x_wait_status_busy(): status: 0x23

Debug: 441 28478 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000020

Debug: 442 28478 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000002

Debug: 443 28509 target.c:1565 target_write_u32(): address: 0x40022014, value: 0x08002c00

Debug: 444 28525 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000042

Debug: 445 28572 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000020

Debug: 446 28572 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000002

Debug: 447 28587 target.c:1565 target_write_u32(): address: 0x40022014, value: 0x08003000

Debug: 448 28619 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000042

Debug: 449 28665 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000020

Debug: 450 28665 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000002

Debug: 451 28681 target.c:1565 target_write_u32(): address: 0x40022014, value: 0x08003400

Debug: 452 28712 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000042

Debug: 453 28759 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000023

Debug: 454 28759 stm32x.c:75 stm32x_wait_status_busy(): status: 0x23

Debug: 455 28790 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000020

Debug: 456 28790 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000002

Debug: 457 28821 target.c:1565 target_write_u32(): address: 0x40022014, value: 0x08003800

Debug: 458 28837 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000042

Debug: 459 28884 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000023

Debug: 460 28884 stm32x.c:75 stm32x_wait_status_busy(): status: 0x23

Debug: 462 28915 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000020

Debug: 463 28915 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000002

Debug: 464 28946 target.c:1565 target_write_u32(): address: 0x40022014, value: 0x08003c00

Debug: 465 28962 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000042

Debug: 466 29009 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000023

Debug: 467 29009 stm32x.c:75 stm32x_wait_status_busy(): status: 0x23

Debug: 468 29040 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000020

Debug: 469 29040 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000002

Debug: 470 29071 target.c:1565 target_write_u32(): address: 0x40022014, value: 0x08004000

Debug: 471 29087 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000042

Debug: 472 29133 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000023

Debug: 473 29133 stm32x.c:75 stm32x_wait_status_busy(): status: 0x23

Debug: 474 29165 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000020

Debug: 475 29165 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000002

Debug: 476 29196 target.c:1565 target_write_u32(): address: 0x40022014, value: 0x08004400

Debug: 477 29211 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000042

Debug: 478 29258 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000023

Debug: 479 29258 stm32x.c:75 stm32x_wait_status_busy(): status: 0x23

Debug: 480 29289 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000020

Debug: 481 29289 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000002

Debug: 482 29322 target.c:1565 target_write_u32(): address: 0x40022014, value: 0x08004800

Debug: 483 29337 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000042

Debug: 484 29384 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000023

Debug: 485 29384 stm32x.c:75 stm32x_wait_status_busy(): status: 0x23

Debug: 487 29415 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000020

Debug: 488 29415 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000002

Debug: 489 29446 target.c:1565 target_write_u32(): address: 0x40022014, value: 0x08004c00

Debug: 490 29462 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000042

Debug: 491 29509 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000023

Debug: 492 29509 stm32x.c:75 stm32x_wait_status_busy(): status: 0x23

Debug: 493 29540 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000020

Debug: 494 29540 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000002

Debug: 495 29571 target.c:1565 target_write_u32(): address: 0x40022014, value: 0x08005000

Debug: 496 29587 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000042

Debug: 497 29634 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000023

Debug: 498 29634 stm32x.c:75 stm32x_wait_status_busy(): status: 0x23

Debug: 499 29665 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000020

Debug: 500 29665 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000002

Debug: 501 29696 target.c:1565 target_write_u32(): address: 0x40022014, value: 0x08005400

Debug: 502 29712 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000042

Debug: 503 29758 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000023

Debug: 504 29758 stm32x.c:75 stm32x_wait_status_busy(): status: 0x23

Debug: 505 29790 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000020

Debug: 506 29790 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000002

Debug: 507 29821 target.c:1565 target_write_u32(): address: 0x40022014, value: 0x08005800

Debug: 508 29836 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000042

Debug: 509 29883 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000023

Debug: 510 29883 stm32x.c:75 stm32x_wait_status_busy(): status: 0x23

Debug: 511 29914 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000020

Debug: 512 29914 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000002

Debug: 513 29946 target.c:1565 target_write_u32(): address: 0x40022014, value: 0x08005c00

Debug: 514 29961 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000042

Debug: 515 30008 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000023

Debug: 516 30008 stm32x.c:75 stm32x_wait_status_busy(): status: 0x23

Debug: 518 30039 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000020

Debug: 519 30039 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000002

Debug: 520 30070 target.c:1565 target_write_u32(): address: 0x40022014, value: 0x08006000

Debug: 521 30086 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000042

Debug: 522 30133 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000023

Debug: 523 30133 stm32x.c:75 stm32x_wait_status_busy(): status: 0x23

Debug: 524 30164 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000020

Debug: 525 30164 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000002

Debug: 526 30195 target.c:1565 target_write_u32(): address: 0x40022014, value: 0x08006400

Debug: 527 30211 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000042

Debug: 528 30258 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000023

Debug: 529 30258 stm32x.c:75 stm32x_wait_status_busy(): status: 0x23

Debug: 530 30289 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000020

Debug: 531 30289 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000002

Debug: 532 30320 target.c:1565 target_write_u32(): address: 0x40022014, value: 0x08006800

Debug: 533 30336 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000042

Debug: 534 30383 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000023

Debug: 535 30383 stm32x.c:75 stm32x_wait_status_busy(): status: 0x23

Debug: 536 30415 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000020

Debug: 537 30415 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000002

Debug: 538 30446 target.c:1565 target_write_u32(): address: 0x40022014, value: 0x08006c00

Debug: 539 30461 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000042

Debug: 540 30508 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000020

Debug: 541 30508 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000002

Debug: 542 30539 target.c:1565 target_write_u32(): address: 0x40022014, value: 0x08007000

Debug: 543 30555 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000042

Debug: 544 30602 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000020

Debug: 545 30602 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000002

Debug: 546 30617 target.c:1565 target_write_u32(): address: 0x40022014, value: 0x08007400

Debug: 547 30649 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000042

Debug: 548 30695 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000020

Debug: 549 30695 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000002

Debug: 550 30711 target.c:1565 target_write_u32(): address: 0x40022014, value: 0x08007800

Debug: 551 30742 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000042

Debug: 552 30789 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000020

Debug: 553 30789 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000002

Debug: 554 30805 target.c:1565 target_write_u32(): address: 0x40022014, value: 0x08007c00

Debug: 555 30836 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000042

Debug: 556 30883 target.c:1488 target_read_u32(): address: 0x4002200c, value: 0x00000020

Debug: 557 30883 target.c:1565 target_write_u32(): address: 0x40022010, value: 0x00000080

User : 558 30898 command.c:539 command_print(): erased sectors 0 through 31 on flash bank 0 in 3.701206s

Warn : 559 30946 gdb_server.c:649 gdb_get_packet_inner(): acknowledgment received, but no packet pending

Debug: 560 30993 gdb_server.c:2147 gdb_input_inner(): received packet: ‘qRcmd,666c6173682077726974655f696d616765206d61696e2e62696e2030783038303030303030’

Debug: 561 31008 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_flash write_image main.bin 0x08000000

Debug: 562 31008 command.c:133 script_debug(): command - ocd_flash ocd_flash write_image main.bin 0x08000000

Debug: 564 31025 configuration.c:87 find_file(): found main.bin

Debug: 565 31025 configuration.c:87 find_file(): found main.bin

Debug: 566 31025 target.c:1565 target_write_u32(): address: 0x40022004, value: 0x45670123

Debug: 567 31056 target.c:1565 target_write_u32(): address: 0x40022004, value: 0xcdef89ab

Debug: 568 31087 target.c:1072 target_alloc_working_area(): MMU disabled, using physical address for working memory 0x20000000

Debug: 569 31087 target.c:1134 target_alloc_working_area(): allocated new working area at address 0x20000000

Debug: 570 31087 target.c:1251 target_write_buffer(): writing buffer of 48 byte at 0x20000000

Debug: 571 31165 target.c:1134 target_alloc_working_area(): allocated new working area at address 0x20000030

Debug: 572 31165 target.c:1251 target_write_buffer(): writing buffer of 8482 byte at 0x20000030

Error: 573 66190 ft2232.c:438 ft2232_read(): couldn’t read enough bytes from FT2232 device (0 < 6)

Warn : 574 66190 gdb_server.c:441 gdb_put_packet_inner(): negative reply, retrying

Warn : 575 66190 gdb_server.c:441 gdb_put_packet_inner(): negative reply, retrying

Warn : 576 66190 gdb_server.c:441 gdb_put_packet_inner(): negative reply, retrying

Error: 577 66190 ft2232.c:692 ft2232_send_and_recv(): couldn’t read from FT2232

Just tested again after upgrading Eclipse to Galileo and GDB to 7.1

Eclipse Galileo, gdb7.1 (via devkitPro). openOCD 0.4.0

Same error so looks like ocd/ ftdi issue.

I have now moved to the latest versions of openocd and gdb along with libusb-win32 instead of ftdi drivers. I used windows installers from various sites as per my other post on this site. No more errors and can now upgrade easily with windows installers!