This is an automated email from Gerrit.

Karl Palsson ([email protected]) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/3406

-- gerrit

commit da18fe7fb1250e07c27a7655c2b65b1845a37873
Author: Karl Palsson <[email protected]>
Date:   Thu Apr 14 00:01:11 2016 +0000

    drivers: cmsis-dap: extend atmel specific hacks
    
    mEDBG on D10 xplained mini only uses 35byte hid reports according to lsusb.
    With this fix, openocd can successfully connect to the target, instead of
    failing on the connect calls.
    
    Change-Id: I7f43be50f8c6413dd1be3babaed4344180b91e1b
    Signed-off-by: Karl Palsson <[email protected]>

diff --git a/src/jtag/drivers/cmsis_dap_usb.c b/src/jtag/drivers/cmsis_dap_usb.c
index c090878..0e6adbd 100644
--- a/src/jtag/drivers/cmsis_dap_usb.c
+++ b/src/jtag/drivers/cmsis_dap_usb.c
@@ -277,6 +277,11 @@ static int cmsis_dap_usb_open(void)
         * hardcoding a match by VID */
        if (target_vid == 0x03eb)
                packet_size = 512 + 1;
+       /* atmel mEDBG is 35 (can't string match product, it's gone) */
+       //if ((target_vid == 0x03eb) && wcsstr(cur_dev->product_string, 
L"mEDBG")) {
+       if ((target_vid == 0x03eb) && (target_pid == 0x2145)) {
+               packet_size = 35;
+       }
 
        cmsis_dap_handle->packet_buffer = malloc(packet_size);
        cmsis_dap_handle->packet_size = packet_size;

-- 

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to