Openocd 0.10.0 open failed in “init” and “ocd_bouncer”, ST-Link-v2-1, STM-NucleoF722EZ
Windows7 64bit
STM-NucleoF722ez board with built in ST-LINK-v2-1 debug board
I am new to these tools, but able to created a simple project using CubeMX and imported the files into Eclipse and generated working hex file, and used ST-Link Utility to program the processor. But when I tried to use the OpenOCD to learn the debug, it failed to connect to the st-link board as descriped below.
With the Nucleo board connected to USB port I was able to use ST-LINK Utility to program a hex file to the STM32F722 processor successfully. But when I tried to run openocd (manually in Windows Command Line) to communicate with with ST-LINK using the command:
..\bin\openocd.exe -f board\st_nucleo_f7.cfg
With st_nucleof7.cfg contains following lines:
source find interface/stlink-v2-1.cfg
transport select hla_swd
source find target/stm32f7x.cfg
reset_config srst_only
...and stlink-v2-1.cfg has:
interface hla hla_layout stlink hla_device_desc “ST-LINK/V2-1” hla_vid_pid 0x0483 0x374b
...and Windows Device Manager shows USB Device as “STLINK dongle” with Hardware lds Value as: USB\VID_0483&PID_374B&REV_0100&MI_00 USB\VID_0483&PID_374B&MI_00
It seems all VID and PID are matched. ...but I got the following error. Could someone tell me what is wrong in my setup please? I have been working on this problem a few days already to no progress.
GNU ARM Eclipse 64-bits Open On-Chip Debugger 0.10.0-00113-g0f83948 (2017-01-24-
18:48)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : The selected transport took over low-level target control. The results mi
ght differ compared to plain JTAG/SWD
adapter speed: 2000 kHz
adapter_nsrst_delay: 100
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : clock speed 1800 kHz
Error: open failed
in procedure ‘init’
in procedure ‘ocd_bouncer’
Thanks, Brian