<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>nRF52840 USB MSC + FAT32</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57611/nrf52840-usb-msc-fat32</link><description>Hi, 
 
 I am working on one of my application using nRF52840 DK consisting of USB MSC and NUS. In USB MSC example, 8Mbytes of flash is used as mass storage with FAT (FAT12/16). I want to the nRF840 as mass storage with other system having FAT32 support</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Mar 2020 15:13:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57611/nrf52840-usb-msc-fat32" /><item><title>RE: nRF52840 USB MSC + FAT32</title><link>https://devzone.nordicsemi.com/thread/241197?ContentTypeID=1</link><pubDate>Mon, 23 Mar 2020 15:13:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:622ace24-92aa-4db2-930b-d04b0a3ba2f2</guid><dc:creator>anusha</dc:creator><description>&lt;p&gt;Hi Nikhil,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can refer to the USB MSC example here:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%252Fcom.nordic.infocenter.sdk5.v15.1.0%252Fgroup__ble__sdk__lib__advdata.html&amp;amp;anchor=ga81730d2df43fe79a3e3b27e79f8a3e9e"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%252Fcom.nordic.infocenter.sdk5.v15.1.0%252Fgroup__ble__sdk__lib__advdata.html&amp;amp;anchor=ga81730d2df43fe79a3e3b27e79f8a3e9e&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In this example, you can make&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define USE_SD_CARD     1
#define USE_FATFS_QSPI  0&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also, you need to define fatfs_init() and other functions required to perform read and write operations. You can refer to Sd card example for definition of these functions:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%252Fcom.nordic.infocenter.sdk5.v15.1.0%252Fgroup__ble__sdk__lib__advdata.html&amp;amp;anchor=ga81730d2df43fe79a3e3b27e79f8a3e9e"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%252Fcom.nordic.infocenter.sdk5.v15.1.0%252Fgroup__ble__sdk__lib__advdata.html&amp;amp;anchor=ga81730d2df43fe79a3e3b27e79f8a3e9e&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>