<?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 Using OTG2 for USB CDC host in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Using-OTG2-for-USB-CDC-host/m-p/992084#M5837</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;I'm using MCUXpresso 11.01 for the MIMXRT1062DVJ6A, and MCUXpresso SDK USB Stack, Rev. 10, 06/2019, and&lt;/SPAN&gt;&amp;nbsp;want to be able to switch from OTG1 to OTG2 (and back) for use as a USB CDC host. How is this possible?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;The example code, host_cdc_bm, uses CONTROLLER_ID, which is a macro defined as&amp;nbsp;kUSB_ControllerEhci0, when it calls USB_HostInit, but changing this to&amp;nbsp;&lt;SPAN&gt;kUSB_ControllerEhci1 does not enable USB OTG2. In fact, according to the comments in usb.h, "Currently, there are no platforms which have two EHCI IPs, this is reserved&lt;BR /&gt; to be used in the future". The MCU I'm using actually does have two IPs, which I'm assuming are both EHCI-capable, and I'd like to use both in my product, even if I can only use one at a time.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Dec 2019 13:43:37 GMT</pubDate>
    <dc:creator>jeffthompson</dc:creator>
    <dc:date>2019-12-17T13:43:37Z</dc:date>
    <item>
      <title>Using OTG2 for USB CDC host</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Using-OTG2-for-USB-CDC-host/m-p/992084#M5837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;I'm using MCUXpresso 11.01 for the MIMXRT1062DVJ6A, and MCUXpresso SDK USB Stack, Rev. 10, 06/2019, and&lt;/SPAN&gt;&amp;nbsp;want to be able to switch from OTG1 to OTG2 (and back) for use as a USB CDC host. How is this possible?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;The example code, host_cdc_bm, uses CONTROLLER_ID, which is a macro defined as&amp;nbsp;kUSB_ControllerEhci0, when it calls USB_HostInit, but changing this to&amp;nbsp;&lt;SPAN&gt;kUSB_ControllerEhci1 does not enable USB OTG2. In fact, according to the comments in usb.h, "Currently, there are no platforms which have two EHCI IPs, this is reserved&lt;BR /&gt; to be used in the future". The MCU I'm using actually does have two IPs, which I'm assuming are both EHCI-capable, and I'd like to use both in my product, even if I can only use one at a time.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2019 13:43:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Using-OTG2-for-USB-CDC-host/m-p/992084#M5837</guid>
      <dc:creator>jeffthompson</dc:creator>
      <dc:date>2019-12-17T13:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using OTG2 for USB CDC host</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Using-OTG2-for-USB-CDC-host/m-p/992085#M5838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried this demo, and changed the macro to&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;kUSB_ControllerEhci1 can enable OTG2 successfully.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;And if you want to use OTG1 and OTG2 simultaneously, you need to build two sets of application to serve&amp;nbsp;each port.&amp;nbsp; You can refer to the &lt;EM&gt;keyboard2mouse &lt;/EM&gt;demo to setup your own app.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Tim&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2019 02:11:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Using-OTG2-for-USB-CDC-host/m-p/992085#M5838</guid>
      <dc:creator>tim_wang</dc:creator>
      <dc:date>2019-12-19T02:11:27Z</dc:date>
    </item>
  </channel>
</rss>

