<?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のトピックwriting a usb stack for p2041rdb...</title>
    <link>https://community.nxp.com/t5/P-Series/writing-a-usb-stack-for-p2041rdb/m-p/658108#M3969</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to develop a usb stack for a custom RTOS on Freescale P2041rdb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far, i followed the 'host controller initialization' procedure (as in&lt;BR /&gt;section 16.7.1 of the QorIQ P2040 reference manual).&lt;BR /&gt;I powered and enabled the ports on the host controller, and detected&lt;BR /&gt;the speed of an attached usb device through PORTSC register.&lt;/P&gt;&lt;P&gt;But i have some problems with the enumeration, i cannot get the device&lt;BR /&gt;descriptor. I prepared necessary structures, a queue head (H bit set, dtc bit&lt;BR /&gt;and overlay area cleared) and 3 transfer descriptors (first one pointing the&lt;BR /&gt;setup packet), and allocated enough physical memory for them (at the non-cachable&lt;BR /&gt;are of the memory, with proper alignment). I also performed proper byte swapping&lt;BR /&gt;to change endianness. ASYNCLISTADDR register holds the address of the queue&lt;BR /&gt;head.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After enabling the async list through USBCMD register, AS and RCL bits at the&lt;BR /&gt;USBSTS are set, and that's it. I do not observe any changes on the overlay area&lt;BR /&gt;of the queue head and the status field of the transfer descriptor remains active.&lt;/P&gt;&lt;P&gt;Please note that i do not use periodic schedule (PSE bit of the USBCMD and&lt;BR /&gt;PS bit of the USBSTS are cleared), C-mask and S-mask fiels of the queue head&lt;BR /&gt;are also cleared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;deniz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Oct 2016 13:13:49 GMT</pubDate>
    <dc:creator>deniz_demiray</dc:creator>
    <dc:date>2016-10-21T13:13:49Z</dc:date>
    <item>
      <title>writing a usb stack for p2041rdb...</title>
      <link>https://community.nxp.com/t5/P-Series/writing-a-usb-stack-for-p2041rdb/m-p/658108#M3969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to develop a usb stack for a custom RTOS on Freescale P2041rdb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far, i followed the 'host controller initialization' procedure (as in&lt;BR /&gt;section 16.7.1 of the QorIQ P2040 reference manual).&lt;BR /&gt;I powered and enabled the ports on the host controller, and detected&lt;BR /&gt;the speed of an attached usb device through PORTSC register.&lt;/P&gt;&lt;P&gt;But i have some problems with the enumeration, i cannot get the device&lt;BR /&gt;descriptor. I prepared necessary structures, a queue head (H bit set, dtc bit&lt;BR /&gt;and overlay area cleared) and 3 transfer descriptors (first one pointing the&lt;BR /&gt;setup packet), and allocated enough physical memory for them (at the non-cachable&lt;BR /&gt;are of the memory, with proper alignment). I also performed proper byte swapping&lt;BR /&gt;to change endianness. ASYNCLISTADDR register holds the address of the queue&lt;BR /&gt;head.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After enabling the async list through USBCMD register, AS and RCL bits at the&lt;BR /&gt;USBSTS are set, and that's it. I do not observe any changes on the overlay area&lt;BR /&gt;of the queue head and the status field of the transfer descriptor remains active.&lt;/P&gt;&lt;P&gt;Please note that i do not use periodic schedule (PSE bit of the USBCMD and&lt;BR /&gt;PS bit of the USBSTS are cleared), C-mask and S-mask fiels of the queue head&lt;BR /&gt;are also cleared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;deniz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2016 13:13:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/writing-a-usb-stack-for-p2041rdb/m-p/658108#M3969</guid>
      <dc:creator>deniz_demiray</dc:creator>
      <dc:date>2016-10-21T13:13:49Z</dc:date>
    </item>
  </channel>
</rss>

