Unable to set adapter speed [Solved]
Hello guys,
I have a custom board with stm32f107vct7 processor. I’m trying to debug simple code with ST-Link-V2 bought on Aliexpress under Ubuntu 16.04. Then i’m trying to run project sw4stm32 throws next exception:
Open On-Chip Debugger 0.10.0-dev-00278-ga53935e-dirty (2017-05-09-09:16)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
srst_only separate srst_nogate srst_open_drain connect_assert_srst
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 4000 kHz
adapter_nsrst_delay: 100
Info : clock speed 4000 kHz
Info : STLINK v2 JTAG v21 API v2 SWIM v4 VID 0x0483 PID 0x3748
Info : vid/pid are not identical: 0x0483/0x374B 0x0483/0x3748
Info : using stlink api v2
Info : Target voltage: 3.193113
Error: Unable to set adapter speed
Info : STM32F107VCTx.cpu: hardware has 6 breakpoints, 4 watchpoints
Error: timed out while waiting for target halted
TARGET: STM32F107VCTx.cpu - Not halted
in procedure ‘program’
in procedure ‘reset’ called at file “embedded:startup.tcl”, line 478
in procedure ‘ocd_bouncer’
- Unable to reset target **
shutdown command invoked
Seems like, openOCD sets higher adapter speed then it’s possible. Board worked fine under Windows7 on keil ide with st-link frequency 1MHz.
How do I go about requesting it connect at a lower speed?
Best regards,
Alex