Problems with new openOCD-0.9.0 with olimex for STM32f1x

Started by DanielMM, January 21, 2016, 03:32:42 pm

Previous topic - Next topic



I have been using the olimex ARM-USB-OCD-H to flash and debug a stm32f1x microcontroller. The toolchain used includes an openOCD server version 0.6.1. I recently tried to update to the openOCD version 0.9.0 rc1, and I am not able to flash and debug my board.

It shows the following error when I try to initiate the openOCD server:

Open On-Chip Debugger 0.9.0-rc1 (2015-04-24-22:09)
Licensed under GNU GPL v2
For bug reports, read
Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
jtag_ntrst_delay: 100
none separate
cortex_m reset_config sysresetreq
Error: failed to reset FTDI device: LIBUSB_ERROR_IO
Error: unable to open ftdi device with vid 15ba, pid 002b, description 'Olimex OpenOCD JTAG ARM-USB-OCD-H' and serial '*'

I call the openOCD server with the following arguments: -f ${workspace_loc}\arm_usb_ocd_h.cfg, which contains the following lines:

#daemon configuration
telnet_port 4444
gdb_port 3333
source [find interface/ftdi/olimex-arm-usb-ocd-h.cfg]
source [find target/stm32f1x.cfg]

I followed the steps on the manual of the olimex device (drivers updated with Zadig, FTDI cleaner, ...) ( but the error is still there. As soon as I switch back to openOCD v0.6.1 everything works fine, so I guess it could be some sort of problem with the newer openOCD scripts. Any idea about how to fix this??



Your drivers are definitely improper for OpenOCD 0.9.0.

The drivers for OpenOCD versions prior to 0.8.0 and the drivers for OpenOCD versions after 0.8.0 are different and incompatible.

Make sure to install the WinUSB drivers via Zadig as explained on pages 17 and 18 of the user's manual here:

Best regards,
Technical support and documentation manager at Olimex