- This topic has 3 replies, 2 voices, and was last updated 7 years, 10 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Home › Forums › Mastering STM32 book support forum › Trouble with Openocd & Windows 7
Tagged: openocd, ST-LINK V2, STM32f103c8t6
Hello, first of all congratulations for the excelent book.
I have trouble with openocd + windows7 + stlink v2 + stm32f103c8t6 board.
Im on chapter 5.1.1.1, when i try to connect with OPENOCD and CMD terminal i have this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
{d:STM32Toolchainopenocdbin>openocd.exe -f board/st_nucleo_f103rb.cfg GNU ARM Eclipse 32-bits Open On-Chip Debugger 0.10.0-dev-00498-gbbfb673 (2016-10 -28-16:47) Licensed under GNU GPL v2 For bug reports, read <a href="http://openocd.org/doc/doxygen/bugs.html" rel="nofollow">http://openocd.org/doc/doxygen/bugs.html</a> Info : The selected transport took over low-level target control. The results mi ght differ compared to plain JTAG/SWD adapter speed: 1000 kHz adapter_nsrst_delay: 100 none separate srst_only separate srst_nogate srst_open_drain connect_deassert_srst Info : Unable to match requested speed 1000 kHz, using 950 kHz Info : Unable to match requested speed 1000 kHz, using 950 kHz Info : clock speed 950 kHz Error: open failed in procedure ‘init’ in procedure ‘ocd_bouncer’ } |
I do not know if I typed the commands wrong or I’m not selecting the correct card.
Trouble 2:
When update my drivers of STlink V2 with Zadig utility, ST-Utility cants acces to my ST-Link V2, I had to go back to the previous driver.
In either case the cmd terminal send me the same message.
———————–
My Board
http://www.ebay.com/itm/STM32F103C8T6-ARM-STM32-Minimum-System-Development-Board-Module-For-Arduino-DHUS-/321569700934?hash=item4adf0c3c46:g:Q7AAAOSw0kNXhGr~
Unfortunately I don’t have experience with those counterfeit ST-LINK clones. I suspect an issue related with drivers.
SOLVED
open with notepad or any text editor
MY_DRIVE:\\STM32Toolchain\openocd\scripts\board\st_nucleo_f103rb.cfg
and edit:
source [find interface/stlink-v2-1.cfg]
to source [find interface/stlink-v2.cfg]
for chinese ST-LINK v2
Thank you for sharing 😉