<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>LPC MicrocontrollersのトピックRe: Problem with LPC-LINK2/CMSIS-DAP with OpenOCD and VirtualBox/Vagrant</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-with-LPC-LINK2-CMSIS-DAP-with-OpenOCD-and-VirtualBox/m-p/926726#M36954</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just updating this question with some more&amp;nbsp;info. &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Logged an issue under on the CMSIS_5 GitHub page&amp;nbsp;&lt;A class="link-titled" href="https://github.com/ARM-software/CMSIS_5/issues/613" title="https://github.com/ARM-software/CMSIS_5/issues/613"&gt;LPC-Link2 Communication Issue with VirtualBox · Issue #613 · ARM-software/CMSIS_5 · GitHub&lt;/A&gt;&amp;nbsp;, although they have advised that the LPC-Link2 firmware is maintained by NXP and I should direct accordingly. &amp;nbsp;Hoping this can be looked at.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #24292e; margin-bottom: 16px;"&gt;I have taken USBMON captures at the host with both the non-VirtualBox (working) configuration and VirtualBox (not working) configurations. These are shown below. It looks like the DAP capability request is being sent from the VM but the LPC-Link2 will not respond correctly to it. In fact, the LPC-Link2 continues to send empty data until the board is disconnected.&lt;/P&gt;&lt;P style="color: #24292e; margin-bottom: 16px;"&gt;Any help in rectifying or letting me know where to continue looking would be much appreciated.&lt;BR /&gt;I'd be pleased to provide any additional info or additional testing as required.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;On Local Linux (no VirtualBox) - this is the working configuration&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;phil@pop-os:~/kinetis$ lsusb&lt;BR /&gt;Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub&lt;BR /&gt;Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub&lt;BR /&gt;Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub&lt;BR /&gt;Bus 003 Device 006: ID 1fc9:0090 NXP Semiconductors &lt;BR /&gt;Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub&lt;BR /&gt;Bus 001 Device 003: ID 2232:1024 Silicon Motion &lt;BR /&gt;Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub&lt;BR /&gt;Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;phil@pop-os:~/kinetis$ openocd -f interface/cmsis-dap.cfg&lt;BR /&gt;Open On-Chip Debugger 0.10.0&lt;BR /&gt;Licensed under GNU GPL v2&lt;BR /&gt;For bug reports, read&lt;BR /&gt; &lt;A href="http://openocd.org/doc/doxygen/bugs.html" target="test_blank"&gt;http://openocd.org/doc/doxygen/bugs.html&lt;/A&gt;&lt;BR /&gt;Info : CMSIS-DAP: SWD Supported&lt;BR /&gt;Info : CMSIS-DAP: JTAG Supported&lt;BR /&gt;Info : CMSIS-DAP: Interface Initialised (JTAG)&lt;BR /&gt;Info : CMSIS-DAP: FW Version = 1.10&lt;BR /&gt;Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 0 nRESET = 1&lt;BR /&gt;Error: CMSIS-DAP command CMD_DAP_SWJ_CLOCK failed.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;Communication works correctly. (ignore failure message, this is related to not setting interface speed in openocd. You can observe correct response to the "00f0" capability request below, the line starting with 000113, which inducates support for SWD and JTAG)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;phil@pop-os:~/kinetis$ sudo cat /sys/kernel/debug/usb/usbmon/3u &amp;gt; ~/usb.novm.out &lt;BR /&gt;phil@pop-os:~/kinetis$ cat ~/usb.novm.out &lt;BR /&gt;ffff883b8ae52f00 3349649709 S Ii:3:006:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b9c751540 3349708212 S Io:3:006:1 -115:8 64 = 00f00000 00000000 00000000 00000000 00000000 00000000 00000000 00000000&lt;BR /&gt;ffff883b9c751540 3349708738 C Io:3:006:1 0:8 64 &amp;gt;&lt;BR /&gt;ffff883b8ae52f00 3349708782 C Ii:3:006:1 0:8 1024 = &lt;STRONG&gt;00011300&lt;/STRONG&gt; 00000000 00000000 00000000 00000000 00000000 00000000 00000000&lt;BR /&gt;ffff883b9c751540 3349708898 S Io:3:006:1 -115:8 64 = 02020000 00000000 00000000 00000000 00000000 00000000 00000000 00000000&lt;BR /&gt;ffff883b8ae52f00 3349709199 S Ii:3:006:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b9c751540 3349709723 C Io:3:006:1 0:8 64 &amp;gt;&lt;BR /&gt;ffff883b8ae52f00 3349709780 C Ii:3:006:1 0:8 1024 = 02020000 00000000 00000000 00000000 00000000 00000000 00000000 00000000&lt;BR /&gt;ffff883b9c751540 3349709863 S Io:3:006:1 -115:8 64 = 00040000 00000000 00000000 00000000 00000000 00000000 00000000 00000000&lt;BR /&gt;ffff883b8ae52f00 3349710185 S Ii:3:006:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b9c751540 3349710723 C Io:3:006:1 0:8 64 &amp;gt;&lt;BR /&gt;ffff883b8ae52f00 3349710780 C Ii:3:006:1 0:8 1024 = 0005312e 31300000 00000000 00000000 00000000 00000000 00000000 00000000&lt;BR /&gt;ffff883b9c751540 3349710864 S Io:3:006:1 -115:8 64 = 00ff0000 00000000 00000000 00000000 00000000 00000000 00000000 00000000&lt;BR /&gt;ffff883b8ae52f00 3349711144 S Ii:3:006:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b9c751540 3349711725 C Io:3:006:1 0:8 64 &amp;gt;&lt;BR /&gt;ffff883b8ae52f00 3349711781 C Ii:3:006:1 0:8 1024 = 00020004 00000000 00000000 00000000 00000000 00000000 00000000 00000000&lt;BR /&gt;ffff883b9c751540 3349711867 S Io:3:006:1 -115:8 1024 = 00fe0000 00000000 00000000 00000000 00000000 00000000 00000000 00000000&lt;BR /&gt;ffff883b8ae52f00 3349712147 S Ii:3:006:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b9c751540 3349712753 C Io:3:006:1 0:8 1024 &amp;gt;&lt;BR /&gt;ffff883b8ae52f00 3349712784 C Ii:3:006:1 0:8 1024 = 00010400 00000000 00000000 00000000 00000000 00000000 00000000 00000000&lt;BR /&gt;ffff883b9c751540 3349712821 S Io:3:006:1 -115:8 1024 = 10000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000&lt;BR /&gt;ffff883b8ae52f00 3349713136 S Ii:3:006:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b9c751540 3349713751 C Io:3:006:1 0:8 1024 &amp;gt;&lt;BR /&gt;ffff883b8ae52f00 3349713781 C Ii:3:006:1 0:8 1024 = 108f0000 00000000 00000000 00000000 00000000 00000000 00000000 00000000&lt;BR /&gt;ffff883b9c751540 3349713870 S Io:3:006:1 -115:8 1024 = 11000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000&lt;BR /&gt;ffff883b8ae52f00 3349714147 S Ii:3:006:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b9c751540 3349714746 C Io:3:006:1 0:8 1024 &amp;gt;&lt;BR /&gt;ffff883b8ae52f00 3349714788 C Ii:3:006:1 0:8 1024 = 11ff312e 31300000 00000000 00000000 00000000 00000000 00000000 00000000&lt;BR /&gt;ffff883b8ae52f00 3349715232 S Ii:3:006:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b8ae52f00 3349716642 C Ii:3:006:1 -2:8 0&lt;BR /&gt;phil@pop-os:~/kinetis$&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In VirtualBox (but keeping USBMON in same position on the host) - this is the failing configuration&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;On the VM&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;vagrant@ubuntu-xenial:~$ openocd -f interface/cmsis-dap.cfg&lt;BR /&gt;Open On-Chip Debugger 0.10.0+dev-00920-g6ea4372 (2019-06-23-11:11)&lt;BR /&gt;Licensed under GNU GPL v2&lt;BR /&gt;For bug reports, read&lt;BR /&gt; &lt;A href="http://openocd.org/doc/doxygen/bugs.html" target="test_blank"&gt;http://openocd.org/doc/doxygen/bugs.html&lt;/A&gt;&lt;BR /&gt;Info : Listening on port 6666 for tcl connections&lt;BR /&gt;Info : Listening on port 4444 for telnet connections&lt;BR /&gt;Error: CMSIS-DAP command CMD_INFO failed.&lt;/P&gt;&lt;P&gt;vagrant@ubuntu-xenial:~$&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;On the Host&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;phil@pop-os:~/kinetis$ lsusb&lt;BR /&gt;Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub&lt;BR /&gt;Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub&lt;BR /&gt;Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub&lt;BR /&gt;Bus 003 Device 007: ID 1fc9:0090 NXP Semiconductors &lt;BR /&gt;Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub&lt;BR /&gt;Bus 001 Device 003: ID 2232:1024 Silicon Motion &lt;BR /&gt;Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub&lt;BR /&gt;Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub&lt;BR /&gt;phil@pop-os:~/kinetis$ sudo cat /sys/kernel/debug/usb/usbmon/3u &amp;gt; ~/usb.vm.out&lt;BR /&gt;^C&lt;BR /&gt;phil@pop-os:~/kinetis$ wc -l ~/usb.vm.out&lt;BR /&gt;1006 /home/phil/usb.vm.out&lt;BR /&gt;phil@pop-os:~/kinetis$ head -30 ~/usb.vm.out&lt;BR /&gt;ffff883b8ae526c0 3916360551 S Ii:3:007:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b8ae52540 3916398115 S Io:3:007:1 -115:8 64 = 00f00000 00000000 00000000 00000000 00000000 00000000 00000000 00000000&lt;BR /&gt;ffff883b8ae52540 3916398523 C Io:3:007:1 0:8 64 &amp;gt;&lt;BR /&gt;ffff883b8ae526c0 3916398633 C Ii:3:007:1 0:8 0&lt;BR /&gt;ffff883b94ed6b40 3916399999 S Ii:3:007:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b94ed6b40 3916400637 C Ii:3:007:1 0:8 0&lt;BR /&gt;ffff883b8ae526c0 3916401993 S Ii:3:007:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b8ae526c0 3916402639 C Ii:3:007:1 0:8 0&lt;BR /&gt;ffff883b8ae52540 3916403941 S Ii:3:007:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b8ae52540 3916404671 C Ii:3:007:1 0:8 0&lt;BR /&gt;ffff883b8ae52840 3916405969 S Ii:3:007:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b8ae52840 3916406669 C Ii:3:007:1 0:8 0&lt;BR /&gt;ffff883b8ae52900 3916407959 S Ii:3:007:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b8ae52900 3916408708 C Ii:3:007:1 0:8 0&lt;BR /&gt;ffff883b8ae52e40 3916410056 S Ii:3:007:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b8ae52e40 3916410707 C Ii:3:007:1 0:8 0&lt;BR /&gt;ffff883b8ae520c0 3916412060 S Ii:3:007:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b8ae520c0 3916412633 C Ii:3:007:1 0:8 0&lt;BR /&gt;ffff883b8ae520c0 3916413934 S Ii:3:007:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b8ae520c0 3916414672 C Ii:3:007:1 0:8 0&lt;BR /&gt;ffff883b94ed6b40 3916416068 S Ii:3:007:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b94ed6b40 3916416670 C Ii:3:007:1 0:8 0&lt;BR /&gt;ffff883b94ed60c0 3916417941 S Ii:3:007:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b94ed60c0 3916418662 C Ii:3:007:1 0:8 0&lt;BR /&gt;ffff883b94ed6540 3916419899 S Ii:3:007:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b94ed6540 3916420669 C Ii:3:007:1 0:8 0&lt;BR /&gt;ffff883b807dde40 3916421936 S Ii:3:007:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b807dde40 3916422641 C Ii:3:007:1 0:8 0&lt;BR /&gt;ffff883b8ae520c0 3916423997 S Ii:3:007:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b8ae520c0 3916424708 C Ii:3:007:1 0:8 0&lt;BR /&gt;phil@pop-os:~/kinetis$&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The "jabberring" from the LPC-Link2 continues and the file becomes very large, requires disconnection and reconnection to fix.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jun 2019 10:45:34 GMT</pubDate>
    <dc:creator>philmcmillan</dc:creator>
    <dc:date>2019-06-25T10:45:34Z</dc:date>
    <item>
      <title>Problem with LPC-LINK2/CMSIS-DAP with OpenOCD and VirtualBox/Vagrant</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-with-LPC-LINK2-CMSIS-DAP-with-OpenOCD-and-VirtualBox/m-p/926724#M36952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to set up a few debug probes with OpenOCD under Vagrant (using VirtualBox).&amp;nbsp; Mostly this has been very successful.&amp;nbsp; I have the following working:&lt;BR /&gt;- LPC-Link2 using J-Link firmware with VirtualBox&lt;BR /&gt;- FRDM-K28F using CMSIS-DAP firmware with VirtualBox&lt;/P&gt;&lt;P&gt;- LPC-Link2 using CMSIS-DAP firmware (on the host directly, without VirtualBox)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LPC-Link2 using CMSIS-DAP firmware *does not work* using VirtualBox.&amp;nbsp; Given that it works fine on the host with the same configuration when VirtualBox is *not* used, this would seem to rule out common issues with the USB cabling, host hardware etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking for some guidance in where the problem with the specific LPC-Link2 + CMSIS-DAP + VirtualBox configuration is not working.&amp;nbsp; Given that all other combinations work flawlessly, I expect this is a bug somewhere.&amp;nbsp; I'd like to get this working because CMSIS-DAP on LPC-Link2 under Vagrant/VirtualBox is my preferred configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I note also that when HID enumerates the LPC-Link2 and FRDM-K28F board with CMSIS-DAP firmware, LPC-Link2 shows up as 3 devices/paths, whereas the Freedom board shows up as only 1.&amp;nbsp; So there may be some architectural difference between the two implementations that is causing the failure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debug on the failing configuration shows that although the enumeration of the LPC-Link2 seems to work correctly under VirtualBox, the LPC-Link2 isn't receiving a reply from the USB transfer associated with the GET_INFO request, and is timing out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More details below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LPC-Link2 with CMSIS-DAP Firmware with OpenOCD with VirtualBox&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the failing configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;vagrant@vagrant-ubuntu-trusty-64:~$ openocd -f interface/cmsis-dap.cfg -c "transport select swd" -c "adapter_khz 500" -f target/kx.cfg&lt;BR /&gt;Open On-Chip Debugger 0.10.0+dev-00910-g4dbcb1e (2019-06-15-02:46)&lt;BR /&gt;Licensed under GNU GPL v2&lt;BR /&gt;For bug reports, read&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;http://openocd.org/doc/doxygen/bugs.html&lt;BR /&gt;swd&lt;BR /&gt;adapter speed: 500 kHz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Info : add flash_bank kinetis kx.pflash&lt;BR /&gt;Info : Listening on port 6666 for tcl connections&lt;BR /&gt;Info : Listening on port 4444 for telnet connections&lt;BR /&gt;Error: CMSIS-DAP command CMD_INFO failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vagrant@vagrant-ubuntu-trusty-64:~$&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With debug...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;vagrant@vagrant-ubuntu-trusty-64:~$ openocd -d -f interface/cmsis-dap.cfg -c &lt;BR /&gt;openocd -d -f interface/cmsis-dap.cfg -c "transport select swd" -c "adapter_khz 500" -f target/kx.cfg&lt;BR /&gt;...&lt;BR /&gt;&amp;lt;&amp;lt;many lines deleted&amp;gt;&amp;gt;&lt;BR /&gt;...&lt;BR /&gt;Debug: 200 1041 cmsis_dap_usb.c:409 cmsis_dap_usb_xfer(): error reading data: (null)&lt;BR /&gt;Error: 201 1042 cmsis_dap_usb.c:503 cmsis_dap_cmd_DAP_Info(): CMSIS-DAP command CMD_INFO failed.&lt;BR /&gt;Debug: 202 1044 command.c:630 run_command(): Command 'init' failed with error code -107&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;Review of the OpenOCD / HIDAPI code indicates a timeout is occurring without data being received from the command (I have confirmed this by changing the timeout from 1 second default to 5 seconds and noting the same failure after 5 seconds).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LPC-Link2 with CMSIS-DAP Firmware with OpenOCD on the host (no VirtualBox)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When VirtualBox is not used, this configuration works as expected.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;phil@pop-os:~$ sudo openocd -f interface/cmsis-dap.cfg -c "transport select swd" -c "adapter_khz 500" -f target/kx.cfg&lt;BR /&gt;Open On-Chip Debugger 0.10.0&lt;BR /&gt;Licensed under GNU GPL v2&lt;BR /&gt;For bug reports, read&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;http://openocd.org/doc/doxygen/bugs.html&lt;BR /&gt;swd&lt;BR /&gt;adapter speed: 500 kHz&lt;BR /&gt;Info : add flash_bank kinetis kx.flash&lt;BR /&gt;adapter speed: 1000 kHz&lt;BR /&gt;none separate&lt;BR /&gt;cortex_m reset_config sysresetreq&lt;BR /&gt;Info : CMSIS-DAP: SWD&amp;nbsp; Supported&lt;BR /&gt;Info : CMSIS-DAP: JTAG Supported&lt;BR /&gt;Info : CMSIS-DAP: Interface Initialised (SWD)&lt;BR /&gt;Info : CMSIS-DAP: FW Version = 1.10&lt;BR /&gt;Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 0 nRESET = 1&lt;BR /&gt;Info : CMSIS-DAP: Interface ready&lt;BR /&gt;Info : clock speed 1000 kHz&lt;BR /&gt;Info : SWD DPIDR 0x0bc11477&lt;BR /&gt;Info : MDM: Chip is unsecured. Continuing.&lt;BR /&gt;Info : kx.cpu: hardware has 2 breakpoints, 2 watchpoints&lt;BR /&gt;^C&lt;BR /&gt;phil@pop-os:~$&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LPC-Link2 with J-Link Firmware with OpenOCD with VirtualBox&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works perfectly under VirtualBox/OpenOCD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;vagrant@vagrant-ubuntu-trusty-64:~$ openocd -f interface/jlink.cfg -c "transport select swd" -c "adapter_khz 500" -f target/kx.cfg&lt;BR /&gt;Open On-Chip Debugger 0.10.0+dev-00910-g4dbcb1e (2019-06-15-02:46)&lt;BR /&gt;Licensed under GNU GPL v2&lt;BR /&gt;For bug reports, read&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;http://openocd.org/doc/doxygen/bugs.html&lt;BR /&gt;swd&lt;BR /&gt;adapter speed: 500 kHz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Info : add flash_bank kinetis kx.pflash&lt;BR /&gt;Info : Listening on port 6666 for tcl connections&lt;BR /&gt;Info : Listening on port 4444 for telnet connections&lt;BR /&gt;Info : J-Link LPC-Link 2 compiled Sep 23 2016 12:15:22&lt;BR /&gt;Info : Hardware version: 1.00&lt;BR /&gt;Info : VTarget = 3.300 V&lt;BR /&gt;Info : clock speed 1000 kHz&lt;BR /&gt;Info : SWD DPIDR 0x0bc11477&lt;BR /&gt;Info : MDM: Chip is unsecured. Continuing.&lt;BR /&gt;Info : kx.cpu: hardware has 2 breakpoints, 2 watchpoints&lt;BR /&gt;Info : kx.cpu: external reset detected&lt;BR /&gt;Info : Listening on port 3333 for gdb connections&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FRDM-K28F Board with CMSIS-DAP Firmware under OpenOCD/Vagrant/VirtualBox&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This configuration works perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;vagrant@vagrant-ubuntu-trusty-64:~/hidapi/hidtest$ openocd -f interface/cmsis-dap.cfg -c "transport select swd" -c "adapter_khz 500" -f target/kx.cfg&lt;BR /&gt;Open On-Chip Debugger 0.10.0+dev-00910-g4dbcb1e (2019-06-15-03:10)&lt;BR /&gt;Licensed under GNU GPL v2&lt;BR /&gt;For bug reports, read&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;http://openocd.org/doc/doxygen/bugs.html&lt;BR /&gt;swd&lt;BR /&gt;adapter speed: 500 kHz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Info : add flash_bank kinetis kx.pflash&lt;BR /&gt;Info : Listening on port 6666 for tcl connections&lt;BR /&gt;Info : Listening on port 4444 for telnet connections&lt;BR /&gt;Info : CMSIS-DAP: SWD&amp;nbsp; Supported&lt;BR /&gt;Info : CMSIS-DAP: FW Version = 1.0&lt;BR /&gt;Info : CMSIS-DAP: Interface Initialised (SWD)&lt;BR /&gt;Info : SWCLK/TCK = 0 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1&lt;BR /&gt;Info : CMSIS-DAP: Interface ready&lt;BR /&gt;Info : clock speed 1000 kHz&lt;BR /&gt;Info : SWD DPIDR 0x2ba01477&lt;BR /&gt;Info : MDM: Chip is unsecured. Continuing.&lt;BR /&gt;Info : kx.cpu: hardware has 6 breakpoints, 4 watchpoints&lt;BR /&gt;Info : kx.cpu: external reset detected&lt;BR /&gt;Info : Listening on port 3333 for gdb connections&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HIDAPI Enumerations under VirtualBox&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I notice that the LPC-Link2 and FRDM-K28F enumerate differently for both HIDRAW and LIBUSB modes.&amp;nbsp; The LPC-Link2 board presents itself as three devices/paths, whereas the Freedom Board only one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For LPC-Link2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;vagrant@vagrant-ubuntu-trusty-64:~/hidapi/hidtest$ ./hidtest-hidraw&lt;BR /&gt;Device Found&lt;BR /&gt;&amp;nbsp; type: 1fc9 0090&lt;BR /&gt;&amp;nbsp; path: /dev/hidraw0&lt;BR /&gt;&amp;nbsp; serial_number: I3F4AXOR&lt;BR /&gt;&amp;nbsp; Manufacturer: NXP Semiconductors&lt;BR /&gt;&amp;nbsp; Product:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC-LINK2 CMSIS-DAP V5.224&lt;BR /&gt;&amp;nbsp; Release:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;BR /&gt;&amp;nbsp; Interface:&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Device Found&lt;BR /&gt;&amp;nbsp; type: 1fc9 0090&lt;BR /&gt;&amp;nbsp; path: /dev/hidraw2&lt;BR /&gt;&amp;nbsp; serial_number: I3F4AXOR&lt;BR /&gt;&amp;nbsp; Manufacturer: NXP Semiconductors&lt;BR /&gt;&amp;nbsp; Product:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC-LINK2 CMSIS-DAP V5.224&lt;BR /&gt;&amp;nbsp; Release:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;BR /&gt;&amp;nbsp; Interface:&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Device Found&lt;BR /&gt;&amp;nbsp; type: 1fc9 0090&lt;BR /&gt;&amp;nbsp; path: /dev/hidraw1&lt;BR /&gt;&amp;nbsp; serial_number: I3F4AXOR&lt;BR /&gt;&amp;nbsp; Manufacturer: NXP Semiconductors&lt;BR /&gt;&amp;nbsp; Product:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC-LINK2 CMSIS-DAP V5.224&lt;BR /&gt;&amp;nbsp; Release:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;BR /&gt;&amp;nbsp; Interface:&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;vagrant@vagrant-ubuntu-trusty-64:~/hidapi/hidtest$ ./hidtest-libusb&lt;BR /&gt;Device Found&lt;BR /&gt;&amp;nbsp; type: 1fc9 0090&lt;BR /&gt;&amp;nbsp; path: 0001:0002:00&lt;BR /&gt;&amp;nbsp; serial_number: I3F4AXOR&lt;BR /&gt;&amp;nbsp; Manufacturer: NXP Semiconductors&lt;BR /&gt;&amp;nbsp; Product:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC-LINK2 CMSIS-DAP V5.224&lt;BR /&gt;&amp;nbsp; Release:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;BR /&gt;&amp;nbsp; Interface:&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Device Found&lt;BR /&gt;&amp;nbsp; type: 1fc9 0090&lt;BR /&gt;&amp;nbsp; path: 0001:0002:04&lt;BR /&gt;&amp;nbsp; serial_number: I3F4AXOR&lt;BR /&gt;&amp;nbsp; Manufacturer: NXP Semiconductors&lt;BR /&gt;&amp;nbsp; Product:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC-LINK2 CMSIS-DAP V5.224&lt;BR /&gt;&amp;nbsp; Release:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;BR /&gt;&amp;nbsp; Interface:&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Device Found&lt;BR /&gt;&amp;nbsp; type: 1fc9 0090&lt;BR /&gt;&amp;nbsp; path: 0001:0002:03&lt;BR /&gt;&amp;nbsp; serial_number: I3F4AXOR&lt;BR /&gt;&amp;nbsp; Manufacturer: NXP Semiconductors&lt;BR /&gt;&amp;nbsp; Product:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC-LINK2 CMSIS-DAP V5.224&lt;BR /&gt;&amp;nbsp; Release:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;BR /&gt;&amp;nbsp; Interface:&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;BR /&gt;...&lt;BR /&gt;vagrant@vagrant-ubuntu-trusty-64:~/hidapi/hidtest$&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;For FRDM-K28F&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;vagrant@vagrant-ubuntu-trusty-64:~/hidapi/hidtest$ ./hidtest-hidraw&lt;BR /&gt;Device Found&lt;BR /&gt;&amp;nbsp; type: 0d28 0204&lt;BR /&gt;&amp;nbsp; path: /dev/hidraw0&lt;BR /&gt;&amp;nbsp; serial_number: 0224000032044e450034700a997b002e6781000097969900&lt;BR /&gt;&amp;nbsp; Manufacturer: ARM&lt;BR /&gt;&amp;nbsp; Product:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DAPLink CMSIS-DAP&lt;BR /&gt;&amp;nbsp; Release:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1000&lt;BR /&gt;&amp;nbsp; Interface:&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;vagrant@vagrant-ubuntu-trusty-64:~/hidapi/hidtest$ ./hidtest-libusb&lt;BR /&gt;Device Found&lt;BR /&gt;&amp;nbsp; type: 0d28 0204&lt;BR /&gt;&amp;nbsp; path: 0002:0002:03&lt;BR /&gt;&amp;nbsp; serial_number: 0224000032044e450034700a997b002e6781000097969900&lt;BR /&gt;&amp;nbsp; Manufacturer: ARM&lt;BR /&gt;&amp;nbsp; Product:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DAPLink CMSIS-DAP&lt;BR /&gt;&amp;nbsp; Release:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1000&lt;BR /&gt;&amp;nbsp; Interface:&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jun 2019 03:58:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-with-LPC-LINK2-CMSIS-DAP-with-OpenOCD-and-VirtualBox/m-p/926724#M36952</guid>
      <dc:creator>philmcmillan</dc:creator>
      <dc:date>2019-06-15T03:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with LPC-LINK2/CMSIS-DAP with OpenOCD and VirtualBox/Vagrant</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-with-LPC-LINK2-CMSIS-DAP-with-OpenOCD-and-VirtualBox/m-p/926725#M36953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After more testing: &amp;nbsp;I can confirm that the LPC-Link2 with CMSIS-DAP firmware works correctly with VirtualBox on the Mac.&lt;BR /&gt;It does not work correctly with VirtualBox on Linux.&lt;/P&gt;&lt;P&gt;I believe that this is most likely a bug with VirtualBox for Linux.&lt;/P&gt;&lt;P&gt;I will raise a bugtracker with the VirtualBox team to try to get this looked into.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2019 13:23:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-with-LPC-LINK2-CMSIS-DAP-with-OpenOCD-and-VirtualBox/m-p/926725#M36953</guid>
      <dc:creator>philmcmillan</dc:creator>
      <dc:date>2019-06-17T13:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with LPC-LINK2/CMSIS-DAP with OpenOCD and VirtualBox/Vagrant</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-with-LPC-LINK2-CMSIS-DAP-with-OpenOCD-and-VirtualBox/m-p/926726#M36954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just updating this question with some more&amp;nbsp;info. &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Logged an issue under on the CMSIS_5 GitHub page&amp;nbsp;&lt;A class="link-titled" href="https://github.com/ARM-software/CMSIS_5/issues/613" title="https://github.com/ARM-software/CMSIS_5/issues/613"&gt;LPC-Link2 Communication Issue with VirtualBox · Issue #613 · ARM-software/CMSIS_5 · GitHub&lt;/A&gt;&amp;nbsp;, although they have advised that the LPC-Link2 firmware is maintained by NXP and I should direct accordingly. &amp;nbsp;Hoping this can be looked at.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #24292e; margin-bottom: 16px;"&gt;I have taken USBMON captures at the host with both the non-VirtualBox (working) configuration and VirtualBox (not working) configurations. These are shown below. It looks like the DAP capability request is being sent from the VM but the LPC-Link2 will not respond correctly to it. In fact, the LPC-Link2 continues to send empty data until the board is disconnected.&lt;/P&gt;&lt;P style="color: #24292e; margin-bottom: 16px;"&gt;Any help in rectifying or letting me know where to continue looking would be much appreciated.&lt;BR /&gt;I'd be pleased to provide any additional info or additional testing as required.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;On Local Linux (no VirtualBox) - this is the working configuration&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;phil@pop-os:~/kinetis$ lsusb&lt;BR /&gt;Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub&lt;BR /&gt;Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub&lt;BR /&gt;Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub&lt;BR /&gt;Bus 003 Device 006: ID 1fc9:0090 NXP Semiconductors &lt;BR /&gt;Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub&lt;BR /&gt;Bus 001 Device 003: ID 2232:1024 Silicon Motion &lt;BR /&gt;Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub&lt;BR /&gt;Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;phil@pop-os:~/kinetis$ openocd -f interface/cmsis-dap.cfg&lt;BR /&gt;Open On-Chip Debugger 0.10.0&lt;BR /&gt;Licensed under GNU GPL v2&lt;BR /&gt;For bug reports, read&lt;BR /&gt; &lt;A href="http://openocd.org/doc/doxygen/bugs.html" target="test_blank"&gt;http://openocd.org/doc/doxygen/bugs.html&lt;/A&gt;&lt;BR /&gt;Info : CMSIS-DAP: SWD Supported&lt;BR /&gt;Info : CMSIS-DAP: JTAG Supported&lt;BR /&gt;Info : CMSIS-DAP: Interface Initialised (JTAG)&lt;BR /&gt;Info : CMSIS-DAP: FW Version = 1.10&lt;BR /&gt;Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 0 nRESET = 1&lt;BR /&gt;Error: CMSIS-DAP command CMD_DAP_SWJ_CLOCK failed.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;Communication works correctly. (ignore failure message, this is related to not setting interface speed in openocd. You can observe correct response to the "00f0" capability request below, the line starting with 000113, which inducates support for SWD and JTAG)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;phil@pop-os:~/kinetis$ sudo cat /sys/kernel/debug/usb/usbmon/3u &amp;gt; ~/usb.novm.out &lt;BR /&gt;phil@pop-os:~/kinetis$ cat ~/usb.novm.out &lt;BR /&gt;ffff883b8ae52f00 3349649709 S Ii:3:006:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b9c751540 3349708212 S Io:3:006:1 -115:8 64 = 00f00000 00000000 00000000 00000000 00000000 00000000 00000000 00000000&lt;BR /&gt;ffff883b9c751540 3349708738 C Io:3:006:1 0:8 64 &amp;gt;&lt;BR /&gt;ffff883b8ae52f00 3349708782 C Ii:3:006:1 0:8 1024 = &lt;STRONG&gt;00011300&lt;/STRONG&gt; 00000000 00000000 00000000 00000000 00000000 00000000 00000000&lt;BR /&gt;ffff883b9c751540 3349708898 S Io:3:006:1 -115:8 64 = 02020000 00000000 00000000 00000000 00000000 00000000 00000000 00000000&lt;BR /&gt;ffff883b8ae52f00 3349709199 S Ii:3:006:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b9c751540 3349709723 C Io:3:006:1 0:8 64 &amp;gt;&lt;BR /&gt;ffff883b8ae52f00 3349709780 C Ii:3:006:1 0:8 1024 = 02020000 00000000 00000000 00000000 00000000 00000000 00000000 00000000&lt;BR /&gt;ffff883b9c751540 3349709863 S Io:3:006:1 -115:8 64 = 00040000 00000000 00000000 00000000 00000000 00000000 00000000 00000000&lt;BR /&gt;ffff883b8ae52f00 3349710185 S Ii:3:006:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b9c751540 3349710723 C Io:3:006:1 0:8 64 &amp;gt;&lt;BR /&gt;ffff883b8ae52f00 3349710780 C Ii:3:006:1 0:8 1024 = 0005312e 31300000 00000000 00000000 00000000 00000000 00000000 00000000&lt;BR /&gt;ffff883b9c751540 3349710864 S Io:3:006:1 -115:8 64 = 00ff0000 00000000 00000000 00000000 00000000 00000000 00000000 00000000&lt;BR /&gt;ffff883b8ae52f00 3349711144 S Ii:3:006:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b9c751540 3349711725 C Io:3:006:1 0:8 64 &amp;gt;&lt;BR /&gt;ffff883b8ae52f00 3349711781 C Ii:3:006:1 0:8 1024 = 00020004 00000000 00000000 00000000 00000000 00000000 00000000 00000000&lt;BR /&gt;ffff883b9c751540 3349711867 S Io:3:006:1 -115:8 1024 = 00fe0000 00000000 00000000 00000000 00000000 00000000 00000000 00000000&lt;BR /&gt;ffff883b8ae52f00 3349712147 S Ii:3:006:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b9c751540 3349712753 C Io:3:006:1 0:8 1024 &amp;gt;&lt;BR /&gt;ffff883b8ae52f00 3349712784 C Ii:3:006:1 0:8 1024 = 00010400 00000000 00000000 00000000 00000000 00000000 00000000 00000000&lt;BR /&gt;ffff883b9c751540 3349712821 S Io:3:006:1 -115:8 1024 = 10000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000&lt;BR /&gt;ffff883b8ae52f00 3349713136 S Ii:3:006:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b9c751540 3349713751 C Io:3:006:1 0:8 1024 &amp;gt;&lt;BR /&gt;ffff883b8ae52f00 3349713781 C Ii:3:006:1 0:8 1024 = 108f0000 00000000 00000000 00000000 00000000 00000000 00000000 00000000&lt;BR /&gt;ffff883b9c751540 3349713870 S Io:3:006:1 -115:8 1024 = 11000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000&lt;BR /&gt;ffff883b8ae52f00 3349714147 S Ii:3:006:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b9c751540 3349714746 C Io:3:006:1 0:8 1024 &amp;gt;&lt;BR /&gt;ffff883b8ae52f00 3349714788 C Ii:3:006:1 0:8 1024 = 11ff312e 31300000 00000000 00000000 00000000 00000000 00000000 00000000&lt;BR /&gt;ffff883b8ae52f00 3349715232 S Ii:3:006:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b8ae52f00 3349716642 C Ii:3:006:1 -2:8 0&lt;BR /&gt;phil@pop-os:~/kinetis$&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In VirtualBox (but keeping USBMON in same position on the host) - this is the failing configuration&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;On the VM&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;vagrant@ubuntu-xenial:~$ openocd -f interface/cmsis-dap.cfg&lt;BR /&gt;Open On-Chip Debugger 0.10.0+dev-00920-g6ea4372 (2019-06-23-11:11)&lt;BR /&gt;Licensed under GNU GPL v2&lt;BR /&gt;For bug reports, read&lt;BR /&gt; &lt;A href="http://openocd.org/doc/doxygen/bugs.html" target="test_blank"&gt;http://openocd.org/doc/doxygen/bugs.html&lt;/A&gt;&lt;BR /&gt;Info : Listening on port 6666 for tcl connections&lt;BR /&gt;Info : Listening on port 4444 for telnet connections&lt;BR /&gt;Error: CMSIS-DAP command CMD_INFO failed.&lt;/P&gt;&lt;P&gt;vagrant@ubuntu-xenial:~$&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;On the Host&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;phil@pop-os:~/kinetis$ lsusb&lt;BR /&gt;Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub&lt;BR /&gt;Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub&lt;BR /&gt;Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub&lt;BR /&gt;Bus 003 Device 007: ID 1fc9:0090 NXP Semiconductors &lt;BR /&gt;Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub&lt;BR /&gt;Bus 001 Device 003: ID 2232:1024 Silicon Motion &lt;BR /&gt;Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub&lt;BR /&gt;Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub&lt;BR /&gt;phil@pop-os:~/kinetis$ sudo cat /sys/kernel/debug/usb/usbmon/3u &amp;gt; ~/usb.vm.out&lt;BR /&gt;^C&lt;BR /&gt;phil@pop-os:~/kinetis$ wc -l ~/usb.vm.out&lt;BR /&gt;1006 /home/phil/usb.vm.out&lt;BR /&gt;phil@pop-os:~/kinetis$ head -30 ~/usb.vm.out&lt;BR /&gt;ffff883b8ae526c0 3916360551 S Ii:3:007:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b8ae52540 3916398115 S Io:3:007:1 -115:8 64 = 00f00000 00000000 00000000 00000000 00000000 00000000 00000000 00000000&lt;BR /&gt;ffff883b8ae52540 3916398523 C Io:3:007:1 0:8 64 &amp;gt;&lt;BR /&gt;ffff883b8ae526c0 3916398633 C Ii:3:007:1 0:8 0&lt;BR /&gt;ffff883b94ed6b40 3916399999 S Ii:3:007:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b94ed6b40 3916400637 C Ii:3:007:1 0:8 0&lt;BR /&gt;ffff883b8ae526c0 3916401993 S Ii:3:007:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b8ae526c0 3916402639 C Ii:3:007:1 0:8 0&lt;BR /&gt;ffff883b8ae52540 3916403941 S Ii:3:007:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b8ae52540 3916404671 C Ii:3:007:1 0:8 0&lt;BR /&gt;ffff883b8ae52840 3916405969 S Ii:3:007:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b8ae52840 3916406669 C Ii:3:007:1 0:8 0&lt;BR /&gt;ffff883b8ae52900 3916407959 S Ii:3:007:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b8ae52900 3916408708 C Ii:3:007:1 0:8 0&lt;BR /&gt;ffff883b8ae52e40 3916410056 S Ii:3:007:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b8ae52e40 3916410707 C Ii:3:007:1 0:8 0&lt;BR /&gt;ffff883b8ae520c0 3916412060 S Ii:3:007:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b8ae520c0 3916412633 C Ii:3:007:1 0:8 0&lt;BR /&gt;ffff883b8ae520c0 3916413934 S Ii:3:007:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b8ae520c0 3916414672 C Ii:3:007:1 0:8 0&lt;BR /&gt;ffff883b94ed6b40 3916416068 S Ii:3:007:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b94ed6b40 3916416670 C Ii:3:007:1 0:8 0&lt;BR /&gt;ffff883b94ed60c0 3916417941 S Ii:3:007:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b94ed60c0 3916418662 C Ii:3:007:1 0:8 0&lt;BR /&gt;ffff883b94ed6540 3916419899 S Ii:3:007:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b94ed6540 3916420669 C Ii:3:007:1 0:8 0&lt;BR /&gt;ffff883b807dde40 3916421936 S Ii:3:007:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b807dde40 3916422641 C Ii:3:007:1 0:8 0&lt;BR /&gt;ffff883b8ae520c0 3916423997 S Ii:3:007:1 -115:8 1024 &amp;lt;&lt;BR /&gt;ffff883b8ae520c0 3916424708 C Ii:3:007:1 0:8 0&lt;BR /&gt;phil@pop-os:~/kinetis$&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The "jabberring" from the LPC-Link2 continues and the file becomes very large, requires disconnection and reconnection to fix.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2019 10:45:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-with-LPC-LINK2-CMSIS-DAP-with-OpenOCD-and-VirtualBox/m-p/926726#M36954</guid>
      <dc:creator>philmcmillan</dc:creator>
      <dc:date>2019-06-25T10:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with LPC-LINK2/CMSIS-DAP with OpenOCD and VirtualBox/Vagrant</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-with-LPC-LINK2-CMSIS-DAP-with-OpenOCD-and-VirtualBox/m-p/926727#M36955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, NXP does develop and maintain the CMSIS-DAP based firmware that we provide for LPC-Link2 (softloadable using MCUXpresso IDE, and programmable into flash on the LPC-Link2 probe using LPCScrypt). &amp;nbsp;This firmware has been in the field and being used by many thousands of customers for many years&amp;nbsp;now, working on Windows, Mac and Linux hosts. Our focus is always that debugging works on native OS installs, though I can confirm that we don't see issues on the&amp;nbsp;VM systems that we use ourselves (though we don't use VirtualBox here).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However from what you have already written, the issues that you are seeing seem to be&amp;nbsp;specific to using VirtualBox on specific host platforms. As you have already commented, it sounds like this issue is one for the VirtualBox team.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MCUXpresso IDE Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2019 11:11:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-with-LPC-LINK2-CMSIS-DAP-with-OpenOCD-and-VirtualBox/m-p/926727#M36955</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2019-06-25T11:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with LPC-LINK2/CMSIS-DAP with OpenOCD and VirtualBox/Vagrant</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-with-LPC-LINK2-CMSIS-DAP-with-OpenOCD-and-VirtualBox/m-p/926728#M36956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for the reply, just to confirm with VirtualBox on the Mac, I can replicate the same issue - but the issue occurs much less frequently (perhaps&amp;nbsp;one failure every 5 attempts).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I don't think I'll have much luck with resolving with VirtualBox when the same LPC-Link2&amp;nbsp;works correctly under virtualbox with J-Link firmware. &amp;nbsp;And given that Kinetis freedom boards running DAPlink, ST links and J-Link probes all work 100%&amp;nbsp;under virtualbox, it is most likely the interaction between VirtualBox and this specific board/firmware combination causing the issue. &amp;nbsp;So although I would prefer to use LPC-Link2 under this arrangement it is probably best to&amp;nbsp;look to one of these other probes and put this down to a subtle bug that will&amp;nbsp;most likely be impossible to rectify.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2019 11:47:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-with-LPC-LINK2-CMSIS-DAP-with-OpenOCD-and-VirtualBox/m-p/926728#M36956</guid>
      <dc:creator>philmcmillan</dc:creator>
      <dc:date>2019-06-25T11:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with LPC-LINK2/CMSIS-DAP with OpenOCD and VirtualBox/Vagrant</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-with-LPC-LINK2-CMSIS-DAP-with-OpenOCD-and-VirtualBox/m-p/926729#M36957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there a reason not to use J-link on LPC-Link2? There is some&amp;nbsp;loss of functionality (power measurement), but for most debug functions your needs should be met by this option...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Brendon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2019 17:01:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-with-LPC-LINK2-CMSIS-DAP-with-OpenOCD-and-VirtualBox/m-p/926729#M36957</guid>
      <dc:creator>brendonslade</dc:creator>
      <dc:date>2019-06-25T17:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with LPC-LINK2/CMSIS-DAP with OpenOCD and VirtualBox/Vagrant</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-with-LPC-LINK2-CMSIS-DAP-with-OpenOCD-and-VirtualBox/m-p/926730#M36958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brendon -&lt;/P&gt;&lt;P&gt;Technically the JLink option on the LPC-Link2 is a good&amp;nbsp;solution. &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately the licensing agreement is not -&amp;nbsp;my understanding is that this firmware is only licensed for educational use with NXP components. &amp;nbsp;I am looking for an inexpensive and open solution without these restrictions on its use. &amp;nbsp;This is the appeal of CMSIS-DAP in this situation.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2019 21:42:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-with-LPC-LINK2-CMSIS-DAP-with-OpenOCD-and-VirtualBox/m-p/926730#M36958</guid>
      <dc:creator>philmcmillan</dc:creator>
      <dc:date>2019-06-25T21:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with LPC-LINK2/CMSIS-DAP with OpenOCD and VirtualBox/Vagrant</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-with-LPC-LINK2-CMSIS-DAP-with-OpenOCD-and-VirtualBox/m-p/926731#M36959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The J-Link EDU is indeed restricted to non-commercial/educational usage (&lt;A class="link-titled" href="https://www.segger.com/products/debug-probes/j-link/models/j-link-edu/" title="https://www.segger.com/products/debug-probes/j-link/models/j-link-edu/"&gt;J-Link EDU for educational use | SEGGER - The Embedded Experts&lt;/A&gt; and mini: &lt;A class="link-titled" href="https://www.segger.com/products/debug-probes/j-link/models/j-link-edu-mini/" title="https://www.segger.com/products/debug-probes/j-link/models/j-link-edu-mini/"&gt;J-Link EDU Mini | SEGGER - The Embedded Experts&lt;/A&gt;&amp;nbsp;), but is not limited to NXP devices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2019 07:03:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-with-LPC-LINK2-CMSIS-DAP-with-OpenOCD-and-VirtualBox/m-p/926731#M36959</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2019-06-26T07:03:59Z</dc:date>
    </item>
  </channel>
</rss>

