From: OpenOCD-Gerrit <ope...@us...> - 2020-07-30 11:17:14
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via fb739651c79722b4bc57c31b3d26bb48840b9118 (commit) from 480ba8ca88e3f12bb60498b35de5fc4b74d0511d (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit fb739651c79722b4bc57c31b3d26bb48840b9118 Author: Michal Potrzebicz <mi...@el...> Date: Fri Jul 10 22:13:15 2020 +0100 cmsis_dap_usb: Support for Microchip's nEDBG CMSIS-DAP interface This commit fixes support for the nEDBG CMSIS-DAP interface which is used ie. on the Curiosity Nano SAMD21 board. nEDBG, similarily to mEDBG, does not support 512 byte HID packets. This patch adds its USB PID to the exclusion list to make sure that we stick with the default 64 bytes. Change-Id: I9010b0cf77c0b1347269a759b5d16ee5155abb16 Signed-off-by: Michal Potrzebicz <mi...@el...> Reviewed-on: http://openocd.zylin.com/5756 Tested-by: jenkins Reviewed-by: Tomas Vanek <va...@fb...> diff --git a/src/jtag/drivers/cmsis_dap_usb.c b/src/jtag/drivers/cmsis_dap_usb.c index efd039af6..6d55392d5 100644 --- a/src/jtag/drivers/cmsis_dap_usb.c +++ b/src/jtag/drivers/cmsis_dap_usb.c @@ -333,7 +333,7 @@ static int cmsis_dap_usb_open(void) * board */ /* TODO: HID report descriptor should be parsed instead of * hardcoding a match by VID */ - if (target_vid == 0x03eb && target_pid != 0x2145) + if (target_vid == 0x03eb && target_pid != 0x2145 && target_pid != 0x2175) packet_size = 512 + 1; cmsis_dap_handle->packet_buffer = malloc(packet_size); ----------------------------------------------------------------------- Summary of changes: src/jtag/drivers/cmsis_dap_usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) hooks/post-receive -- Main OpenOCD repository |