<?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>topic LPC Link debug probe uses too much USB bus time, breaks other devices on the USB hub in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Link-debug-probe-uses-too-much-USB-bus-time-breaks-other/m-p/1271109#M44874</link>
    <description>&lt;P&gt;I’m using the LPC-LINK2 CMSIS-DAP V5.361 firmware on my NXP LPC-Link2 debug probe.&lt;/P&gt;&lt;P&gt;I noticed that when I have the LPC-Link2 plugged into my USB hub, my webcam (Logitech C920) no longer works, even when &lt;STRONG&gt;these 2 devices are the only devices&lt;/STRONG&gt; plugged into the 8-port USB hub, and &lt;STRONG&gt;even when not using the LPC-Link2 actively&lt;/STRONG&gt; (only plugged in)! In my Linux kernel log, I see messages like:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;kernel: usb 1-13.2: Not enough bandwidth for new device state.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;kernel: usb 1-13.2: Not enough bandwidth for altsetting 11&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;In the Linux debug file&amp;nbsp;&lt;FONT face="courier new,courier"&gt;/sys/kernel/debug/usb/devices&lt;/FONT&gt;, I can see the configuration based on the LPC-Link2 USB device descriptor:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;T: Bus=01 Lev=02 Prnt=09 Port=02 Cnt=02 Dev#= 30 Spd=480 MxCh= 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;LI-EMOJI id="lia_anguished-face" title=":anguished_face:"&gt;&lt;/LI-EMOJI&gt; Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;P: Vendor=1fc9 ProdID=0090 Rev= 1.00&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;S: Manufacturer=NXP Semiconductors&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;S: Product=LPC-LINK2 CMSIS-DAP V5.361&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;C:* #Ifs= 5 Cfg#= 1 Atr=80 MxPwr=500mA&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;A: FirstIf#= 1 IfCount= 2 Cls=02(comm.) Sub=02 Prot=00&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;I:* If#= 0 Alt= 0 #EPs= 2 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;E: Ad=81(I) Atr=03(Int.) &lt;STRONG&gt;MxPS=1024 Ivl=125us&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;E: Ad=01(O) Atr=03(Int.) &lt;STRONG&gt;MxPS=1024 Ivl=125us&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;I:* If#= 4 Alt= 0 #EPs= 2 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;E: Ad=84(I) Atr=03(Int.) &lt;STRONG&gt;MxPS=1024&lt;/STRONG&gt; Ivl=250us&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;E: Ad=04(O) Atr=03(Int.) &lt;STRONG&gt;MxPS=1024&lt;/STRONG&gt; Ivl=250us&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;I:* If#= 1 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=00 Driver=cdc_acm&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;E: Ad=83(I) Atr=03(Int.) MxPS= 16 Ivl=1ms&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;I:* If#= 2 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_acm&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;I:* If#= 3 Alt= 0 #EPs= 2 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;E: Ad=85(I) Atr=03(Int.) MxPS= 64 Ivl=500us&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;E: Ad=05(O) Atr=03(Int.) MxPS= 64 Ivl=500us&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I am surprised to see the large packet size of 1024 bytes for interface 0 and 4 (USB HID). Can this high max packet size value be lowered to the actual packet size, or are the interrupt packets really this big? For USB HID, I would have expected 64 bytes max packet size.&lt;/P&gt;&lt;P&gt;Also, the minimum interval of 125μs for the endpoints on interface 0 means that the device consumes bus time in every single USB micro frame. Can the interval be set higher, e.g. to 1ms like for interface 1?&lt;/P&gt;&lt;P&gt;These should be 2 quick changes to the USB device descriptor, that hopefully fix the compatibility issue that the current descriptor causes.&lt;/P&gt;&lt;P&gt;I am happy to test an updated firmware if you want to send me one.&lt;/P&gt;&lt;P&gt;Thank you for taking a look&lt;/P&gt;</description>
    <pubDate>Sun, 02 May 2021 16:20:14 GMT</pubDate>
    <dc:creator>michaelstapelbe</dc:creator>
    <dc:date>2021-05-02T16:20:14Z</dc:date>
    <item>
      <title>LPC Link debug probe uses too much USB bus time, breaks other devices on the USB hub</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Link-debug-probe-uses-too-much-USB-bus-time-breaks-other/m-p/1271109#M44874</link>
      <description>&lt;P&gt;I’m using the LPC-LINK2 CMSIS-DAP V5.361 firmware on my NXP LPC-Link2 debug probe.&lt;/P&gt;&lt;P&gt;I noticed that when I have the LPC-Link2 plugged into my USB hub, my webcam (Logitech C920) no longer works, even when &lt;STRONG&gt;these 2 devices are the only devices&lt;/STRONG&gt; plugged into the 8-port USB hub, and &lt;STRONG&gt;even when not using the LPC-Link2 actively&lt;/STRONG&gt; (only plugged in)! In my Linux kernel log, I see messages like:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;kernel: usb 1-13.2: Not enough bandwidth for new device state.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;kernel: usb 1-13.2: Not enough bandwidth for altsetting 11&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;In the Linux debug file&amp;nbsp;&lt;FONT face="courier new,courier"&gt;/sys/kernel/debug/usb/devices&lt;/FONT&gt;, I can see the configuration based on the LPC-Link2 USB device descriptor:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;T: Bus=01 Lev=02 Prnt=09 Port=02 Cnt=02 Dev#= 30 Spd=480 MxCh= 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;LI-EMOJI id="lia_anguished-face" title=":anguished_face:"&gt;&lt;/LI-EMOJI&gt; Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;P: Vendor=1fc9 ProdID=0090 Rev= 1.00&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;S: Manufacturer=NXP Semiconductors&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;S: Product=LPC-LINK2 CMSIS-DAP V5.361&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;C:* #Ifs= 5 Cfg#= 1 Atr=80 MxPwr=500mA&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;A: FirstIf#= 1 IfCount= 2 Cls=02(comm.) Sub=02 Prot=00&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;I:* If#= 0 Alt= 0 #EPs= 2 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;E: Ad=81(I) Atr=03(Int.) &lt;STRONG&gt;MxPS=1024 Ivl=125us&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;E: Ad=01(O) Atr=03(Int.) &lt;STRONG&gt;MxPS=1024 Ivl=125us&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;I:* If#= 4 Alt= 0 #EPs= 2 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;E: Ad=84(I) Atr=03(Int.) &lt;STRONG&gt;MxPS=1024&lt;/STRONG&gt; Ivl=250us&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;E: Ad=04(O) Atr=03(Int.) &lt;STRONG&gt;MxPS=1024&lt;/STRONG&gt; Ivl=250us&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;I:* If#= 1 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=00 Driver=cdc_acm&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;E: Ad=83(I) Atr=03(Int.) MxPS= 16 Ivl=1ms&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;I:* If#= 2 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_acm&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;I:* If#= 3 Alt= 0 #EPs= 2 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;E: Ad=85(I) Atr=03(Int.) MxPS= 64 Ivl=500us&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;E: Ad=05(O) Atr=03(Int.) MxPS= 64 Ivl=500us&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I am surprised to see the large packet size of 1024 bytes for interface 0 and 4 (USB HID). Can this high max packet size value be lowered to the actual packet size, or are the interrupt packets really this big? For USB HID, I would have expected 64 bytes max packet size.&lt;/P&gt;&lt;P&gt;Also, the minimum interval of 125μs for the endpoints on interface 0 means that the device consumes bus time in every single USB micro frame. Can the interval be set higher, e.g. to 1ms like for interface 1?&lt;/P&gt;&lt;P&gt;These should be 2 quick changes to the USB device descriptor, that hopefully fix the compatibility issue that the current descriptor causes.&lt;/P&gt;&lt;P&gt;I am happy to test an updated firmware if you want to send me one.&lt;/P&gt;&lt;P&gt;Thank you for taking a look&lt;/P&gt;</description>
      <pubDate>Sun, 02 May 2021 16:20:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Link-debug-probe-uses-too-much-USB-bus-time-breaks-other/m-p/1271109#M44874</guid>
      <dc:creator>michaelstapelbe</dc:creator>
      <dc:date>2021-05-02T16:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: LPC Link debug probe uses too much USB bus time, breaks other devices on the USB hub</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Link-debug-probe-uses-too-much-USB-bus-time-breaks-other/m-p/1271118#M44875</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CMSIS-DAP is a standard from ARM, NXP just port it to their hardware.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;you could try a JLink firmware for LPC-Link to see if that changes the behaviour. use Lpcscrypt to do this. See&amp;nbsp;&lt;A href="https://www.nxp.com/design/microcontrollers-developer-resources/lpc-microcontroller-utilities/lpcscrypt-v2-1-2:LPCSCRYPT" target="_blank"&gt;https://www.nxp.com/design/microcontrollers-developer-resources/lpc-microcontroller-utilities/lpcscrypt-v2-1-2:LPCSCRYPT&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 May 2021 21:11:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Link-debug-probe-uses-too-much-USB-bus-time-breaks-other/m-p/1271118#M44875</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2021-05-02T21:11:36Z</dc:date>
    </item>
  </channel>
</rss>

