<?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のトピックlpcusblib 0.98 problems on MCB4300(LPC4357) and endpoint management examples</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpcusblib-0-98-problems-on-MCB4300-LPC4357-and-endpoint/m-p/523561#M6197</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by cmt on Wed Oct 23 11:55:24 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am in research of lpcusblib v0.98 device part on MCB4300(LPC4357), and have many problems with provided examples.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First of all: all examples do not work with library builded with option:&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;USE_USB_ROM_STACK0&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Some of examples are never been enumerated correctly: there is always state "device is not recognized" on host (Win7/64) and only &lt;/SPAN&gt;&lt;I&gt;device descriptor&lt;/I&gt;&lt;SPAN&gt; returns from device. Other examples like as &lt;/SPAN&gt;&lt;STRONG&gt;CDC device&lt;/STRONG&gt;&lt;SPAN&gt; is sometimes enumerated succesfully but not always, and does not work correctly anyway, because some specific interface request from host fails. When enumeration is failed the state is the same - only &lt;/SPAN&gt;&lt;I&gt;device descriptor&lt;/I&gt;&lt;SPAN&gt; returns from device. The same time all of examples which i additionaly check with &lt;/SPAN&gt;&lt;STRONG&gt;USB-IF command verifier&lt;/STRONG&gt;&lt;SPAN&gt; pass all request tests, but enumeration also fails. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is actually seems like a problem with &lt;/SPAN&gt;&lt;I&gt;timings delays&lt;/I&gt;&lt;SPAN&gt; fails for some of time critical USB request, because enumeration status (fail or success) is not always the same at each code execution of the same example. I was also trying to enable/disable option USB_FORCED_FULLSPEED and it does not help. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anybody see the same problem or has some idea how to fix it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the next step i was trying library option:&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;USE_USB_ROM_STACK1&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;and found that USB part of all examples which i interested in works almost fine (AUDIO OUTPUT, HID GENERIC, and VIRTUAL CDC). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is issue in this case: there is only distortions from &lt;/SPAN&gt;&lt;STRONG&gt;on-board speaker/speaker connected to line-out output&lt;/STRONG&gt;&lt;SPAN&gt; instead of normal sound with audio output device example. So if there is cause of problem or solution you know please advise.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And another problem in this case is that &lt;/SPAN&gt;&lt;STRONG&gt;USB-IF CV&lt;/STRONG&gt;&lt;SPAN&gt; finds that device (for all 3 examples) has 2 configurations (but actually it has only 1) and performs request tests twicely: for 0 index all tests passed, for 1 - all failed. Enumeration test is always passed for all examples. I am not sure that described problem is actually significant, because it works OK on Win7, but may be there will be problems on MacOS or Linux.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But my main question is not related to described problems. Now i am trying to implement MIDI device with USE_USB_ROM_STACKenabled. I wrote descriptors and enumeration works fine always. Device is recognized OK. The problem i have is that i cannot force device to transmit packets. I wrote my code based on &lt;/SPAN&gt;&lt;I&gt;audio output example&lt;/I&gt;&lt;SPAN&gt;. I have done all ep operations as it done for audio example and also made some corrections &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- for &lt;/SPAN&gt;&lt;I&gt;bulk endoints&lt;/I&gt;&lt;SPAN&gt; as it described in docs and, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- prepare transfer and prime ep on &lt;/SPAN&gt;&lt;I&gt;configure event&lt;/I&gt;&lt;SPAN&gt; instead of &lt;/SPAN&gt;&lt;I&gt;interface alt event&lt;/I&gt;&lt;SPAN&gt; as it done in audio example; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but there is not any activity on IN and OUT endpoint: endpoints' IRQs are not called.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, can anybody provide some step by step example for how actually ep management should be done for IN and OUT ep.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 16:44:42 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T16:44:42Z</dc:date>
    <item>
      <title>lpcusblib 0.98 problems on MCB4300(LPC4357) and endpoint management examples</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpcusblib-0-98-problems-on-MCB4300-LPC4357-and-endpoint/m-p/523561#M6197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by cmt on Wed Oct 23 11:55:24 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am in research of lpcusblib v0.98 device part on MCB4300(LPC4357), and have many problems with provided examples.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First of all: all examples do not work with library builded with option:&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;USE_USB_ROM_STACK0&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Some of examples are never been enumerated correctly: there is always state "device is not recognized" on host (Win7/64) and only &lt;/SPAN&gt;&lt;I&gt;device descriptor&lt;/I&gt;&lt;SPAN&gt; returns from device. Other examples like as &lt;/SPAN&gt;&lt;STRONG&gt;CDC device&lt;/STRONG&gt;&lt;SPAN&gt; is sometimes enumerated succesfully but not always, and does not work correctly anyway, because some specific interface request from host fails. When enumeration is failed the state is the same - only &lt;/SPAN&gt;&lt;I&gt;device descriptor&lt;/I&gt;&lt;SPAN&gt; returns from device. The same time all of examples which i additionaly check with &lt;/SPAN&gt;&lt;STRONG&gt;USB-IF command verifier&lt;/STRONG&gt;&lt;SPAN&gt; pass all request tests, but enumeration also fails. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is actually seems like a problem with &lt;/SPAN&gt;&lt;I&gt;timings delays&lt;/I&gt;&lt;SPAN&gt; fails for some of time critical USB request, because enumeration status (fail or success) is not always the same at each code execution of the same example. I was also trying to enable/disable option USB_FORCED_FULLSPEED and it does not help. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anybody see the same problem or has some idea how to fix it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the next step i was trying library option:&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;USE_USB_ROM_STACK1&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;and found that USB part of all examples which i interested in works almost fine (AUDIO OUTPUT, HID GENERIC, and VIRTUAL CDC). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is issue in this case: there is only distortions from &lt;/SPAN&gt;&lt;STRONG&gt;on-board speaker/speaker connected to line-out output&lt;/STRONG&gt;&lt;SPAN&gt; instead of normal sound with audio output device example. So if there is cause of problem or solution you know please advise.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And another problem in this case is that &lt;/SPAN&gt;&lt;STRONG&gt;USB-IF CV&lt;/STRONG&gt;&lt;SPAN&gt; finds that device (for all 3 examples) has 2 configurations (but actually it has only 1) and performs request tests twicely: for 0 index all tests passed, for 1 - all failed. Enumeration test is always passed for all examples. I am not sure that described problem is actually significant, because it works OK on Win7, but may be there will be problems on MacOS or Linux.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But my main question is not related to described problems. Now i am trying to implement MIDI device with USE_USB_ROM_STACKenabled. I wrote descriptors and enumeration works fine always. Device is recognized OK. The problem i have is that i cannot force device to transmit packets. I wrote my code based on &lt;/SPAN&gt;&lt;I&gt;audio output example&lt;/I&gt;&lt;SPAN&gt;. I have done all ep operations as it done for audio example and also made some corrections &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- for &lt;/SPAN&gt;&lt;I&gt;bulk endoints&lt;/I&gt;&lt;SPAN&gt; as it described in docs and, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- prepare transfer and prime ep on &lt;/SPAN&gt;&lt;I&gt;configure event&lt;/I&gt;&lt;SPAN&gt; instead of &lt;/SPAN&gt;&lt;I&gt;interface alt event&lt;/I&gt;&lt;SPAN&gt; as it done in audio example; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but there is not any activity on IN and OUT endpoint: endpoints' IRQs are not called.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, can anybody provide some step by step example for how actually ep management should be done for IN and OUT ep.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:44:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpcusblib-0-98-problems-on-MCB4300-LPC4357-and-endpoint/m-p/523561#M6197</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:44:42Z</dc:date>
    </item>
  </channel>
</rss>

