<?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>i.MX Processors中的主题 Re: USB CDC host issue</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/USB-CDC-host-issue/m-p/1613051#M202563</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also facing same problem here, if You know the answer please reply&lt;/P&gt;</description>
    <pubDate>Fri, 10 Mar 2023 09:10:25 GMT</pubDate>
    <dc:creator>Khanajkmal</dc:creator>
    <dc:date>2023-03-10T09:10:25Z</dc:date>
    <item>
      <title>USB CDC host issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/USB-CDC-host-issue/m-p/1568986#M198688</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am currently trying to setup the usb cdc host on IMXRT1170. I have found one example but I am unable to figure out the working.&amp;nbsp; So what I understood from it is it gets the data from terminal and send it on the usb and vice versa. Now I dont want 32 byte limit. I just want to send and recieve data through code only. So to send data I am using below call:&lt;/P&gt;&lt;P&gt;USB_HostCdcDataSend(g_cdc.classHandle,"This is string\r\n",strlen("This is string\r\n"),&lt;BR /&gt;USB_HostCdcDataOutCallback, &amp;amp;g_cdc);&lt;/P&gt;&lt;P&gt;But for recieve USB_HostCdcDataInCallback should get called irrespective.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you see below function there is recieve call first so it only triggers when I am sending the data.&lt;/P&gt;&lt;P&gt;void USB_HostCdcDataOutCallback(void *param, uint8_t *data, uint32_t dataLength, usb_status_t status)&lt;BR /&gt;{&lt;BR /&gt;freeNodeToQueue(&amp;amp;g_EmptyQueue, g_UsbSendNode);&lt;/P&gt;&lt;P&gt;g_CurrentUsbRecvNode = getNodeFromQueue(&amp;amp;g_EmptySendQueue);&lt;BR /&gt;if (g_CurrentUsbRecvNode)&lt;BR /&gt;{&lt;BR /&gt;g_CurrentUsbRecvNode-&amp;gt;next = NULL;&lt;BR /&gt;g_CurrentUsbRecvNode-&amp;gt;dataLength = dataLength;&lt;BR /&gt;USB_HostCdcDataRecv(g_cdc.classHandle, (uint8_t *)&amp;amp;g_CurrentUsbRecvNode-&amp;gt;buffer[0],&lt;BR /&gt;g_CurrentUsbRecvNode-&amp;gt;dataLength, USB_HostCdcDataInCallback, &amp;amp;g_cdc);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;g_UsbSendNode = getNodeFromQueue(&amp;amp;g_UsbSendQueue);&lt;BR /&gt;if (g_UsbSendNode)&lt;BR /&gt;{&lt;BR /&gt;USB_HostCdcDataSend(g_cdc.classHandle, (uint8_t *)&amp;amp;g_UsbSendNode-&amp;gt;buffer[0], g_UsbSendNode-&amp;gt;dataLength,&lt;BR /&gt;USB_HostCdcDataOutCallback, &amp;amp;g_cdc);&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;g_UsbSendBusy = 0;&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Where is the USB RX interrupt handler. I am new to NXP MCUs and finding it a bit hard as compared to ST.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 12:36:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/USB-CDC-host-issue/m-p/1568986#M198688</guid>
      <dc:creator>starlord1205</dc:creator>
      <dc:date>2022-12-13T12:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: USB CDC host issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/USB-CDC-host-issue/m-p/1572076#M198968</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/209979"&gt;@starlord1205&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I believe this is a duplicate post from a case you entered to our support portal directly. If it is okay with you, I will support your issue directly though the case portal to prevent double answers. Expect my email soon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR,&lt;/P&gt;
&lt;P&gt;Edwin.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2022 20:08:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/USB-CDC-host-issue/m-p/1572076#M198968</guid>
      <dc:creator>EdwinHz</dc:creator>
      <dc:date>2022-12-19T20:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: USB CDC host issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/USB-CDC-host-issue/m-p/1573550#M199122</link>
      <description>&lt;P&gt;Yeah. It will work.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 07:09:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/USB-CDC-host-issue/m-p/1573550#M199122</guid>
      <dc:creator>starlord1205</dc:creator>
      <dc:date>2022-12-22T07:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: USB CDC host issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/USB-CDC-host-issue/m-p/1613051#M202563</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also facing same problem here, if You know the answer please reply&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 09:10:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/USB-CDC-host-issue/m-p/1613051#M202563</guid>
      <dc:creator>Khanajkmal</dc:creator>
      <dc:date>2023-03-10T09:10:25Z</dc:date>
    </item>
  </channel>
</rss>

