<?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 MicrocontrollersのトピックRe: USB Enumration Failure on K70 with MQX4.0.2 with USB device stack</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Enumration-Failure-on-K70-with-MQX4-0-2-with-USB-device/m-p/1306375#M61017</link>
    <description>Thanks for helping on this topic, and I've solved this issue already. As to the clock, I'm sure the 48MHz is right. Since the hardware configuration is copied from the ready-to-use project that I've mentioned, so the clock configuration should be OK. Besides, I've checked the SIM-SOPT2 reg of K70 MCU, the bits of USBFSRC and USBF_CLKSEL fields matches the system setting(PLL0 used, 50MHz clk input, 240MHz output). The issue is resulted from the speed of different RAM memory. The ready-to-use project defines a dedicated RAM area in K70's internal SRAM for USB_BDT structure. While in my project, I did no such definition, so the compiler(IAR 6.5) put the USB_BDT at DDR2 memory area. On K70, access speed to DDR2 is about 70% of the speed of accessing K70's internal SRAM. And this causes the USB interrupt service routine can't get request from host in time, as well as can't send out the descriptor information immediately.</description>
    <pubDate>Mon, 12 Jul 2021 23:19:27 GMT</pubDate>
    <dc:creator>charleschen</dc:creator>
    <dc:date>2021-07-12T23:19:27Z</dc:date>
    <item>
      <title>USB Enumration Failure on K70 with MQX4.0.2 with USB device stack</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Enumration-Failure-on-K70-with-MQX4-0-2-with-USB-device/m-p/1305950#M61013</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm new to USB. I'm trying to create a virtual com port on K70 which is running MQX4.0.2.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I have a ready-to-use project which is dedicated for the same customer K70 board with the same MQX RTOS. In this demo project, a virtual com demo has already run successfully. The USB stack is MQX USB device stack at full speed.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I have copied all USB related files from this project to my project and compiling is OK. But when I connect a USB cable from this customer board to PC, PC doesn't recognize the USB device. And what I have observed from an oscilloscope is that customer board doesn't send out descriptor data after ACK packet to PC's setup command.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Can any expert give a hint on how to find the cause? Thank you very much!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 07:00:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Enumration-Failure-on-K70-with-MQX4-0-2-with-USB-device/m-p/1305950#M61013</guid>
      <dc:creator>charleschen</dc:creator>
      <dc:date>2021-07-12T07:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: USB Enumration Failure on K70 with MQX4.0.2 with USB device stack</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Enumration-Failure-on-K70-with-MQX4-0-2-with-USB-device/m-p/1306178#M61015</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/170766"&gt;@charleschen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my experience, what you are describing is a clocking issue.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How are you verifying that a 48MHz clock is getting to the USB module?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 12:57:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Enumration-Failure-on-K70-with-MQX4-0-2-with-USB-device/m-p/1306178#M61015</guid>
      <dc:creator>myke_predko</dc:creator>
      <dc:date>2021-07-12T12:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: USB Enumration Failure on K70 with MQX4.0.2 with USB device stack</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Enumration-Failure-on-K70-with-MQX4-0-2-with-USB-device/m-p/1306375#M61017</link>
      <description>Thanks for helping on this topic, and I've solved this issue already. As to the clock, I'm sure the 48MHz is right. Since the hardware configuration is copied from the ready-to-use project that I've mentioned, so the clock configuration should be OK. Besides, I've checked the SIM-SOPT2 reg of K70 MCU, the bits of USBFSRC and USBF_CLKSEL fields matches the system setting(PLL0 used, 50MHz clk input, 240MHz output). The issue is resulted from the speed of different RAM memory. The ready-to-use project defines a dedicated RAM area in K70's internal SRAM for USB_BDT structure. While in my project, I did no such definition, so the compiler(IAR 6.5) put the USB_BDT at DDR2 memory area. On K70, access speed to DDR2 is about 70% of the speed of accessing K70's internal SRAM. And this causes the USB interrupt service routine can't get request from host in time, as well as can't send out the descriptor information immediately.</description>
      <pubDate>Mon, 12 Jul 2021 23:19:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Enumration-Failure-on-K70-with-MQX4-0-2-with-USB-device/m-p/1306375#M61017</guid>
      <dc:creator>charleschen</dc:creator>
      <dc:date>2021-07-12T23:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: USB Enumration Failure on K70 with MQX4.0.2 with USB device stack</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Enumration-Failure-on-K70-with-MQX4-0-2-with-USB-device/m-p/1307142#M61022</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/170766"&gt;@charleschen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Glad to hear you figured out your problem.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From what I've seen, clocking is the #1 reason for people to have problems when existing code is ported in - IRQ response would be #2 but I would think that's fairly unusual.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 19:02:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Enumration-Failure-on-K70-with-MQX4-0-2-with-USB-device/m-p/1307142#M61022</guid>
      <dc:creator>myke_predko</dc:creator>
      <dc:date>2021-07-13T19:02:17Z</dc:date>
    </item>
  </channel>
</rss>

