openocd/src
Frans-Willem Hardijzer 89f07325f2 stlink: Set speed before entering JTAG/SWD mode
Some boards require a slower clock speed because of passive components on the
JTAG/SWD lines. The previous implementation would first try to discover the
chips on the default speed, and only after discovery switch to the requested
adapter_khz speed.

This patch moves the speed change to just before entering the SWD/JTAG mode,
which should alleviate this problem.

Tested on an STLink V2 clone.

Change-Id: I9734452dcc8bb28d6629e64d9a7e32ef92868cf9
Signed-off-by: Frans-Willem Hardijzer <fw@hardijzer.nl>
Reviewed-on: http://openocd.zylin.com/4818
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
2019-03-26 08:20:06 +00:00
..
flash flash/stm32h7x: remove IWDG1_SW separate variable 2019-03-14 14:18:30 +00:00
helper helper/command: return proper JIM error code 2019-03-06 15:38:07 +00:00
jtag stlink: Set speed before entering JTAG/SWD mode 2019-03-26 08:20:06 +00:00
pld Convert to non-recursive make 2016-12-08 16:23:10 +00:00
rtos rtos/hwthread: add hardware-thread pseudo rtos 2019-03-08 12:54:47 +00:00
server gdb_server, target: Add target_address_bits() 2019-03-08 14:05:19 +00:00
svf svf: improve robustness when processing invalid SVF files 2018-03-13 08:41:21 +00:00
target mips32: pracc: Fix indent 2019-03-23 17:43:30 +00:00
transport configure: disable all drivers when zy1000 is enabled 2018-04-09 09:04:46 +01:00
xsvf Convert to non-recursive make 2016-12-08 16:23:10 +00:00
hello.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
hello.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
main.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
Makefile.am Convert to non-recursive make 2016-12-08 16:23:10 +00:00
openocd.c armv8: valgrind memleak fixes 2018-04-10 09:13:02 +01:00
openocd.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00