<?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>topic How to soft-reset USB MSD? in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-soft-reset-USB-MSD/m-p/304452#M20653</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am implementing a USB MSD Bootloader using MC9s08JM32.&lt;/P&gt;&lt;P&gt;After the bootloading process, the MCU will re-enumerate as a MSD device.&lt;/P&gt;&lt;P&gt;I would like to be able to send a command to soft-reset the MSD device at this point. My application is designed in such way that, if I soft-reset it, it will enter User code and enumerate as a HID device.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question: How can I soft-reset a MSD device? By sending raw SCSI command? I do not want to implement a composite USB device, so soft-resetting by sending command to HID endpoint is out of the question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Mar 2014 08:06:26 GMT</pubDate>
    <dc:creator>leesp</dc:creator>
    <dc:date>2014-03-26T08:06:26Z</dc:date>
    <item>
      <title>How to soft-reset USB MSD?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-soft-reset-USB-MSD/m-p/304452#M20653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am implementing a USB MSD Bootloader using MC9s08JM32.&lt;/P&gt;&lt;P&gt;After the bootloading process, the MCU will re-enumerate as a MSD device.&lt;/P&gt;&lt;P&gt;I would like to be able to send a command to soft-reset the MSD device at this point. My application is designed in such way that, if I soft-reset it, it will enter User code and enumerate as a HID device.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question: How can I soft-reset a MSD device? By sending raw SCSI command? I do not want to implement a composite USB device, so soft-resetting by sending command to HID endpoint is out of the question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 08:06:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-soft-reset-USB-MSD/m-p/304452#M20653</guid>
      <dc:creator>leesp</dc:creator>
      <dc:date>2014-03-26T08:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to soft-reset USB MSD?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-soft-reset-USB-MSD/m-p/304453#M20654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Lee,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you mean with &lt;EM&gt;soft-reset&lt;/EM&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you are pretending to &lt;STRONG&gt;restart the USB module&lt;/STRONG&gt;, you may refer to the following recommendations:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.Set the &lt;STRONG&gt;USBRESET&lt;/STRONG&gt; bit from the USB Control Register 0 (USBCTL0).&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;2. Set the &lt;STRONG&gt;USBPU&lt;/STRONG&gt; bit from the USB Control Register 0 (USBCTL0).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find more detailed information at the &lt;A href="http://cache.nxp.com/files/microcontrollers/doc/data_sheet/MC9S08JM60.pdf?fpsp=1&amp;amp;WT_TYPE=Data%20Sheets&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.pdf" title="http://cache.nxp.com/files/microcontrollers/doc/data_sheet/MC9S08JM60.pdf?fpsp=1&amp;amp;WT_TYPE=Data%20Sheets&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.pdf"&gt;MC9S08JM32 datasheet&lt;/A&gt; , especially at &lt;STRONG&gt;chapter 17.3.1&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="USB reset.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/22490iC963932498F54F8E/image-size/large?v=v2&amp;amp;px=999" role="button" title="USB reset.jpg" alt="USB reset.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this information will be useful for you.&lt;/P&gt;&lt;P&gt;If I misunderstood your question, feel free to let me know.&amp;nbsp; I will be glad to help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day.&lt;/P&gt;&lt;P&gt;David Diaz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 01:43:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-soft-reset-USB-MSD/m-p/304453#M20654</guid>
      <dc:creator>david_diaz</dc:creator>
      <dc:date>2016-03-10T01:43:28Z</dc:date>
    </item>
  </channel>
</rss>

