<div dir="ltr"><div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>I need CMSIS-DAP support in openOCD on my target build.  I noticed the comment in <a href="http://openocd.mk">openocd.mk</a> explaining that CMSIS-DAP support is disabled for the host build because HIDAPI is not supported in buildroot.</div><div><br></div><div>However, I see cmsis-dap support in the target options of openocd as well as HIDAPI support for target buids.</div><div><br></div><div>I was able to add cmsis-dap support for the target easily with the patch below.</div><div><br></div><div>Is there a reason why the CMSIS-DAP Adapter option in Config.in was removed or never added for the target build?  If not I'll submit this but wanted to make sure I wasn't missing something.</div><div><br></div><div>Thanks, Matt.</div><div><br></div><div><div>diff --git a/package/openocd/Config.in b/package/openocd/Config.in</div><div>index 6cba7a04c8..2145ac72eb 100644</div><div>--- a/package/openocd/Config.in</div><div>+++ b/package/openocd/Config.in</div><div>@@ -9,6 +9,16 @@ if BR2_PACKAGE_OPENOCD</div><div> </div><div> comment "Adapters"</div><div> </div><div>+config BR2_PACKAGE_OPENOCD_CMSIS_DAP</div><div>+</div><div>+       bool "CMSIS-DAP compliant debuggers"</div><div>+       depends on BR2_TOOLCHAIN_HAS_THREADS # libusb</div><div>+       select BR2_PACKAGE_LIBUSB</div><div>+       select BR2_PACKAGE_HIDAPI</div><div>+       help</div><div>+         Enable support for CMSIS-DAP compliant</div><div>+         debuggers (i.e Atmel/Microchip EDBG, etc.)</div><div>+</div><div> config BR2_PACKAGE_OPENOCD_FTDI</div><div>        bool "MPSSE mode of FTDI based devices"</div><div>        depends on BR2_TOOLCHAIN_HAS_THREADS # libusb</div><div>diff --git a/package/openocd/<a href="http://openocd.mk">openocd.mk</a> b/package/openocd/<a href="http://openocd.mk">openocd.mk</a></div><div>index 9d2576ceeb..a4e7a26921 100644</div><div>--- a/package/openocd/<a href="http://openocd.mk">openocd.mk</a></div><div>+++ b/package/openocd/<a href="http://openocd.mk">openocd.mk</a></div><div>@@ -29,7 +29,8 @@ OPENOCD_DEPENDENCIES = \</div><div>        $(if $(BR2_PACKAGE_LIBFTDI1),libftdi1) \</div><div>        $(if $(BR2_PACKAGE_LIBUSB),libusb) \</div><div>        $(if $(BR2_PACKAGE_LIBUSB_COMPAT),libusb-compat) \</div><div>-       $(if $(BR2_PACKAGE_LIBHID),libhid)</div><div>+       $(if $(BR2_PACKAGE_LIBHID),libhid) \</div><div>+       $(if $(BR2_PACKAGE_HIDAPI),hidapi)</div><div> </div><div> # Adapters</div><div> OPENOCD_CONF_OPTS += \</div></div></div></div></div>