<?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>P-Series中的主题 P2041rdb USB initialization problem</title>
    <link>https://community.nxp.com/t5/P-Series/P2041rdb-USB-initialization-problem/m-p/354141#M1722</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a 2041rdb and I am trying to develop my USB host controller driver. During the port PHY connection part of the initialization, I lose connection with CPU for some reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have looked at some linux codes for reference and i dont know what i am missing here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i am doing;&lt;/P&gt;&lt;P&gt;1. Reset host controller with USB1_USBCMD register. and poll on the reset bit.&lt;/P&gt;&lt;P&gt;2. Set CM field of USB1_USBMODE to 0x3.&lt;/P&gt;&lt;P&gt;3. Set up snoop windows.&lt;/P&gt;&lt;P&gt;4. Enable UTMI PHY and select UTMI as the clock source on USB1_CONTROL&lt;/P&gt;&lt;P&gt;5. Select UTMI interface on USB1_PORTSC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I lose connection when I am trying step 5. I am aware of the endianess issue and i checked DCFG_DEVDISR1 register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i load uboot and try this sequence it works fine. But when i am trying to run my own software something happens to CPU. I am open to any suggestions at the moment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Feb 2015 09:01:26 GMT</pubDate>
    <dc:creator>osmanzekier</dc:creator>
    <dc:date>2015-02-06T09:01:26Z</dc:date>
    <item>
      <title>P2041rdb USB initialization problem</title>
      <link>https://community.nxp.com/t5/P-Series/P2041rdb-USB-initialization-problem/m-p/354141#M1722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a 2041rdb and I am trying to develop my USB host controller driver. During the port PHY connection part of the initialization, I lose connection with CPU for some reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have looked at some linux codes for reference and i dont know what i am missing here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i am doing;&lt;/P&gt;&lt;P&gt;1. Reset host controller with USB1_USBCMD register. and poll on the reset bit.&lt;/P&gt;&lt;P&gt;2. Set CM field of USB1_USBMODE to 0x3.&lt;/P&gt;&lt;P&gt;3. Set up snoop windows.&lt;/P&gt;&lt;P&gt;4. Enable UTMI PHY and select UTMI as the clock source on USB1_CONTROL&lt;/P&gt;&lt;P&gt;5. Select UTMI interface on USB1_PORTSC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I lose connection when I am trying step 5. I am aware of the endianess issue and i checked DCFG_DEVDISR1 register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i load uboot and try this sequence it works fine. But when i am trying to run my own software something happens to CPU. I am open to any suggestions at the moment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 09:01:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/P2041rdb-USB-initialization-problem/m-p/354141#M1722</guid>
      <dc:creator>osmanzekier</dc:creator>
      <dc:date>2015-02-06T09:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: P2041rdb USB initialization problem</title>
      <link>https://community.nxp.com/t5/P-Series/P2041rdb-USB-initialization-problem/m-p/354142#M1723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: black;"&gt;Look at the Section &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt;"&gt;&lt;SPAN&gt;16.9.1 of the P2041 Reference Manual (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://www.freescale.com/webapp/Download?colCode=P2040RM&amp;amp;location=null&amp;amp;fasp=1&amp;amp;WT_TYPE=Reference%20Manuals&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.pdf&amp;amp;Parent_nodeId=1281971859333684758626&amp;amp;Parent_pageType=product" target="_blank"&gt;https://www.freescale.com/webapp/Download?colCode=P2040RM&amp;amp;location=null&amp;amp;fasp=1&amp;amp;WT_TYPE=Reference%20Manuals&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.pdf&amp;amp;Parent_nodeId=1281971859333684758626&amp;amp;Parent_pageType=product&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt;"&gt;This Section contains host initialization sequence.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: black;"&gt;Look at the Section &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt;"&gt;16.11.1 of the P2041 Reference Manual. This Section contains device initialization sequence.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt;"&gt;Use this commands sequence for the P2041 USB initialization.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 03:56:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/P2041rdb-USB-initialization-problem/m-p/354142#M1723</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2015-02-09T03:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: P2041rdb USB initialization problem</title>
      <link>https://community.nxp.com/t5/P-Series/P2041rdb-USB-initialization-problem/m-p/354143#M1724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pavel Chubakov,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have tried the exact sequence in section 16.9.1. My issue is that i cannot seem to modify PORTSC register in any way. When i attempt to write anything in PORTSC register CPU hangs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i try the same sequence while uboot is running it works fine. Are there other prequisite settings. I suspect that it has something to do with the clock not apearing on the internal PHY or some other low-level configurations. I went thorugh RM but could not find a possible source for this issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 08:10:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/P2041rdb-USB-initialization-problem/m-p/354143#M1724</guid>
      <dc:creator>osmanzekier</dc:creator>
      <dc:date>2015-02-09T08:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: P2041rdb USB initialization problem</title>
      <link>https://community.nxp.com/t5/P-Series/P2041rdb-USB-initialization-problem/m-p/354144#M1725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt;"&gt;Check please setting of the &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt;"&gt;USB_CONTROL register. This register uses big-endian byte ordering and is not defined in the EHCI specification.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt;"&gt;Bytes swap is needed for this register.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 10:13:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/P2041rdb-USB-initialization-problem/m-p/354144#M1725</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2015-02-09T10:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: P2041rdb USB initialization problem</title>
      <link>https://community.nxp.com/t5/P-Series/P2041rdb-USB-initialization-problem/m-p/354145#M1726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is 0x00000200. And i am able to read this value from USB_CONTROL. I am byte swapping every register with the offset less than 0x400.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reading from HCSPARAMS gives me the value 0x11000100 which tells me that little endien registers needs byte swapping rather than big endian registers. However you got me confused there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However i tried byte swapping everything in case i was wrong and it did not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 11:52:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/P2041rdb-USB-initialization-problem/m-p/354145#M1726</guid>
      <dc:creator>osmanzekier</dc:creator>
      <dc:date>2015-02-09T11:52:07Z</dc:date>
    </item>
  </channel>
</rss>

