I am trying to connect STM32f4-Discovery board on Windows 7 64-bit using openOCD. The STM32F4-Discovery board is not directly connected to my desktop. It is connected via USB Redirector (http://www.incentivespro.com/products.html). So, when I try to openOCD with following command, I am getting the following error. Please note that the following error is not seen when the board is directly connected to the desktop (without USB redirector).
c:>C:\MATLAB\SupportPackages\R2013bPrerelease\openocd-0.6.1\bin\openocd-0.6.1.exe -f board/stm32f4discovery.cfg
Open On-Chip Debugger 0.6.1 (2012-10-07-10:34)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
adapter speed: 1000 kHz
srst_only separate srst_nogate srst_open_drain
Info : clock speed 1000 kHz
libusbx: warning [windows_get_device_list] could not retrieve port number for device ‘\.\ROOT#SYSTEM#0001’, skipping: [13] The data is invalid.
libusbx: warning [windows_get_device_list] ‘\.\USB#VID_0483&PID_3748#1&79F5D87&0&0000’ was only detected in late pass (newly connected device?) - ignoring
Error: open failed
in procedure ‘transport’
in procedure ‘init’
With, “STM32 ST-LINK Utility”, I am able to successfully connect and download the program on to STM32F4-Discovery board connected via USB-Redirector.
Please let me know what is the issue and how can I solve it.
Regards,
Raghavendra.