<?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>Kinetis Design StudioのトピックRe: why USB_LDD cannot work correctly?</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/why-USB-LDD-cannot-work-correctly/m-p/686253#M9052</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Jorge Alcala:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;However, the two documents you recommended cannot help me.&lt;/P&gt;&lt;P&gt;I believe&amp;nbsp;you should test my code, then help me to get over&amp;nbsp;the problem.&lt;/P&gt;&lt;P&gt;I wonder&amp;nbsp;if my project used "linked" mode, so you couldn't compile it.&lt;/P&gt;&lt;P&gt;Therefore&amp;nbsp;I have changed the mode to "standalone" mode. Please see the attached file.&lt;/P&gt;&lt;P&gt;Also, I suppose the USB drivers are not related to my problem, since the HOST&amp;nbsp;has not enumerated the DEVICE.&lt;/P&gt;&lt;P&gt;Thank you again, very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jul 2017 09:43:13 GMT</pubDate>
    <dc:creator>jianfengzheng</dc:creator>
    <dc:date>2017-07-25T09:43:13Z</dc:date>
    <item>
      <title>why USB_LDD cannot work correctly?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/why-USB-LDD-cannot-work-correctly/m-p/686251#M9050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use MCU MK22FN256VLL12, &amp;nbsp;the development tool is KDS3.2.0.&lt;/P&gt;&lt;P&gt;I implement USB device by ProcessorExpert, and &amp;nbsp;generate USB_LDD.&lt;/P&gt;&lt;P&gt;After USB device(i.e. my PCB) is attached to PC, it begin to 'standard device request', it works well as below:&lt;/P&gt;&lt;P&gt;1. GET_DESCRIPTION (type=DEVICE) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;------- OK&lt;/P&gt;&lt;P&gt;2. SET_ADDRESS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;------- OK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. GET_DESCRIPTION (type=DEVICE) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;------- OK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;4. GET_DESCRIPTOR (type = CONFIGURATION) &amp;nbsp; ------- fail, host closed the USB port&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried many times, it always failed on the 4th&amp;nbsp;step at each time.&lt;/P&gt;&lt;P&gt;I am sure the previous three&amp;nbsp;steps are successful, because the USB device&amp;nbsp;can be showed by a tool named as 'USB Monitor'. following is the cut picture.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="188252_188252.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/123066i25341B078F39AA88/image-size/large?v=v2&amp;amp;px=999" role="button" title="188252_188252.png" alt="188252_188252.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/24682iF149C08D20C8F922/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Port5 is my PCB, there Vendor=0x1234, Product ID=0x1122 are correct.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is:&lt;/P&gt;&lt;P&gt;Why the host quits instead to continue to request CONFIGURATION DESCRIPTOR&lt;/P&gt;&lt;P&gt;What is the problem, I have tried one week to search the BUG, and have to give up today, and need your help now.&lt;/P&gt;&lt;P&gt;The attached file is my KDS project. the drive file is &amp;lt;drive_usb.c&amp;gt;, please help me to check it .&lt;/P&gt;&lt;P&gt;Please note, this &amp;lt;&lt;SPAN&gt;drive_usb.c&amp;gt;&lt;/SPAN&gt; worked OK on my another PCB, although, it is designed by different MCU, MKL26Z128VLH4. &amp;nbsp;It can be correctly detected as following also by USB Monitor&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="188256_188256.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/123067i554B9BD3646F7D0E/image-size/large?v=v2&amp;amp;px=999" role="button" title="188256_188256.png" alt="188256_188256.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/24836iF0A3D2723CE0BC37/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THANK YOU ! &amp;nbsp;Wait here Anxiously!&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338468"&gt;K22NUSB.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 09:35:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/why-USB-LDD-cannot-work-correctly/m-p/686251#M9050</guid>
      <dc:creator>jianfengzheng</dc:creator>
      <dc:date>2017-07-06T09:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: why USB_LDD cannot work correctly?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/why-USB-LDD-cannot-work-correctly/m-p/686252#M9051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jianfeng Zheng&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial;"&gt;Regard your request; Have you checked this community document?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial;"&gt;&lt;A href="https://community.nxp.com/docs/DOC-106048"&gt;Creating a New USB project with KSDK and Processor Expert support in KDS&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial;"&gt;&lt;BR /&gt;Here a colleague explain how to create a new USB device project with Processor expert and SDK 1.3. Please use it as reference if you want to create a project with processor expert.&lt;BR /&gt;&lt;BR /&gt;Also, please check this community post: &lt;BR /&gt;&lt;A href="https://community.nxp.com/docs/DOC-331376"&gt;USB Host Project with KSDK 1.3 and Processor Expert&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;It also show USB Host project, it gives some recommendation about PE and USB.&lt;BR /&gt;&lt;BR /&gt;Unfortunately I tried to test your code and I couldn't compile it because it has relative paths to your workspace. Also, I noticed that you are implementing your own USB drivers, is it possible for your application to use our USB drivers? and if possible, use the latest USB stack that comes with SDK 2.2?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Jorge Alcala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 21:27:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/why-USB-LDD-cannot-work-correctly/m-p/686252#M9051</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2017-07-17T21:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: why USB_LDD cannot work correctly?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/why-USB-LDD-cannot-work-correctly/m-p/686253#M9052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Jorge Alcala:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;However, the two documents you recommended cannot help me.&lt;/P&gt;&lt;P&gt;I believe&amp;nbsp;you should test my code, then help me to get over&amp;nbsp;the problem.&lt;/P&gt;&lt;P&gt;I wonder&amp;nbsp;if my project used "linked" mode, so you couldn't compile it.&lt;/P&gt;&lt;P&gt;Therefore&amp;nbsp;I have changed the mode to "standalone" mode. Please see the attached file.&lt;/P&gt;&lt;P&gt;Also, I suppose the USB drivers are not related to my problem, since the HOST&amp;nbsp;has not enumerated the DEVICE.&lt;/P&gt;&lt;P&gt;Thank you again, very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 09:43:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/why-USB-LDD-cannot-work-correctly/m-p/686253#M9052</guid>
      <dc:creator>jianfengzheng</dc:creator>
      <dc:date>2017-07-25T09:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: why USB_LDD cannot work correctly?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/why-USB-LDD-cannot-work-correctly/m-p/686254#M9053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answer by myself.&lt;/P&gt;&lt;P&gt;Today, eventually, I have found the bug.&lt;/P&gt;&lt;P&gt;I suppose the reason is the USB Engine can't read FLASH ROM.&lt;/P&gt;&lt;P&gt;As it happens, the variable "ConfigDescriptor" is located in FLASH ROM, however the "DeviceDescriptor" is located in RAM,&amp;nbsp;look at following codes:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;static LDD_USB_TDevDescriptor DeviceDescriptor = {.....};&lt;/P&gt;&lt;P&gt;static&lt;STRONG&gt; const&lt;/STRONG&gt; unsigned char ConfigDescriptor[] = {........}; // note the "const" keyword&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;At 1st step, GET_DESCRIPTION (type=DEVICE), it is correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;but when&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;GET_DESCRIPTOR (type = CONFIGURATION), MCU cannot read correctly ConfigDescriptor from FLASH ROM.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;As soon as the "const" is deleted, the USB device is enumerated successfully!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ps. this problem occurs only for&amp;nbsp;CortexM4F platform, But Cortex M0+ has not this shortcom. Hence&amp;nbsp;my another board based on MKL26Z128, whose USB code is the same, is normally running.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;That's all.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 10:01:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/why-USB-LDD-cannot-work-correctly/m-p/686254#M9053</guid>
      <dc:creator>jianfengzheng</dc:creator>
      <dc:date>2017-08-07T10:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: why USB_LDD cannot work correctly?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/why-USB-LDD-cannot-work-correctly/m-p/686255#M9054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is not the problem.&lt;BR /&gt;There the problem of alignment of these structures.&lt;BR /&gt;If you change the code, it will stop running.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2017 17:42:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/why-USB-LDD-cannot-work-correctly/m-p/686255#M9054</guid>
      <dc:creator>PitOn</dc:creator>
      <dc:date>2017-11-16T17:42:33Z</dc:date>
    </item>
  </channel>
</rss>

