<?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>ColdFire/68K Microcontrollers and ProcessorsのトピックRe: USB Attach/Detach Problem</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/USB-Attach-Detach-Problem/m-p/456108#M12650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you have the boot reflash and then tell the user to remove the USB stick? Then the boot should be reset the CPU, resulting in a normal boot.&amp;nbsp; Problem not solved, but avoided. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Jan 2016 12:25:49 GMT</pubDate>
    <dc:creator>TomE</dc:creator>
    <dc:date>2016-01-16T12:25:49Z</dc:date>
    <item>
      <title>USB Attach/Detach Problem</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/USB-Attach-Detach-Problem/m-p/456106#M12648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the MCF51JM128. have two sections of code that run independently.&amp;nbsp; Each section is created as a different CW project using Processor Expert.&amp;nbsp; The first code section is a bootloader that reads from a USB thumbdrive and re-flashes the second main application section.&amp;nbsp; This bootloader uses the USB host stack. I jump from one section to another at the "_startup" address to supposedly initialize everything appropriately.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Normally, after a hard power cycle, the bootloader runs first and checks to see if a re-flashing is required.&amp;nbsp; If no re-flashing is required, it will immediately jump to the main application section. Within the main application I do not use the USB stack. I only monitor the USB attach bit in the INT_STAT register via the interrupt to determine if the user has inserted or removed a thumbdrive to bring up a "software update screen".&amp;nbsp; In this scenario, the attach/detach detection works fine.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem arises when the bootloader does a re-flashing and then jumps to the main application.&amp;nbsp; In this scenario, I continually get an attach event interrupt with or without a thumbdrive inserted (I do clear the interrupt by writting to the INT_STAT register each time).&amp;nbsp; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2015 19:59:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/USB-Attach-Detach-Problem/m-p/456106#M12648</guid>
      <dc:creator>ericd</dc:creator>
      <dc:date>2015-12-01T19:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: USB Attach/Detach Problem</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/USB-Attach-Detach-Problem/m-p/456107#M12649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Eric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not quite understand what your mean the "re-flashing". What the main difference operation between them?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Fang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2016 09:21:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/USB-Attach-Detach-Problem/m-p/456107#M12649</guid>
      <dc:creator>miduo</dc:creator>
      <dc:date>2016-01-14T09:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: USB Attach/Detach Problem</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/USB-Attach-Detach-Problem/m-p/456108#M12650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you have the boot reflash and then tell the user to remove the USB stick? Then the boot should be reset the CPU, resulting in a normal boot.&amp;nbsp; Problem not solved, but avoided. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Jan 2016 12:25:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/USB-Attach-Detach-Problem/m-p/456108#M12650</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2016-01-16T12:25:49Z</dc:date>
    </item>
  </channel>
</rss>

