<?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>USB MSC code, windows not able to access drive.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98683/usb-msc-code-windows-not-able-to-access-drive</link><description>I am using the USB MSC code in my project. The project works fine and I am able to see the file system mounted and file being created in the logs. When I plug in the device into my laptop, I can see the device as a drive. However, when I click to access</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 May 2023 09:19:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98683/usb-msc-code-windows-not-able-to-access-drive" /><item><title>RE: USB MSC code, windows not able to access drive.</title><link>https://devzone.nordicsemi.com/thread/428108?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 09:19:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d28ec7b5-4114-4c60-a92b-7665026cbef2</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi again&lt;/p&gt;
&lt;p&gt;Thank you for the update. Not able to see any obvious errors from your main file either, but I have a few more clarifications to make.&lt;/p&gt;
&lt;p&gt;You haven&amp;#39;t ran this project on a Development Kit at all, correct?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Since you have two slaves on the same bus, that might add some capacitance on the lines, so if the frequency you run on is too high, that might cause trouble. What frequency are you running the SPI on? You can try lowering it to 250 kHz for example to see if that helps at all.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any chance you have an oscilloscope? If so, it would be helpful to see a scope plot of the SPI lines to see if everything makes sense logically.&lt;/p&gt;
&lt;p&gt;We can also do a schematic/PCB layout review of your HW if you&amp;#39;d like to make sure that everything looks to be set up correctly. You can either make a new private case where you upload schematic and .gerber files, or we can make this one private so you can share the files here. Let me know if that&amp;#39;s the case and I&amp;#39;ll set this case to private.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC code, windows not able to access drive.</title><link>https://devzone.nordicsemi.com/thread/427638?ContentTypeID=1</link><pubDate>Fri, 26 May 2023 04:26:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5648c43d-bf28-4dc0-96d9-74cc4fe17eaf</guid><dc:creator>Ash-tink</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I have already used this function in my code. Please take a look at this file. I have used the format function &amp;quot;&lt;span&gt;f_mkfsI()&amp;quot;&lt;/span&gt;&amp;nbsp;inside the &amp;quot;fatfs_init()&amp;quot; function.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/34257143.main.c"&gt;devzone.nordicsemi.com/.../34257143.main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC code, windows not able to access drive.</title><link>https://devzone.nordicsemi.com/thread/426948?ContentTypeID=1</link><pubDate>Tue, 23 May 2023 13:13:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d82ee841-add1-49c6-bbb6-c594663849c0</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The file system will need to be formatted in order for the device to be able to mount the file system and operate correctly. If it&amp;#39;s not already formatted you can use the f_mkfsI() function to format your drive. That function is documented here:&amp;nbsp;&lt;a href="http://elm-chan.org/fsw/ff/doc/mkfs.html"&gt;http://elm-chan.org/fsw/ff/doc/mkfs.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC code, windows not able to access drive.</title><link>https://devzone.nordicsemi.com/thread/425834?ContentTypeID=1</link><pubDate>Tue, 16 May 2023 11:13:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab6f2a2a-a0ed-4a33-b131-ad06aeae7d10</guid><dc:creator>Ash-tink</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;The device is connected to the computer using USB port. We are not manipulating the file system when the USB is connected. All we are trying to do is to open the USB drive which is detected on the laptop. But the computer asks us to format the drive. The logs were captured on the RTT terminal.&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards,&lt;/p&gt;
&lt;p&gt;Snehal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC code, windows not able to access drive.</title><link>https://devzone.nordicsemi.com/thread/425598?ContentTypeID=1</link><pubDate>Mon, 15 May 2023 11:55:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46b07b90-d4d1-447e-b792-3c96ef904513</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Hmm, okay. From the USB MSC example project, the testing &amp;quot;steps&amp;quot; are working as intended for the first 5 or so steps, correct? So your device is connected to the computer using UART and a COM port? Then how do you switch to use the nRF USB peripheral to let the host computer format and open the disk instances? Manipulating the file system will not be possible while the USB is connected, and vice versa.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC code, windows not able to access drive.</title><link>https://devzone.nordicsemi.com/thread/424756?ContentTypeID=1</link><pubDate>Wed, 10 May 2023 09:10:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a88022e7-8459-44ea-972f-a29e8cdc7854</guid><dc:creator>Ash-tink</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The pins which we have used are as follows:-&lt;/p&gt;
&lt;table width="147"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width="64"&gt;P0.21&lt;/td&gt;
&lt;td width="83"&gt;SPI_SS_USB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;P0.22&lt;/td&gt;
&lt;td&gt;SPI_SS&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;P0.23&lt;/td&gt;
&lt;td&gt;SPI_MOSI&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;P0.24&lt;/td&gt;
&lt;td&gt;SPI_MISO&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;P0.25&lt;/td&gt;
&lt;td&gt;SPI_CLK&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;P0.26&lt;/td&gt;
&lt;td&gt;SPI_WP&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;P0.27&lt;/td&gt;
&lt;td&gt;SPI_HOLD&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;P0.15&lt;/td&gt;
&lt;td&gt;SPI_SS_FLSH&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In my firmware P0.21 is not configured as we are currently working only on Flash chip.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC code, windows not able to access drive.</title><link>https://devzone.nordicsemi.com/thread/424723?ContentTypeID=1</link><pubDate>Wed, 10 May 2023 07:42:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:316f8e62-db48-44a7-a3ab-1e158dad1928</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Hmm, okay. Can you share what pins you&amp;#39;re using for the&amp;nbsp;&lt;span&gt;CS,MISO,MOSI,SCK,WP and HOLD pins in your project? I&amp;#39;m running out of ideas as to what the issue could be I&amp;#39;m afraid.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC code, windows not able to access drive.</title><link>https://devzone.nordicsemi.com/thread/424399?ContentTypeID=1</link><pubDate>Tue, 09 May 2023 04:43:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e73295b-c480-4922-aed0-bf05bc8e4012</guid><dc:creator>Ash-tink</dc:creator><description>&lt;p&gt;Hi Simonr,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Yes I have converted the drivers from QSPI to SPI. I am not using the QSPI drivers. For connection we are using CS,MISO,MOSI,SCK,WP and HOLD pins for connection.&lt;/p&gt;
&lt;p&gt;In the hardware we have 2 IC on SPI interface. one is Flash chip and other is MAX3421e. We are controlling both the IC using the chip select pin. Currently in my firmware I have configured only 1 SPI and controlling it via CS pin.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Snehal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC code, windows not able to access drive.</title><link>https://devzone.nordicsemi.com/thread/424285?ContentTypeID=1</link><pubDate>Mon, 08 May 2023 12:58:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db4986d2-8aba-42a7-bd6a-9890ab4422a2</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I notice that the AT25 does not support QSPI, which is what the USB MSC example is using by default. Have you made changes to the example in order to use normal SPI and not QSPI? If you&amp;#39;re trying to enable quad mode on a flash device that doesn&amp;#39;t support it that explains why you&amp;#39;re not able to mount correctly. Is your flash device connected with one or two data lines in HW on your end?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC code, windows not able to access drive.</title><link>https://devzone.nordicsemi.com/thread/423905?ContentTypeID=1</link><pubDate>Fri, 05 May 2023 07:58:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac9ab4b2-b09a-434a-a665-35c104e06397</guid><dc:creator>Ash-tink</dc:creator><description>&lt;p&gt;Hi Simonr,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The&amp;nbsp;&lt;span&gt;nRF52840 SoC is operated by 3V. We are using AT25DF041B-MAHN-T as external flash drive. The flash drive will support from 1.6V -3.6V range. You can find the details of this flash chip in the below mentioned link.&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&amp;nbsp;&lt;a id="m_-4578313993750166199LPlnkOWALinkPreview" href="https://www.digikey.in/en/products/detail/renesas-electronics-operations-services-limited/AT25DF041B-MAHN-T/6827489" rel="noopener noreferrer" target="_blank" data-saferedirecturl="https://www.google.com/url?q=https://www.digikey.in/en/products/detail/renesas-electronics-operations-services-limited/AT25DF041B-MAHN-T/6827489&amp;amp;source=gmail&amp;amp;ust=1683359671123000&amp;amp;usg=AOvVaw1yajuadi83zI5FVkXEFLQi"&gt;https://www.digikey.in/en/products/detail/renesas-electronics-operations-services-limited/AT25DF041B-MAHN-T/6827489&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Please let me know if this helps or you will still need to check the schematic files.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Thanks.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC code, windows not able to access drive.</title><link>https://devzone.nordicsemi.com/thread/423667?ContentTypeID=1</link><pubDate>Thu, 04 May 2023 06:57:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2dfb501d-d99a-45a6-bdf7-918a82c3b752</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Sorry, not the formatting, the&amp;nbsp;&lt;strong&gt;Mount&lt;/strong&gt; failed because the file system can&amp;#39;t be found for some reason. What voltage is your custom board running on, and what voltages does the external flash device support? There might be a discrepancy here causing these issues. If you&amp;#39;d like we can do a HW review of your design to make sure that everything looks okay on your custom board as well. If you&amp;#39;d like to, let me know and I&amp;#39;ll set this case to private mode so its contents will only be visible to yourself and Nordic engineers as I assume you don&amp;#39;t want to share HW files publicly. Then you can upload schematics as a .pdf and layout files as gerber files for us to review.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC code, windows not able to access drive.</title><link>https://devzone.nordicsemi.com/thread/423309?ContentTypeID=1</link><pubDate>Tue, 02 May 2023 13:07:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8d49a26-86fa-4b39-aaf0-2bd3c9a3e625</guid><dc:creator>Ash-tink</dc:creator><description>&lt;p&gt;On the development kit I have tried testing&amp;nbsp;using the sdk sample code&amp;nbsp;and it works fine with the flash chip on dev kit. I am not sure why it is not working on my custom board. I am accessing the drive only through 1 user.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You said &amp;quot;&lt;span&gt;The formatting still seems to fail for some reason, which could be the workbuffer being incorrect.&amp;quot; Where did you see that?? In the logs it does format and creates a new file again.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC code, windows not able to access drive.</title><link>https://devzone.nordicsemi.com/thread/423285?ContentTypeID=1</link><pubDate>Tue, 02 May 2023 12:17:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a90ece59-cef7-4ad8-99b6-3b3b7d33132d</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The .&lt;strong&gt;size&lt;/strong&gt; should indeed be &lt;strong&gt;524288&lt;/strong&gt;. I think the workbuffer size and block size should be set in the external flash data sheet. The formatting still seems to fail for some reason, which could be the workbuffer being incorrect. But can you try recreating this on an nRF52840 DK if you have one available?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Worth noting that t&lt;span&gt;he MSC example project does not support multiple users accessing the flash device at the same time, this is a limitation in the specification if you&amp;#39;re trying to do that.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC code, windows not able to access drive.</title><link>https://devzone.nordicsemi.com/thread/423175?ContentTypeID=1</link><pubDate>Tue, 02 May 2023 06:55:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:240ad6dc-ee42-46a6-9caa-58bb9cd80a5b</guid><dc:creator>Ash-tink</dc:creator><description>&lt;p&gt;I have also added some logs in the usb msc drivers to check for any errors. I have attached the log file here. Can you please help me debugging it?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/RTT_2D00_DEBUG1.log"&gt;devzone.nordicsemi.com/.../RTT_2D00_DEBUG1.log&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC code, windows not able to access drive.</title><link>https://devzone.nordicsemi.com/thread/423169?ContentTypeID=1</link><pubDate>Tue, 02 May 2023 06:29:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d61af499-f5ab-469d-8350-ae7fc2c10eae</guid><dc:creator>Ash-tink</dc:creator><description>&lt;p&gt;Thanks for your reply.&amp;nbsp; So that means the&amp;nbsp;.size&amp;nbsp;will be set to&amp;nbsp; 524288. Now for setting&amp;nbsp;&lt;strong&gt;MSC_WORKBUFFER_SIZE, how can we determine the size of a single block?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;If we set the config as follows:-&lt;/p&gt;
&lt;p&gt;NRF_BLOCK_DEV_SPI_DEFINE(&lt;br /&gt; m_block_dev_spi,&lt;br /&gt; NRF_BLOCK_DEV_SPI_CONFIG(&lt;br /&gt; 512,&lt;br /&gt; NRF_BLOCK_DEV_SPI_FLAG_CACHE_WRITEBACK,&lt;br /&gt; NRF_DRV_SPI_DEFAULT_CONFIG&lt;br /&gt; ),&lt;br /&gt; NFR_BLOCK_DEV_INFO_CONFIG(&amp;quot;Nordic&amp;quot;, &amp;quot;SPI&amp;quot;, &amp;quot;1.00&amp;quot;)&lt;br /&gt;);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;then the block size will be 512??&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So&amp;nbsp;MSC_WORKBUFFER_SIZE should be set to 1024 right?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But even after doing these settings I am still not able to access drive through laptop.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC code, windows not able to access drive.</title><link>https://devzone.nordicsemi.com/thread/421421?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2023 09:09:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5063af87-f691-402c-95f2-9fc651ecd84a</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Snehal&lt;/p&gt;
&lt;p&gt;The .size set by default is for a 64Mbit flash (8 MByte). 1024*1024 = 1 MB, so you can multipy that with how many MB the used flash device is. Since 4Mbit is the same as 0.5 MB, the .size should be set to &lt;strong&gt;0.5 * 1024 *1024&lt;/strong&gt;, or &lt;strong&gt;512 * 1024&lt;/strong&gt; simplified.&amp;nbsp;&lt;span&gt;&lt;strong&gt;MSC_WORKBUFFER_SIZE&lt;/strong&gt; is the buffer that gets actual payload from the USB.&amp;nbsp;This buffer is subdivided into 2 smaller buffers and they should have the size of a single block.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC code, windows not able to access drive.</title><link>https://devzone.nordicsemi.com/thread/421140?ContentTypeID=1</link><pubDate>Wed, 19 Apr 2023 03:55:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f88ea7f5-6ed5-4382-b7e9-fddb65d4b4fa</guid><dc:creator>Ash-tink</dc:creator><description>&lt;p&gt;Sorry my SDK is 17.0.2 only. I misread it . what should be the configuration of the flash chip inside this function if my flash is 4Mbit?&lt;/p&gt;
&lt;p&gt;The below config is taken from example code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;static const nrf_serial_flash_params_t m_sflash_params[] = {&lt;br /&gt;&amp;nbsp;{ /*MXIC MX25R6435F*/&lt;br /&gt;&amp;nbsp;.read_id = { 0xEF,0x60,0x17 },&lt;br /&gt;&amp;nbsp;.capabilities = 0x00,&lt;br /&gt;&amp;nbsp;.size = 8 * 1024 * 1024,&lt;br /&gt;&amp;nbsp;.erase_size = 2 * 1024,&lt;br /&gt;&amp;nbsp;.program_size = 256,&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And what should be the Block size,MSC_WORKBUFFER_SIZE &amp;amp; format size for 4Mbit flash?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC code, windows not able to access drive.</title><link>https://devzone.nordicsemi.com/thread/420905?ContentTypeID=1</link><pubDate>Tue, 18 Apr 2023 06:53:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea12a7eb-7bc9-4979-ba01-0a538faacb46</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;There could be unreported errors, depending on whether you log the callback of each function or not, but it&amp;#39;s important here that nRF5 SDK v17.0.0 is not recommended for development. There were some issues with this release, and it&amp;#39;s strongly recommended to switch to v17.0.2 or v17.1.0 (stated in the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/index.html"&gt;release notes here&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC code, windows not able to access drive.</title><link>https://devzone.nordicsemi.com/thread/420880?ContentTypeID=1</link><pubDate>Tue, 18 Apr 2023 03:02:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2d1be72-c4a9-4e4e-a54b-949a4d875acc</guid><dc:creator>Ash-tink</dc:creator><description>&lt;p&gt;I am using sdk 17.0.0. The main issue is I am not able to see any errors while mounting the File system. Is it possible that the file system mounting does not show any errors but still has some configuration errors??&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC code, windows not able to access drive.</title><link>https://devzone.nordicsemi.com/thread/420728?ContentTypeID=1</link><pubDate>Mon, 17 Apr 2023 10:52:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46f5f4f2-8cc7-4be2-bb79-b72771b75d8c</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;What SDK and SDK version have you used for development? Are you able to recreate this on a Development Kit? If so we can narrow it down to SW instead of HW at least.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC code, windows not able to access drive.</title><link>https://devzone.nordicsemi.com/thread/420434?ContentTypeID=1</link><pubDate>Fri, 14 Apr 2023 09:18:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3b7953a-20f1-443c-858e-ffb600a83636</guid><dc:creator>Ash-tink</dc:creator><description>&lt;p&gt;I connect the board using USB C cable. The USB cable is attached to the laptop.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC code, windows not able to access drive.</title><link>https://devzone.nordicsemi.com/thread/420385?ContentTypeID=1</link><pubDate>Fri, 14 Apr 2023 06:44:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5af8096f-8b38-4d16-8f74-542fd831c26e</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Okay, can you then show me how you connect the custom board to your laptop when you&amp;#39;re not able to access the drive?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC code, windows not able to access drive.</title><link>https://devzone.nordicsemi.com/thread/420272?ContentTypeID=1</link><pubDate>Thu, 13 Apr 2023 13:31:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82c1e149-02ac-4c34-b8c1-abc585422b13</guid><dc:creator>Ash-tink</dc:creator><description>&lt;p&gt;This is not development kit. It is our custom board but we are using NRF52840 in our board. I don&amp;#39;t see any errors while unmounting the device. When I plug in the device, the USB MSC starts, file system is mounted. No errors are seen in the logs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC code, windows not able to access drive.</title><link>https://devzone.nordicsemi.com/thread/420253?ContentTypeID=1</link><pubDate>Thu, 13 Apr 2023 12:52:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce350653-6049-4003-99a2-198edfdaab6c</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
[quote user=""]When I plug in the device into my laptop[/quote]
&lt;p&gt;What device is this exactly, is it the nRF52840 DK or an external board of some kind?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What did you do before this, did you just unplug the DK and plug the USB cable into the other USB port on the DK? You need to make sure that the file system is unmounted correctly so it doesn&amp;#39;t have to format again when reconnected after a poweroff.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>