<?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 About USB Host and Device configurations on K21 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/About-USB-Host-and-Device-configurations-on-K21/m-p/416869#M23723</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use USB host and device configuration dynamically on k21 system. I am polling on a USB ID pin and configure host or device based on ID pin detection.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I need this dynamically happen, so when system is running if I should able to change configuration from device to host or vise-versa.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently I can configure system either to host or to device once at time of boot sensing ID pin. But when I change ID pin while system is running then it does not reconfigure and fails for any data communication.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached in my init code APIs&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rahul&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337344"&gt;usb_code.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 21 Jun 2015 15:50:20 GMT</pubDate>
    <dc:creator>rahulhirve</dc:creator>
    <dc:date>2015-06-21T15:50:20Z</dc:date>
    <item>
      <title>About USB Host and Device configurations on K21</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/About-USB-Host-and-Device-configurations-on-K21/m-p/416869#M23723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use USB host and device configuration dynamically on k21 system. I am polling on a USB ID pin and configure host or device based on ID pin detection.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I need this dynamically happen, so when system is running if I should able to change configuration from device to host or vise-versa.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently I can configure system either to host or to device once at time of boot sensing ID pin. But when I change ID pin while system is running then it does not reconfigure and fails for any data communication.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached in my init code APIs&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rahul&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337344"&gt;usb_code.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jun 2015 15:50:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/About-USB-Host-and-Device-configurations-on-K21/m-p/416869#M23723</guid>
      <dc:creator>rahulhirve</dc:creator>
      <dc:date>2015-06-21T15:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: About USB Host and Device configurations on K21</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/About-USB-Host-and-Device-configurations-on-K21/m-p/416870#M23724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;I'd like to highly recommend that you should choose USB On-The-Go mode which can determine the role of the device based on hardware signal,&lt;/P&gt;&lt;P&gt;and then initializes the device in the appropriate mode of operation (host or peripheral) based on how it is connected.&lt;/P&gt;&lt;P&gt;The KSDK 1.2 also contains the USB On-The-Go demo for K21 and please go ahead to download through the link as below.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KINETIS-SDK&amp;amp;fsrch=1&amp;amp;sr=1&amp;amp;pageNum=1" title="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KINETIS-SDK&amp;amp;fsrch=1&amp;amp;sr=1&amp;amp;pageNum=1"&gt;Software Development Kit for Kinetis MCUs|Freescale&lt;/A&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&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>Tue, 23 Jun 2015 05:22:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/About-USB-Host-and-Device-configurations-on-K21/m-p/416870#M23724</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2015-06-23T05:22:45Z</dc:date>
    </item>
  </channel>
</rss>

