openocd/src/jtag/drivers
Antonio Borneo 044e0f8c9a stlink: fix SWIM mode on stlink-v3
Commit 89f07325f2 ("stlink: Set speed before entering JTAG/SWD
mode") anticipates setting the adapter speed just before entering
in the JTAG/SWD mode. This to initiate the communication with the
speed selected by the user.
But SWIM doesn't allow setting the speed before entering in SWIM
mode. The resulting error causes OpenOCD to quit.
The problem only happens with stlink-v3, due to the different way
to set the adapter speed on different stlink versions.

Set the speed before entering in the mode only for JTAG and SWD
modes.

Change-Id: Iab42cd9d72ecfac14c7e17bae74e0dee2218b235
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Fixes: 89f07325f2 ("stlink: Set speed before entering JTAG/SWD mode")
Reviewed-on: https://review.openocd.org/c/openocd/+/6443
Tested-by: jenkins
Reviewed-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
2021-08-22 20:22:34 +00:00
..
libjaylink@9aa7a5957c libjaylink: Update to 0.2.0 release 2020-07-26 20:11:11 +01:00
OpenULINK openocd: fix doxygen parameters of functions 2021-01-13 11:33:53 +00:00
usb_blaster drivers/usb_blaster: Group adapter commands 2021-08-14 13:37:19 +01:00
versaloon openocd: fix Yoda conditions with checkpatch 2021-07-24 10:38:31 +01:00
amt_jtagaccel.c jtag: avoid checking for non NULL pointer to free it 2020-09-05 18:42:20 +01:00
arm-jtag-ew.c openocd: fix simple cases of NULL comparison 2021-07-24 10:37:49 +01:00
at91rm9200.c openocd: remove NULL comparisons with checkpatch [1/2] 2021-07-24 10:38:00 +01:00
bcm2835gpio.c drivers/bcm2835gpio: Group adapter commands 2021-08-14 13:35:11 +01:00
bitbang.c jtag/swd: rename CamelCase macros 2021-07-02 17:10:31 +01:00
bitbang.h bitbang: split jtag and swd operations 2020-07-14 00:38:21 +01:00
bitq.c openocd: fix simple cases of NULL comparison 2021-07-24 10:37:49 +01:00
bitq.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
buspirate.c drivers/buspirate: Group adapter commands 2021-08-14 13:36:47 +01:00
cmsis_dap_usb_bulk.c jtag/cmcis_dap: use COMMAND_PARSE_NUMBER in command handlers 2021-08-22 11:10:26 +00:00
cmsis_dap_usb_hid.c openocd: fix Yoda conditions with checkpatch 2021-07-24 10:38:31 +01:00
cmsis_dap.c jtag/cmcis_dap: use COMMAND_PARSE_NUMBER in command handlers 2021-08-22 11:10:26 +00:00
cmsis_dap.h drivers/cmsis-dap: update for newest protocol version 2021-07-31 10:08:24 +01:00
driver.c openocd: remove NULL comparisons with checkpatch [1/2] 2021-07-24 10:38:00 +01:00
dummy.c adapter: switch from struct jtag_interface to adapter_driver 2020-01-14 11:39:37 +00:00
ep93xx.c jtag/drivers: replace perror() with LOG_ERROR() 2020-07-14 00:39:39 +01:00
ft232r.c drivers/ft232r: Group adapter commands 2021-08-14 13:37:36 +01:00
ftdi.c openocd: remove NULL comparisons with checkpatch [1/2] 2021-07-24 10:38:00 +01:00
gw16012.c jtag: declare local symbols as static 2020-11-04 17:39:22 +00:00
imx_gpio.c jtag/drivers: replace perror() with LOG_ERROR() 2020-07-14 00:39:39 +01:00
jlink.c openocd: fix simple cases of NULL comparison 2021-07-24 10:37:49 +01:00
jtag_dpi.c drivers/jtag_dpi: Group adapter commands 2021-08-14 13:34:49 +01:00
jtag_usb_common.c openocd: fix simple cases of NULL comparison 2021-07-24 10:37:49 +01:00
jtag_usb_common.h Cleanup of config/includes. 2021-05-01 14:35:09 +01:00
jtag_vpi.c drivers/jtag_vpi: Group adapter commands 2021-08-14 13:35:37 +01:00
kitprog.c openocd: fix simple cases of NULL comparison 2021-07-24 10:37:49 +01:00
libftdi_helper.h openocd: add support for libftdi 1.5 2020-11-04 17:38:45 +00:00
libusb_helper.c openocd: remove NULL comparisons with checkpatch [1/2] 2021-07-24 10:38:00 +01:00
libusb_helper.h jtag: rename CamelCase symbols 2021-07-02 17:10:15 +01:00
linuxgpiod.c drivers/linuxgpiod: Group adapter commands 2021-08-14 13:36:00 +01:00
Makefile.am openocd: drop dependency from libusb0 2021-04-05 23:25:34 +01:00
Makefile.rlink Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
minidriver_imp.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
mpsse.c jtag/mpsse: fix SIGSEGV for use after free 2021-08-14 13:31:27 +01:00
mpsse.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
nulink_usb.c jtag: fix some minor typo 2021-05-22 10:06:38 +01:00
opendous.c openocd: fix simple cases of NULL comparison 2021-07-24 10:37:49 +01:00
openjtag.c drivers/openjtag: Group adapter commands 2021-08-14 13:33:07 +01:00
osbdm.c jtag: fix minor typos 2020-07-26 20:14:37 +01:00
parport.c drivers/parport: Group adapter commands 2021-08-14 13:32:41 +01:00
presto.c drivers/presto: Group adapter commands 2021-08-14 13:33:42 +01:00
remote_bitbang.c drivers/remote_bitbang: Group adapter commands 2021-08-14 13:33:30 +01:00
rlink_call.m4 coding style: src: remove empty lines at end of text files 2020-05-02 15:40:21 +01:00
rlink_dtc_cmd.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
rlink_ep1_cmd.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
rlink_init.m4 Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
rlink_speed_table.c coding style: src: remove empty lines at end of text files 2020-05-02 15:40:21 +01:00
rlink_st7.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
rlink.c openocd: manually remove NULL comparisons 2021-07-24 10:38:19 +01:00
rlink.h Cleanup of config/includes. 2021-05-01 14:35:09 +01:00
rshim.c jtag: fix minor typos 2020-07-26 20:14:37 +01:00
stlink_usb.c stlink: fix SWIM mode on stlink-v3 2021-08-22 20:22:34 +00:00
sysfsgpio.c drivers/sysfsgpio: Group adapter commands 2021-08-14 13:36:27 +01:00
ti_icdi_usb.c openocd: fix simple cases of NULL comparison 2021-07-24 10:37:49 +01:00
ulink.c drivers/ulink: Group adapter commands 2021-08-14 13:34:05 +01:00
usbprog.c drivers/usbprog: switch to libusb1 2021-04-05 23:25:02 +01:00
vsllink.c drivers/vsllink: Group adapter commands 2021-08-14 13:34:33 +01:00
xds110.c openocd: fix Yoda conditions with checkpatch 2021-07-24 10:38:31 +01:00
xlnx-pcie-xvc.c drivers/xlnx-pcie-xvc: Group adapter commands 2021-08-14 13:33:55 +01:00