<?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>MQX Software SolutionsのトピックRe: MQX &amp; MCF54418 - USB problem</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-MCF54418-USB-problem/m-p/245172#M6967</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alessandro,&lt;/P&gt;&lt;P&gt;I'm using MQX4.0 and CW10.3 and just tried the virtual com usb device project successfully for twrmcf54418 Tower kit.&lt;/P&gt;&lt;P&gt;I don't see anything in the MQX4.0 release notes to indicate that any fixes were specifically applied.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Mar 2013 16:49:06 GMT</pubDate>
    <dc:creator>DavidS</dc:creator>
    <dc:date>2013-03-29T16:49:06Z</dc:date>
    <item>
      <title>MQX &amp; MCF54418 - USB problem</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-MCF54418-USB-problem/m-p/245171#M6966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Hello everybody,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;We have developed a board based on a ColdFire MCF54418 (the board is quite similar to the TWR-MCF54418) and we are running some MQX examples to test the board’s peripherals (we are using MQX 3.8.1 and CodeWarrior Classic 7.2). In particular, we have are trying to test the USB I/F, which on our board is just a USB device (the chosen example is the virtual COM port one). The problem is that the code crashes when, in the routine &lt;SPAN style="font-family: courier new,courier;"&gt;_usb_dci_usbhs_chip_initialize()&lt;/SPAN&gt; (in &lt;SPAN style="font-family: courier new,courier;"&gt;ehci_dev_main.c&lt;/SPAN&gt;, the following instruction is executed:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;/*--- Intial Configuration ---*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;/* Initialize the endpoint 0 properties */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;EHCI_REG_WRITE(dev_ptr-&amp;gt;REGISTERS.OPERATIONAL_DEVICE_REGISTERS.ENDPTCTRLX[0], (EHCI_EPCTRL_TX_DATA_TOGGLE_RST | EHCI_EPCTRL_RX_DATA_TOGGLE_RST));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is, the &lt;SPAN style="font-family: courier new,courier;"&gt;EHCI_EPCTRL_TX_DATA_TOGGLE_RST&lt;/SPAN&gt; (bit 22) and &lt;SPAN style="font-family: courier new,courier;"&gt;EHCI_EPCTRL_RX_DATA_TOGGLE_RST&lt;/SPAN&gt; (bit 6) belong to the Endpoint Control Register 1, &lt;STRONG&gt;not&lt;/STRONG&gt; 0 (see MCF54418RM, page 24-44 and 24-45). Instead, in the Endpoint Control Register 0 those bits are reserved and must be cleared, so this would explain the crash (we have verified with the P&amp;amp;E BDM that it is actually the Endpoint Control Register 0 that gets written to).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two questions:&lt;/P&gt;&lt;P&gt;1) Has anyone tried an MQX USB device example on the TWR-MCF54418 (unfortunately we don’t have this EVB, so we can’t check)?&lt;/P&gt;&lt;P&gt;2) Does anyone have some working USB device code for the MCF54418 or know how to fix the one provided with MQX?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help!&lt;/P&gt;&lt;P&gt;Alessandro &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2013 23:12:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-MCF54418-USB-problem/m-p/245171#M6966</guid>
      <dc:creator>amprel</dc:creator>
      <dc:date>2013-03-28T23:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: MQX &amp; MCF54418 - USB problem</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-MCF54418-USB-problem/m-p/245172#M6967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alessandro,&lt;/P&gt;&lt;P&gt;I'm using MQX4.0 and CW10.3 and just tried the virtual com usb device project successfully for twrmcf54418 Tower kit.&lt;/P&gt;&lt;P&gt;I don't see anything in the MQX4.0 release notes to indicate that any fixes were specifically applied.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Mar 2013 16:49:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-MCF54418-USB-problem/m-p/245172#M6967</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2013-03-29T16:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: MQX &amp; MCF54418 - USB problem</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-MCF54418-USB-problem/m-p/245173#M6968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alessandro,&lt;/P&gt;&lt;P&gt;I'm also using the MCF54418 and getting intermittent errors.&amp;nbsp; Sometimes it refuses to connect on first try, and other times it will run for half an hour without problems.&amp;nbsp;&amp;nbsp; Unfortunately I haven't had time yet to dig into the code to find out where my problem lies.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Hopefully whatever you figure out will help me as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Travis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Apr 2013 15:32:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-MCF54418-USB-problem/m-p/245173#M6968</guid>
      <dc:creator>t_k</dc:creator>
      <dc:date>2013-04-01T15:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: MQX &amp; MCF54418 - USB problem</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-MCF54418-USB-problem/m-p/245174#M6969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alessandro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might want to check your USB clock.&amp;nbsp; I just had the same issue with a crash at the same point.&amp;nbsp; I'm using the on-chip transceiver for the USB device.&amp;nbsp; After I enabled the 60 MHz clock for the on-chip transceiver in the BSP it got past this line of code without crashing.&amp;nbsp; I've still got some work to do though in getting it to enumerate...not seeing the DP line go high.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Kurt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 14:53:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-MCF54418-USB-problem/m-p/245174#M6969</guid>
      <dc:creator>plim</dc:creator>
      <dc:date>2013-04-09T14:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: MQX &amp; MCF54418 - USB problem</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-MCF54418-USB-problem/m-p/245175#M6970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kurt,&lt;/P&gt;&lt;P&gt;Did you enable the pull-up for FS/LS detect in the MISCCR register?&lt;/P&gt;&lt;P&gt;We also found that the #define for MCF54XX_CCM_MISCCR_USBPUE was incorrectly set to 0x04 when it should be 0x02&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Travis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 15:01:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-MCF54418-USB-problem/m-p/245175#M6970</guid>
      <dc:creator>t_k</dc:creator>
      <dc:date>2013-04-09T15:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: MQX &amp; MCF54418 - USB problem</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-MCF54418-USB-problem/m-p/245176#M6971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Travis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just did what you suggested and I was able to enumerate and run the USB device application. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Kurt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 15:32:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-MCF54418-USB-problem/m-p/245176#M6971</guid>
      <dc:creator>plim</dc:creator>
      <dc:date>2013-04-09T15:32:06Z</dc:date>
    </item>
  </channel>
</rss>

