<?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: MQX 4.1: USB CDC device &amp;quot;virtual com&amp;quot; not enumerating in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-USB-CDC-device-quot-virtual-com-quot-not-enumerating/m-p/348080#M11223</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hui Shao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.freescale.com/files/32bit/hardware_tools/schematics/TWRK20D50M_SCH.pdf?fr=gtl" title="http://cache.freescale.com/files/32bit/hardware_tools/schematics/TWRK20D50M_SCH.pdf?fr=gtl"&gt;http://cache.freescale.com/files/32bit/hardware_tools/schematics/TWRK20D50M_SCH.pdf?fr=gtl&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This is&amp;nbsp; the link for the twrk20d50 schematic file, could you please check the page 6? In this page you can find the hardware for the USB, could you please doble check it?&lt;/P&gt;&lt;P&gt;This is in order to &lt;SPAN style="color: black;"&gt;isolate the issue, I am looking a hardward issue. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In addition, could you please try using the Virtual COM CDC example from MQX, you can find it at the next path: &lt;/P&gt;&lt;P&gt;C:\Freescale\Freescale_MQX_4_1\usb\device\examples\cdc\virtual_com&lt;/P&gt;&lt;P&gt;Have a great day,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sol &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Sep 2014 22:24:30 GMT</pubDate>
    <dc:creator>soledad</dc:creator>
    <dc:date>2014-09-26T22:24:30Z</dc:date>
    <item>
      <title>MQX 4.1: USB CDC device "virtual com" not enumerating</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-USB-CDC-device-quot-virtual-com-quot-not-enumerating/m-p/348078#M11221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have problem to make my board enumerated after plugging USB connector into Windows PC. Windows shows nothing after a connection. My configuration is like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OS: MQX 4.1.1&lt;/P&gt;&lt;P&gt;HW: MX20DX128VFM5&lt;/P&gt;&lt;P&gt;Tool: IAR and I-jet&lt;/P&gt;&lt;P&gt;BSP: k20d50m&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My costumed board is driven by 8MHz crystal and +5v comes directly from PC USB port. The USB ID detection pin is tied to ground and +5V power is seen on the board after connecting to PC. After calculation my board should supply 48MHz to ARM core.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code wise, I can see the device&amp;nbsp; stack is initialized OK.&amp;nbsp; However, in code below, I don't see start_app and start_transactions are TRUE.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;/* call the periodic task function */ &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;USB_CDC_Periodic_Task();&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;/*check whether enumeration is complete or not */&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;if((start_app==TRUE) &amp;amp;&amp;amp; (start_transactions==TRUE))&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No sure where to start the investigation, look at the clock init code in bsp_cm.c:&lt;/P&gt;&lt;P&gt;LDD_TError Cpu_SetClockConfiguration(LDD_TClockConfiguration ModeID)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (ModeID &amp;gt; 0x02U) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return ERR_RANGE;&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; /* Undefined clock configuration requested requested */&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; switch (ModeID) {&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;case CPU_CLOCK_CONFIG_0:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;case CPU_CLOCK_CONFIG_1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;case CPU_CLOCK_CONFIG_2:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stepping through the clock init code, I see twice of settings are either config_0 and then config_1 (BSP_CLOCK_CONFIGURATION_AUTOTRPM and BSP_CLOCK_CONFIGURATION_DEFAULT?). From there, USB clock prescalers are USBDIV=1 and USBFRAC=0. Is it correct for USB FS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My operation steps are:&lt;/P&gt;&lt;P&gt;1. connect my board to Windows PC USB port&lt;/P&gt;&lt;P&gt;2. Load code through IAR I-jet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Windows simply doesn't show anything after&amp;nbsp; the step above? Where should I start to look into this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 20:51:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-USB-CDC-device-quot-virtual-com-quot-not-enumerating/m-p/348078#M11221</guid>
      <dc:creator>huishao2</dc:creator>
      <dc:date>2014-09-25T20:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 4.1: USB CDC device "virtual com" not enumerating</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-USB-CDC-device-quot-virtual-com-quot-not-enumerating/m-p/348079#M11222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After some investigation work, it seems to be a memory allocation failure inside CDC device initialization due to tight 16KB RAM. But the enumeration issue is still there. Will ask in a different thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hui&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 22:00:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-USB-CDC-device-quot-virtual-com-quot-not-enumerating/m-p/348079#M11222</guid>
      <dc:creator>huishao2</dc:creator>
      <dc:date>2014-09-26T22:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 4.1: USB CDC device "virtual com" not enumerating</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-USB-CDC-device-quot-virtual-com-quot-not-enumerating/m-p/348080#M11223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hui Shao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.freescale.com/files/32bit/hardware_tools/schematics/TWRK20D50M_SCH.pdf?fr=gtl" title="http://cache.freescale.com/files/32bit/hardware_tools/schematics/TWRK20D50M_SCH.pdf?fr=gtl"&gt;http://cache.freescale.com/files/32bit/hardware_tools/schematics/TWRK20D50M_SCH.pdf?fr=gtl&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This is&amp;nbsp; the link for the twrk20d50 schematic file, could you please check the page 6? In this page you can find the hardware for the USB, could you please doble check it?&lt;/P&gt;&lt;P&gt;This is in order to &lt;SPAN style="color: black;"&gt;isolate the issue, I am looking a hardward issue. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In addition, could you please try using the Virtual COM CDC example from MQX, you can find it at the next path: &lt;/P&gt;&lt;P&gt;C:\Freescale\Freescale_MQX_4_1\usb\device\examples\cdc\virtual_com&lt;/P&gt;&lt;P&gt;Have a great day,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sol &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 22:24:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-USB-CDC-device-quot-virtual-com-quot-not-enumerating/m-p/348080#M11223</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2014-09-26T22:24:30Z</dc:date>
    </item>
  </channel>
</rss>

