<?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 MicrocontrollersのトピックRe: Problem with fsl_usb_framework and PE</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-fsl-usb-framework-and-PE/m-p/332755#M15705</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your environment with MQX? I believe that with MQX, the interrupt handlers are installed at run time and I was able to find an "install" of of _usb_khci_isr in the init process. However, at this time I was not able to determine whether or not it is actually called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did put a breakpoint in the code you suggested and it was never hit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll continue to pursue this, but a secondary question is if anyone can help me narrow down where I can put a breakpoint in MQX to determine the exact source of the interrupt.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Mar 2015 02:12:12 GMT</pubDate>
    <dc:creator>davepfaltzgraff</dc:creator>
    <dc:date>2015-03-20T02:12:12Z</dc:date>
    <item>
      <title>Problem with fsl_usb_framework and PE</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-fsl-usb-framework-and-PE/m-p/332753#M15703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use the combination of HDS/KSDK/PE and MQX to set up a simple USB Host application. My starting point was merely an MQX task that printed an identifying banner. That worked OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I added fsl_usb_framework, the task would never execute. It appears that some interrupt is coming in before control is passed over to my task. To test this idea, I went back to PE and disabled the "Auto Initialization". I know that nothing would get done with the USB, but when my task printed the banner, I knew that it was due to initialization of the component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I went back in and re-enabled it and of course, I'm stuck somewhere in the kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If someone knows what I've done wrong, I'm willing to listen. If not, then I need some help to delve into the lower levels of the processor and find out what is causing the interrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 20:27:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-fsl-usb-framework-and-PE/m-p/332753#M15703</guid>
      <dc:creator>davepfaltzgraff</dc:creator>
      <dc:date>2015-03-19T20:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with fsl_usb_framework and PE</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-fsl-usb-framework-and-PE/m-p/332754#M15704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I *think* that in the default code generated by PE the USB interrupt may not handled. At the same time all unhandled interrupts go to the default IRQ handler.&lt;/P&gt;&lt;P&gt;In my code I just add explicitly this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;void __attribute__((__interrupt__)) USB0_IRQHandler(void)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; _usb_khci_isr();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt; font-family: 'andale mono', times;"&gt;}&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;It is referenced to as a weak link from the startup .S file&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 20:56:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-fsl-usb-framework-and-PE/m-p/332754#M15704</guid>
      <dc:creator>alexfeinman</dc:creator>
      <dc:date>2015-03-19T20:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with fsl_usb_framework and PE</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-fsl-usb-framework-and-PE/m-p/332755#M15705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your environment with MQX? I believe that with MQX, the interrupt handlers are installed at run time and I was able to find an "install" of of _usb_khci_isr in the init process. However, at this time I was not able to determine whether or not it is actually called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did put a breakpoint in the code you suggested and it was never hit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll continue to pursue this, but a secondary question is if anyone can help me narrow down where I can put a breakpoint in MQX to determine the exact source of the interrupt.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 02:12:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-fsl-usb-framework-and-PE/m-p/332755#M15705</guid>
      <dc:creator>davepfaltzgraff</dc:creator>
      <dc:date>2015-03-20T02:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with fsl_usb_framework and PE</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-fsl-usb-framework-and-PE/m-p/332756#M15706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since this was sidelined by the assumption that the problem was an unhandled interrupt and thus bias the thinking, I am closing this issue and moving to &lt;A href="https://community.nxp.com/thread/349123"&gt;_usb_khci_task_create() does not return&lt;/A&gt; which is more focused on the real issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will have to be addressed by someone familiar with the kernel internals.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 14:09:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-fsl-usb-framework-and-PE/m-p/332756#M15706</guid>
      <dc:creator>davepfaltzgraff</dc:creator>
      <dc:date>2015-03-23T14:09:25Z</dc:date>
    </item>
  </channel>
</rss>

