aboutsummaryrefslogtreecommitdiff
path: root/src/rtos
diff options
context:
space:
mode:
authorTomas Vanek <vanekt@fbl.cz>2022-10-20 11:43:10 +0200
committerAntonio Borneo <borneo.antonio@gmail.com>2022-11-11 20:22:25 +0000
commit3da0c2504c14ea0736b973fa0b5085c42a9c6ce8 (patch)
treeb3ace7300d579c0f4bd9f29cf47de7a0bdfd27a2 /src/rtos
parent1dea9ab41f988c5173325521b1e9b75274a785da (diff)
downloadriscv-openocd-3da0c2504c14ea0736b973fa0b5085c42a9c6ce8.zip
riscv-openocd-3da0c2504c14ea0736b973fa0b5085c42a9c6ce8.tar.gz
riscv-openocd-3da0c2504c14ea0736b973fa0b5085c42a9c6ce8.tar.bz2
jtag/drivers/cmsis_dap: prevent CDC missdetect as CMSIS-DAP bulk
The autodetection of CMSIS-DAP v2 bulk interface is tricky as not all adapters conform CMSIS-DAP specs. If an interface has a string descriptor containing CMSIS-DAP, then OpenOCD did not insisted on the correct interface class LIBUSB_CLASS_VENDOR_SPEC. However the relaxed test caused false autodetection of v2 bulk interface on some CMSIS-DAP v1 adapters with an additional serial interface with the string descriptor stupidly containing CMSIS-DAP text. Make the test less relaxed, refuse autodetection of the interfaces with the class number of well known functions including CDC and MSC. Link: https://sourceforge.net/p/openocd/tickets/368/ Change-Id: I917cb257eb42aab93560cc39c61ec35a60ce52e3 Signed-off-by: Tomas Vanek <vanekt@fbl.cz> Reviewed-on: https://review.openocd.org/c/openocd/+/7279 Tested-by: jenkins Reviewed-by: SilverFox <yyjdelete@126.com> Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src/rtos')
0 files changed, 0 insertions, 0 deletions