<?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 USB ROM and MSC with removable devices and multiple LUNs in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-ROM-and-MSC-with-removable-devices-and-multiple-LUNs/m-p/525633#M8269</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mubes on Sat Apr 12 04:32:21 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Folks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using the LPC13Uxx USB ROM to implement a composite device, one element of which is a MSC driver.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately the MSC is talking 'through' to a SD card which could, on occasion, not be present, or could be removed during operation...it could also be replaced with another one I guess. I also have some on-board memory that it would be nice to export on a separate LUN.&amp;nbsp; The 'default' MSC handler (header in mw_usbd_mscuser.h) is a simple in/out affair that doesn't seem to cope with these scenarios.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Intriguingly, there is the facility to incorporate a custom Ep0 handler and the SCSI definitions too (in MSC_CTRL_T) which I suspect can be used to do what I need without having to hack up an entire stack.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, the question is; can anyone point me in the right direction for examples or documentation to do such a thing?&amp;nbsp; There's a _lot_ of docs around for the usb stuff, but it all seems a big mass to someone just wading through this...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for any help anyone can offer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;DAVE&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 16:56:12 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T16:56:12Z</dc:date>
    <item>
      <title>USB ROM and MSC with removable devices and multiple LUNs</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-ROM-and-MSC-with-removable-devices-and-multiple-LUNs/m-p/525633#M8269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mubes on Sat Apr 12 04:32:21 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Folks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using the LPC13Uxx USB ROM to implement a composite device, one element of which is a MSC driver.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately the MSC is talking 'through' to a SD card which could, on occasion, not be present, or could be removed during operation...it could also be replaced with another one I guess. I also have some on-board memory that it would be nice to export on a separate LUN.&amp;nbsp; The 'default' MSC handler (header in mw_usbd_mscuser.h) is a simple in/out affair that doesn't seem to cope with these scenarios.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Intriguingly, there is the facility to incorporate a custom Ep0 handler and the SCSI definitions too (in MSC_CTRL_T) which I suspect can be used to do what I need without having to hack up an entire stack.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, the question is; can anyone point me in the right direction for examples or documentation to do such a thing?&amp;nbsp; There's a _lot_ of docs around for the usb stuff, but it all seems a big mass to someone just wading through this...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for any help anyone can offer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;DAVE&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:56:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-ROM-and-MSC-with-removable-devices-and-multiple-LUNs/m-p/525633#M8269</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:56:12Z</dc:date>
    </item>
  </channel>
</rss>

