<?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のトピックMinimal USB event detection</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Minimal-USB-event-detection/m-p/727036#M44449</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a bootloader and application running on a K20. When the processor boots it initializes the USB peripheral as a CDC bulk device and then waits 1500ms to see if it enumerates. If it doesn't enumerate I set a flag to boot the application and forget all about USB until the user cycles power.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This worked great until we buried the device in a vehicles engine compartment and connected it directly to the battery. Now its not so easy to cycle power.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I'm looking for a minimal way to sense the bus is active from the application and reset the processor. I had hoped that I could...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enable the USB clock in the SCG&lt;/P&gt;&lt;P&gt;enable USB interrupts in the NVIC&lt;/P&gt;&lt;P&gt;enable USB in the USB0_CTL&lt;/P&gt;&lt;P&gt;enable the AVBUSEN interrupt in the USB0_OTGICR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and reset the processor in the ISR. However, I'm not getting any interrupts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I on the right path? Is there a better way to do this? The goal here is to either fix it in software or come up with a good argument for a new board revision. I really think this is doable in software without setting up the USB peripheral as a bulk device&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Oct 2017 15:24:08 GMT</pubDate>
    <dc:creator>ryanlush</dc:creator>
    <dc:date>2017-10-26T15:24:08Z</dc:date>
    <item>
      <title>Minimal USB event detection</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Minimal-USB-event-detection/m-p/727036#M44449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a bootloader and application running on a K20. When the processor boots it initializes the USB peripheral as a CDC bulk device and then waits 1500ms to see if it enumerates. If it doesn't enumerate I set a flag to boot the application and forget all about USB until the user cycles power.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This worked great until we buried the device in a vehicles engine compartment and connected it directly to the battery. Now its not so easy to cycle power.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I'm looking for a minimal way to sense the bus is active from the application and reset the processor. I had hoped that I could...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enable the USB clock in the SCG&lt;/P&gt;&lt;P&gt;enable USB interrupts in the NVIC&lt;/P&gt;&lt;P&gt;enable USB in the USB0_CTL&lt;/P&gt;&lt;P&gt;enable the AVBUSEN interrupt in the USB0_OTGICR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and reset the processor in the ISR. However, I'm not getting any interrupts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I on the right path? Is there a better way to do this? The goal here is to either fix it in software or come up with a good argument for a new board revision. I really think this is doable in software without setting up the USB peripheral as a bulk device&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 15:24:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Minimal-USB-event-detection/m-p/727036#M44449</guid>
      <dc:creator>ryanlush</dc:creator>
      <dc:date>2017-10-26T15:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Minimal USB event detection</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Minimal-USB-event-detection/m-p/727037#M44450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, sorry for the later reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If K20 as USB CDC device will be always connected to PC or not?&lt;/P&gt;&lt;P&gt;How to check if the USB device enumerated successfully or not, which need to check the USB stack state.&lt;/P&gt;&lt;P&gt;If just to check if the USB device attached to PC, customer can use the USB module interrupt.&lt;/P&gt;&lt;P&gt;Thank you for the attention.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 02:13:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Minimal-USB-event-detection/m-p/727037#M44450</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2017-11-02T02:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Minimal USB event detection</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Minimal-USB-event-detection/m-p/727038#M44451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using the Start of Frame IRQ bit to check for an active connection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 11:54:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Minimal-USB-event-detection/m-p/727038#M44451</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2017-11-02T11:54:30Z</dc:date>
    </item>
  </channel>
</rss>

