<?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>nRF5 MSC Example with QSPI + SD Card</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70802/nrf5-msc-example-with-qspi-sd-card</link><description>Dear all, 
 I am trying to run the MSC example in order to learn how to develop an application with MSC capabilities in the future. I have already run the example in its default configuration and I have also created the SD Card supplementary functions</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 28 Jan 2021 08:37:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70802/nrf5-msc-example-with-qspi-sd-card" /><item><title>RE: nRF5 MSC Example with QSPI + SD Card</title><link>https://devzone.nordicsemi.com/thread/291697?ContentTypeID=1</link><pubDate>Thu, 28 Jan 2021 08:37:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd8f19d3-a1c8-462f-8e57-398d6914bf67</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Aris&lt;/p&gt;
&lt;p&gt;I am happy to help, I only wish I had better news for you ;)&lt;/p&gt;
&lt;p&gt;I wish you the best of luck with your project &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 MSC Example with QSPI + SD Card</title><link>https://devzone.nordicsemi.com/thread/291567?ContentTypeID=1</link><pubDate>Wed, 27 Jan 2021 15:17:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecd34048-9848-475f-93df-8554214d5320</guid><dc:creator>Aris</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thank you very much for your response. I understand now.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Aris.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 MSC Example with QSPI + SD Card</title><link>https://devzone.nordicsemi.com/thread/291485?ContentTypeID=1</link><pubDate>Wed, 27 Jan 2021 12:12:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cccd47fd-ccf9-4b6b-8465-d0faef7acafb</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So if I understand you correctly you want to use the fatFS module in parallel both for the SD card and the external memory card?&lt;/p&gt;
&lt;p&gt;Unfortunately this is not possible, as the fat library used in the SDK doesn&amp;#39;t have a concept of&amp;nbsp;multiple users where you can initialize it several times for different users/contexts.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Basically you would have to uninitialize the current disk and initialize the other one each time you want to change from accessing one or the other.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 MSC Example with QSPI + SD Card</title><link>https://devzone.nordicsemi.com/thread/291045?ContentTypeID=1</link><pubDate>Mon, 25 Jan 2021 13:32:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b062f0f4-4719-45ea-8734-2f8c61dedb25</guid><dc:creator>Aris</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thank you for your reply. Actually, I do not mean that. I want to use both QSPI Flash and an external SD Card as mass storages.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The correct way is to initialize the SD Card is like the one implemented for the initialzation of QSPI? What modifications should I do ?&lt;/p&gt;
&lt;p&gt;For example I have created the following SD Card Init Function:&lt;/p&gt;
&lt;p&gt;static bool fatfs_initSD(void)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; FRESULT ff_result;&lt;br /&gt;&amp;nbsp; DSTATUS disk_state = STA_NOINIT;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;//&lt;br /&gt;&amp;nbsp; &amp;nbsp;// Initialize FATFS disk I/O interface by providing the block device.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;strong&gt;&amp;lt;--------------- Is the Initialization of the&amp;nbsp; &amp;nbsp; &amp;nbsp;//&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FatFs correct ?&lt;/strong&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; static diskio_blkdev_t drives[] =&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; DISKIO_BLOCKDEV_CONFIG(NRF_BLOCKDEV_BASE_ADDR(m_block_dev_sdc, block_dev), NULL)&lt;br /&gt;&amp;nbsp; };&lt;/p&gt;
&lt;p&gt;&amp;nbsp; diskio_blockdev_register(drives, ARRAY_SIZE(drives));&lt;/p&gt;
&lt;p&gt;&amp;nbsp; NRF_LOG_INFO(&amp;quot;Initializing disk 1 (SD)...&amp;quot;);&lt;br /&gt;&amp;nbsp; for (uint32_t retries = 3; retries &amp;amp;&amp;amp; disk_state; --retries)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; disk_state = disk_initialize(0);&lt;br /&gt;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp; if (disk_state)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; NRF_LOG_ERROR(&amp;quot;SD Card Disk initialization failed.&amp;quot;);&lt;br /&gt;&amp;nbsp; &amp;nbsp; return false;&lt;br /&gt;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp; NRF_LOG_INFO(&amp;quot;Mounting SD volume...&amp;quot;);&lt;br /&gt;&amp;nbsp; ff_result = f_mount(&amp;amp;m_filesystem_SD, &amp;quot;1:&amp;quot;, 1);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;strong&gt;// &amp;lt;------------------------------ Is this Correct, if the default disk is&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;assigned to the QSPI Flash volume?&lt;/strong&gt;&lt;br /&gt;&amp;nbsp; if (ff_result != FR_OK)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if (ff_result == FR_NO_FILESYSTEM)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NRF_LOG_ERROR(&amp;quot;Mount failed. SD Filesystem not found. Please format device.&amp;quot;);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;else&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NRF_LOG_ERROR(&amp;quot;SD Mount failed: %u&amp;quot;, ff_result);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return false;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; return true;&lt;br /&gt;} // End Of fatfs_initSD()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 MSC Example with QSPI + SD Card</title><link>https://devzone.nordicsemi.com/thread/291026?ContentTypeID=1</link><pubDate>Mon, 25 Jan 2021 12:48:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:908a09cf-c8c4-4ed8-8fc1-3ba1f66f4c97</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Aris&lt;/p&gt;
&lt;p&gt;If you mean you want to be able to access the card from the PC over USB and locally from the nRF device at the same time, then this is not possible unfortunately.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The MSC class does not support multiple users accessing the flash device at the same time, this is a limitation in the specification.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In a similar way, if you connect a phone, camera or other accessory to your PC over MSC to access the memory card the card will no longer be available from the phone until you disconnect the PC.&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>