Hello.
> Are there any adapters that speak CMSIS-DAP but violate that rule?
It exists. [Spansion's FM4 Starter
kit](http://www.spansion.com/Support/microcontrollers/developmentenvironment/Pages/board-SK-FM4-U120-9B560.aspx)
After applying this patch, the on-board CMSIS-DAP adapter was detected.
~~~~~
diff --git a/src/jtag/drivers/cmsis_dap_usb.c b/src/jtag/drivers/cmsis_dap_usb.c
index dc59fcf..c05ee22 100644
--- a/src/jtag/drivers/cmsis_dap_usb.c
+++ b/src/jtag/drivers/cmsis_dap_usb.c
@@ -173,7 +173,11 @@ static int cmsis_dap_usb_open(void)
devs = hid_enumerate(0x0, 0x0);
cur_dev = devs;
while (NULL != cur_dev) {
- if (0 == cmsis_dap_vid[0]) {
+ if (0x1a6a == cur_dev->vendor_id &&
+ 0x2000 == cur_dev->product_id) {
+ /* Spansion SK-FM4-U120-9B560 */
+ break;
+ } else if (0 == cmsis_dap_vid[0]) {
if (NULL == cur_dev->product_string) {
LOG_DEBUG("Cannot read product string of device
0x%x:0x%x",
cur_dev->vendor_id,
cur_dev->product_id);
~~~~~
---
** [tickets:#75] cmsis_dap_vid_pid unusable.**
**Status:** new
**Milestone:** 0.9.0
**Created:** Mon Jun 23, 2014 08:53 AM UTC by MURANAKA Masaki
**Last Updated:** Mon Jun 23, 2014 07:07 PM UTC
**Owner:** nobody
There is no way to call cmsis_dap_vid_pid command.
As the script execution will be failed in cmsis_dap_usb_open() (in
cmsis_dap_init() ).
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/openocd/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/openocd/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel