<?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>Processor Expert Software中的主题 Re: USB Host Processor Expert Callback</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/USB-Host-Processor-Expert-Callback/m-p/269396#M1742</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Farhan!&lt;/P&gt;&lt;P&gt;Sorry for the delay of the response, was that the final workaround? Please share qith us, we'd like to know :smileywink:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Monica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Jun 2013 20:13:03 GMT</pubDate>
    <dc:creator>Monica</dc:creator>
    <dc:date>2013-06-24T20:13:03Z</dc:date>
    <item>
      <title>USB Host Processor Expert Callback</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/USB-Host-Processor-Expert-Callback/m-p/269394#M1740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried the PE USB Host component on both the Freedom and Tower K20 boards and can't get the callbacks to work. The regular non-PE library works. I am using USB Stack 4.0.3. Here's how the code works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ProcessorExpert.c, I have a main loop that includes the "Poll" function. Before the main loop starts, it calls an initialization function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the initialization function, I call:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Poll_Init&lt;/P&gt;&lt;P&gt;USB_lock&lt;/P&gt;&lt;P&gt;_usb_host_init = returns USB_OK&lt;/P&gt;&lt;P&gt;_usb_host_register_service = returns USB_OK&lt;/P&gt;&lt;P&gt;USB_unlock&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just wanted to test the basic ATTACH event callback. I am not using _usb_host_driver_info_register on purpose. When I plug in a device, I can see it getting power but the callback isn't fired. I even tried registering error callbacks, and still nothing. I have also tried the complete processor expert examples with their HID code (for example) and it doesn't seem to work. Is there some other setting needed in the PE USB Host component to get callbacks to work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on previous experience with PE, there must be some subtle setting changes required or function calls needed before it works. Anyone have any experience with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I don't want to use &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;_usb_host_driver_info_register. If I did, I would use that code (although I have tried the samples).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thanks!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Jun 2013 20:59:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/USB-Host-Processor-Expert-Callback/m-p/269394#M1740</guid>
      <dc:creator>FarhanH</dc:creator>
      <dc:date>2013-06-02T20:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: USB Host Processor Expert Callback</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/USB-Host-Processor-Expert-Callback/m-p/269395#M1741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm guessing that &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;_usb_host_register_service&lt;/SPAN&gt; won't work without the driver registration. I will look at the lower level libraries (ch 9) to see if those work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2013 19:54:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/USB-Host-Processor-Expert-Callback/m-p/269395#M1741</guid>
      <dc:creator>FarhanH</dc:creator>
      <dc:date>2013-06-03T19:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: USB Host Processor Expert Callback</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/USB-Host-Processor-Expert-Callback/m-p/269396#M1742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Farhan!&lt;/P&gt;&lt;P&gt;Sorry for the delay of the response, was that the final workaround? Please share qith us, we'd like to know :smileywink:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Monica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jun 2013 20:13:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/USB-Host-Processor-Expert-Callback/m-p/269396#M1742</guid>
      <dc:creator>Monica</dc:creator>
      <dc:date>2013-06-24T20:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: USB Host Processor Expert Callback</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/USB-Host-Processor-Expert-Callback/m-p/269397#M1743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Monica,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found two things. The first is that the USB interrupts don't get called when I use the USB Host PE component, that's why it doesn't respond to USB events. While stepping through the code it looks like the interrupt registers that should be on are on. I have tried this on both the FRDM and TWR K20 boards with the same result. I am not sure why this is happening, so I am stuck using the non-PE host stack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second, there is incompatibility with some devices using the USB stack. Specifically, a call to get string descriptors hangs the program. I posted the devices I tested in another topic but the string descriptor issue was with some Sony USB flash drives. Again, not sure why getting string descriptors works on some devices but not on others. I tested all the devices on a PC using microsoft's USB tool to confirm the strings. I used code from Derek (modified slightly), which integrated the code to get a string descriptor in the enumeration process. In my production project I would prefer not to modify the enumeration process with this code and just simply use a ch9 call (as stated in the original post) to get the strings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2013 17:53:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/USB-Host-Processor-Expert-Callback/m-p/269397#M1743</guid>
      <dc:creator>FarhanH</dc:creator>
      <dc:date>2013-07-01T17:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: USB Host Processor Expert Callback</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/USB-Host-Processor-Expert-Callback/m-p/269398#M1744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for sharing.&lt;/P&gt;&lt;P&gt;I'll make sure your feedback goes through to improve our services.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is great to have your contributions, Farhan!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Monica.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2013 23:12:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/USB-Host-Processor-Expert-Callback/m-p/269398#M1744</guid>
      <dc:creator>Monica</dc:creator>
      <dc:date>2013-07-01T23:12:22Z</dc:date>
    </item>
  </channel>
</rss>

