<?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 Re: nxpUSBlib MassStorageDevice support FAT32 ? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/nxpUSBlib-MassStorageDevice-support-FAT32/m-p/524366#M7002</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tepytec on Tue Oct 16 22:55:50 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I think I misunderstood your description the first time; So you want to read SD-card through USB connection on PC?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In that case I think that you do not even need file system. Just map USB bulk read/write to SD-card read/write commands, and PC handles the file system. (Can somebody confirm this?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But if you want to also read SD-card files inside the device, then you need a file system, but that has nothing to do with the nxpUSBlib. If you do this, SD-card must not be accessed by the USB and the device FAT library at the same time, or file system might get corrupted.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 16:51:25 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T16:51:25Z</dc:date>
    <item>
      <title>nxpUSBlib MassStorageDevice support FAT32 ?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/nxpUSBlib-MassStorageDevice-support-FAT32/m-p/524362#M6998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by honphylin on Sun Oct 14 19:23:42 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Dear NXP:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In our example, DEVICE mass storage only support FAT12. In fact, in many applicatons, we need to use FAT32, for example, the NANDFlash or SD/MMC card through USB Device, is mounted on the a PC.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I would like to our nxpUSBlib, when support for USB Device Mass Storage FAT32?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:51:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/nxpUSBlib-MassStorageDevice-support-FAT32/m-p/524362#M6998</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: nxpUSBlib MassStorageDevice support FAT32 ?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/nxpUSBlib-MassStorageDevice-support-FAT32/m-p/524363#M6999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by honphylin on Sun Oct 14 19:26:31 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to ask, our nxpUSBlib, when support for USB Device Mass Storage FAT32?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:51:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/nxpUSBlib-MassStorageDevice-support-FAT32/m-p/524363#M6999</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: nxpUSBlib MassStorageDevice support FAT32 ?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/nxpUSBlib-MassStorageDevice-support-FAT32/m-p/524364#M7000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tepytec on Sun Oct 14 23:21:29 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;You probably have to write FAT32 support yourself, or use existing library, such as FatFs ( &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Felm-chan.org%2Ffsw%2Fff%2F00index_e.html" rel="nofollow" target="_blank"&gt;http://elm-chan.org/fsw/ff/00index_e.html&lt;/A&gt;&lt;SPAN&gt; ).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:51:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/nxpUSBlib-MassStorageDevice-support-FAT32/m-p/524364#M7000</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: nxpUSBlib MassStorageDevice support FAT32 ?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/nxpUSBlib-MassStorageDevice-support-FAT32/m-p/524365#M7001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by honphylin on Mon Oct 15 07:35:21 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Tks. I can quickly support Fatfs in my board, however, the combination of USB devce and NAND,SD/MMC,Fatfs, I need some time. If these are integrated together by NXP, will save me a lot of time to do the application.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:51:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/nxpUSBlib-MassStorageDevice-support-FAT32/m-p/524365#M7001</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: nxpUSBlib MassStorageDevice support FAT32 ?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/nxpUSBlib-MassStorageDevice-support-FAT32/m-p/524366#M7002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tepytec on Tue Oct 16 22:55:50 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I think I misunderstood your description the first time; So you want to read SD-card through USB connection on PC?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In that case I think that you do not even need file system. Just map USB bulk read/write to SD-card read/write commands, and PC handles the file system. (Can somebody confirm this?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But if you want to also read SD-card files inside the device, then you need a file system, but that has nothing to do with the nxpUSBlib. If you do this, SD-card must not be accessed by the USB and the device FAT library at the same time, or file system might get corrupted.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:51:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/nxpUSBlib-MassStorageDevice-support-FAT32/m-p/524366#M7002</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: nxpUSBlib MassStorageDevice support FAT32 ?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/nxpUSBlib-MassStorageDevice-support-FAT32/m-p/524367#M7003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by honphylin on Sun Oct 21 19:59:48 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for you replay. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have anybody, throught USB, mount SD-card to PC, and use FAT32 interface. In the NXP example, only achieved FAT12, below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;void InitializeFAT12(DISKIMAGE *DiskImagePtr)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;int i;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SetFAT12Entry(DiskImagePtr, 1, 0xfff);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for(i = 0; i &amp;lt; ((DiskImagePtr-&amp;gt;BootSector.BPB_TotSec16 - StartDataRegion / BytesPerSector) / DiskImagePtr-&amp;gt;BootSector.BPB_SecPerClus); i++)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (!i)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DiskImagePtr-&amp;gt;DirectoryEntries[1].startCluster = 2;// Startcluster is always 2 as defined by FAT12&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SetFAT12Entry(DiskImagePtr, i + 1, i + 2);// 2 represents the&amp;nbsp; startcluster (which is fixed by definition)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SetFAT12Entry(DiskImagePtr, i + 2, 0xfff);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DiskImagePtr-&amp;gt;DirectoryEntries[1].fileSize += BYTESPERCLUSTER;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;InitializeDiskDiskImage(DiskImagePtr);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;void InitializeFAT16(DISKIMAGE *DiskImagePtr)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;void InitializeFAT32(DISKIMAGE *DiskImagePtr)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another, fact, i also need a NAND FTL layer, use for manage NANDFlash.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:51:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/nxpUSBlib-MassStorageDevice-support-FAT32/m-p/524367#M7003</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: nxpUSBlib MassStorageDevice support FAT32 ?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/nxpUSBlib-MassStorageDevice-support-FAT32/m-p/524368#M7004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by javos on Mon Oct 22 04:54:59 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;What tepytec says is right. You only need to give read/write commands through USB, the PC will give you the file system when formating.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now if you need to read/write file from your device, then you need a File system library like FatFs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;anyway, be care that nxpUSBlib (v0.97) is not supporting Mass Storage Class for external Flash like SD, or any other. Please see &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Fmass-storage-device-msd-external-spi-flash-sst25vf064c-ussing-lpc1769" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/forum/mass-storage-device-msd-external-spi-flash-sst25vf064c-ussing-lpc1769&lt;/A&gt;&lt;SPAN&gt;. Only for RAM like in example.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it help!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:51:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/nxpUSBlib-MassStorageDevice-support-FAT32/m-p/524368#M7004</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:51:27Z</dc:date>
    </item>
  </channel>
</rss>

