<?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>Kinetis Software Development Kit中的主题 Re: USB Host Rec Data Callback</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-Host-Rec-Data-Callback/m-p/435082#M2659</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 just saw your another thread of &lt;A href="https://community.nxp.com/thread/352945"&gt;USB host K64F Please Help&lt;/A&gt; which had some suggestion from &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/ivadorazinova"&gt;ivadorazinova&lt;/A&gt; , so how is the issue now? is the problem still there? Please kindly help to clarify. Thanks for your patience!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Apr 2015 05:34:05 GMT</pubDate>
    <dc:creator>Kan_Li</dc:creator>
    <dc:date>2015-04-30T05:34:05Z</dc:date>
    <item>
      <title>USB Host Rec Data Callback</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-Host-Rec-Data-Callback/m-p/435081#M2658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the K64F platform with KDS 2.0 w/ KSDK 1.1 along with the component fsl_usb_framework.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know why my usb_host_recv_data() callback that I pass in only gets hit sometimes?&amp;nbsp; And only the first call I make to it?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a snippet (for clarity sake, I removed my error handling):&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// open my pipe (INTERRUPT PIPE RECV)&lt;/P&gt;&lt;P&gt;usb_host_open_pipe(usbFmw1_Handler, &amp;amp;pipeIn, &amp;amp;pipe_init)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// get tr structure and pass in my callback (which gets setup in my tr structure)&lt;/P&gt;&lt;P&gt;tr_struct_t* tr_ptr2;&lt;/P&gt;&lt;P&gt;usb_host_get_tr(usbFmw1_Handler, read_done, NULL, &amp;amp;tr_ptr2)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// setup my receive buffer and size&lt;/P&gt;&lt;P&gt;tr_ptr2-&amp;gt;rx_buffer = readbuf;&lt;/P&gt;&lt;P&gt;tr_ptr2-&amp;gt;rx_length = 1024;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// call recv&lt;/P&gt;&lt;P&gt;usb_host_recv_data(usbFmw1_Handler, pipeIn, tr_ptr2&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;typically if I have a breakpoint set at usb_host_recv_data; my callback for read_done will be called with a status of 0x0.&amp;nbsp; All good.&amp;nbsp; If I don't have a breakpoint, my callback never gets hit.&amp;nbsp; If I try and call these functions again after the callback then I never get a second hit into read_done callback.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea why my callback is sometimes working the first time around and never called the second time?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm thinking I have to loop constantly waiting for data (I have a USB device with buttons).&amp;nbsp; It'd be great if it was a blocking call and just sat till data came across the line.&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;Jeff.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 00:25:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-Host-Rec-Data-Callback/m-p/435081#M2658</guid>
      <dc:creator>jeffking</dc:creator>
      <dc:date>2015-04-23T00:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: USB Host Rec Data Callback</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-Host-Rec-Data-Callback/m-p/435082#M2659</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 just saw your another thread of &lt;A href="https://community.nxp.com/thread/352945"&gt;USB host K64F Please Help&lt;/A&gt; which had some suggestion from &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/ivadorazinova"&gt;ivadorazinova&lt;/A&gt; , so how is the issue now? is the problem still there? Please kindly help to clarify. Thanks for your patience!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 05:34:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-Host-Rec-Data-Callback/m-p/435082#M2659</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2015-04-30T05:34:05Z</dc:date>
    </item>
  </channel>
</rss>

