<?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 Re: USB device stops responding in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/USB-device-stops-responding/m-p/591205#M29482</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ECamino on Fri Jul 26 13:13:59 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The function pointer for HID_EP_Hdlr is not being wiped.&amp;nbsp; We found that the interrupt stops working.&amp;nbsp; Why would USB_IRQHandler() for only the one ep stop working?&amp;nbsp; How to fix?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EC&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 21:28:57 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T21:28:57Z</dc:date>
    <item>
      <title>USB device stops responding</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/USB-device-stops-responding/m-p/591199#M29476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ECamino on Thu Jul 18 12:13:25 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a composite device with two HIDs.&amp;nbsp; One is a simple device, with one in ep, as HID2.&amp;nbsp; The other device is a Vendor Defined HID interface with in/out endpoints.&amp;nbsp; When sending data out to the VD device, it works for awhile and then suddenly it stops working.&amp;nbsp; USBlyzer shows data is sent out from PC and no errors for status. Stepping through I can see that there is no longer any interrupting on HID_Ep_Hdlr on USB_EVT_OUT (don't know if USB_EVT_IN continues to work though).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The other device continues to work flawlessly on HID_EP_Hdlr2. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once the device is initialized, there is no more interaction with the Hdlrs or any other USB configuration.&amp;nbsp; What could cause one device not to work after awhile and another device continues to work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EC&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:28:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/USB-device-stops-responding/m-p/591199#M29476</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: USB device stops responding</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/USB-device-stops-responding/m-p/591200#M29477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by stalisman on Fri Jul 19 00:11:46 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You have a composite device which means they are independent and any host talks to them separately.&amp;nbsp; The fact that one works and the other does not is fairly typical during development.&amp;nbsp; It just means that one needs further debugging independent of the other device that is working. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Look to see if there is any indication of an endpoint being 'stalled'.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:28:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/USB-device-stops-responding/m-p/591200#M29477</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: USB device stops responding</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/USB-device-stops-responding/m-p/591201#M29478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Tsuneo on Fri Jul 19 06:51:42 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Camino,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By your former posts, I believe you are working on USB on-chip driver of LPC1347.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;USBlyzer shows data is sent out from PC and no errors for status.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It suggests, the USB engine works as expected, but HID_Ep_Hdlr is not called by the endpoint interrupt. Maybe, the HID instance (parameters) on the RAM are broken.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To confirm it,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After enumeration, put a break point here,&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
main.c

void USB_IRQHandler(void)
{
&amp;nbsp; pUsbApi-&amp;gt;hw-&amp;gt;ISR(hUsb);&amp;nbsp;&amp;nbsp;&amp;nbsp; // &amp;lt;-- put a break point, after enumeration
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Send an output report to the device, and above break point should be hit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Trace the ROM code from this break point, until HID_Ep_Hdlr() is called, by enabling "Instruction stepping mode" (i-&amp;gt; button).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fsupport.code-red-tech.com%2FCodeRedWiki%2FDebugViewAsm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://support.code-red-tech.com/CodeRedWiki/DebugViewAsm&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The function address of HID_Ep_Hdlr() is stored somewhere on the RAM, which is referred just before the ROM stack calls HID_Ep_Hdlr() indirectly. Mark the address of this function pointer. Is the value of this function pointer changed, when HID_Ep_Hdlr is no longer called?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tsuneo&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:28:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/USB-device-stops-responding/m-p/591201#M29478</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: USB device stops responding</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/USB-device-stops-responding/m-p/591202#M29479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ECamino on Fri Jul 19 06:54:56 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't see any stalls.&amp;nbsp; I can capture data and see that it there is a "Bulk or Interrupt Transfer Output Report len:255 out"&amp;nbsp; Then the next line says 255 bytes buffer.&amp;nbsp; The next transaction says the same thing except the second line says 0 bytes buffer.&amp;nbsp; In between the PC program pings the device using control transfers on ep0.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:28:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/USB-device-stops-responding/m-p/591202#M29479</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: USB device stops responding</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/USB-device-stops-responding/m-p/591203#M29480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Tsuneo on Sat Jul 20 21:19:38 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Camino,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you aware of my above post?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The post was trapped by forum censorship, for a couple of hours.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After salvaged by the webmaster, the post was put before your above post, along with the original post time. As the result, it wasn't entitled as a new post. It's hard to be aware of this "new" comment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Frustrating forum engine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tsuneo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:28:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/USB-device-stops-responding/m-p/591203#M29480</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: USB device stops responding</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/USB-device-stops-responding/m-p/591204#M29481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ECamino on Mon Jul 22 05:41:31 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Tsuneo&lt;/STRONG&gt;&lt;BR /&gt;Hi Camino,&lt;BR /&gt;&lt;BR /&gt;Are you aware of my above post?&lt;BR /&gt;The post was trapped by forum censorship, for a couple of hours.&lt;BR /&gt;After salvaged by the webmaster, the post was put before your above post, along with the original post time. As the result, it wasn't entitled as a new post. It's hard to be aware of this "new" comment.&lt;BR /&gt;&lt;BR /&gt;Frustrating forum engine.&lt;BR /&gt;&lt;BR /&gt;Tsuneo&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LOL...the forum isn't working too good today...I have to quote in order to get a "post" button on the comment page...I really just wanted to say this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Tsuneo,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I did see your post.&amp;nbsp; If you look at the time stamps on my last post and your first post, it looks like we were online replying at the same time.&amp;nbsp; We followed your instructions, got our function point address for HID_EP_Hdlr and today we're going to see if we have a memory issue like you suggested.&amp;nbsp; Thanks for the help, it was very useful!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EC&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:28:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/USB-device-stops-responding/m-p/591204#M29481</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: USB device stops responding</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/USB-device-stops-responding/m-p/591205#M29482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ECamino on Fri Jul 26 13:13:59 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The function pointer for HID_EP_Hdlr is not being wiped.&amp;nbsp; We found that the interrupt stops working.&amp;nbsp; Why would USB_IRQHandler() for only the one ep stop working?&amp;nbsp; How to fix?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EC&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:28:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/USB-device-stops-responding/m-p/591205#M29482</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: USB device stops responding</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/USB-device-stops-responding/m-p/591206#M29483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ECamino on Thu Aug 15 11:32:26 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Help, please?&amp;nbsp; This one won't go away...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is one HID device of a HID composite device stops responding when both devices and other peripherals of the LPC1347 are under "heavy" use.&amp;nbsp; When the HID device stops working, the HID2 device and all other peripheral/program functions continue to work.&amp;nbsp; It seems that the first device, HID, stops interrupting on the USB out. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have a pc application that sends data to the first HID device and then the device replies.&amp;nbsp; While debugging, I found that if I put breakpoints in the code at HID_Ep_Hdlr and/or at USB_IRQHandler, I can see data out and in before the program even breaks.&amp;nbsp; It's like the USB API has already interrupted and run through call back functions before the program breaks at the first breakpoint at the IRQ.&amp;nbsp; Could this be some kind of latency limitation of LPCXpresso?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried looking for memory problems and have found nothing that would wipe the USB ram.&amp;nbsp; If I look at the USB peripheral registers, nothing really seems to change.&amp;nbsp; Are there certain reg values that could give me clues as to what happens with the HID device and interrupting?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EC&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:28:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/USB-device-stops-responding/m-p/591206#M29483</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: USB device stops responding</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/USB-device-stops-responding/m-p/591207#M29484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Tsuneo on Tue Aug 20 01:34:51 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;In this post, a bug on HW-&amp;gt;init() of the ROM stack on LPC11Uxx was confirmed. HW-&amp;gt;init() returns wrong mem_base and mem_size, which affect to allocation of following HID instances.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Fhw-init-and-hw-getmemsize-return-seemingly-incorrect-values" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/forum/hw-init-and-hw-getmemsize-return-seemingly-incorrect-values&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you apply the workaround in above post?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tsuneo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:28:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/USB-device-stops-responding/m-p/591207#M29484</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: USB device stops responding</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/USB-device-stops-responding/m-p/591208#M29485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ECamino on Wed Aug 21 11:38:42 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Tsuneo!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No, I looked at ES_LPC1315/16/17/45/46/47 and did not see anything about a silicon (ROM) issue having to do with the USB ROM Drivers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I read the post from your link, and then I added this line right after the USB hw init:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[color=blue]&lt;/SPAN&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;usb_param.mem_base = 0x10001000 + (0x1000 - usb_param.mem_size);&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;[/color]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I built it and it runs...hard to say if bug is gone as it's intermittent (yea!)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After I call the hid_init(), do I have to recalc the mem address and size again?&amp;nbsp; If using a composite device, would that have to be done again after hid2_init()?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Per the second half of your linked post, I don't "reuse" any enpoints in the descriptors, so do I have to do the ep buffer size recalcs?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EC&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:28:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/USB-device-stops-responding/m-p/591208#M29485</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:28:59Z</dc:date>
    </item>
  </channel>
</rss>

