<?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 Mass Storage Class on external QSPI flash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53944/usb-mass-storage-class-on-external-qspi-flash</link><description>Hello guys, 
 
 We are using SES and SDK15.3.0. Our SoC is from nRF52840 family. We have a custom board with external QSPI flash memory that we want to use as USB MSC device. After some consultations with Nordic technical support (see this thread), we</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Feb 2020 11:21:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53944/usb-mass-storage-class-on-external-qspi-flash" /><item><title>RE: USB Mass Storage Class on external QSPI flash</title><link>https://devzone.nordicsemi.com/thread/234867?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2020 11:21:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:307a6144-66bc-4557-b67c-7c51a9b7a9e3</guid><dc:creator>bojan</dc:creator><description>&lt;p&gt;No worries, we are all growing together! :-)&lt;/p&gt;
&lt;p&gt;Cheers!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Mass Storage Class on external QSPI flash</title><link>https://devzone.nordicsemi.com/thread/234866?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2020 11:20:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d98052fc-a50a-45c7-b03c-a36b4ae72130</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;I feel terrible for not seeing this before! I apologize for this taking so long.&lt;br /&gt;&lt;br /&gt;Glad that it is now working as it should! Good luck! &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;Kind regards,&lt;br /&gt;&amp;Oslash;yvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Mass Storage Class on external QSPI flash</title><link>https://devzone.nordicsemi.com/thread/234758?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2020 21:09:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6f4862c-5834-4de1-95ce-39de285f2979</guid><dc:creator>bojan</dc:creator><description>&lt;p&gt;Hey, &lt;a href="https://devzone.nordicsemi.com/members/oys"&gt;Øyvind&lt;/a&gt;!&lt;/p&gt;
&lt;p&gt;When I put proper info about my external flash chip inside nrf_serial_flash_params.c file (ID, size...) everything is working properly!!!!&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t believe this little thing took a few months of our lifes! :-)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We can now move forward!&lt;/p&gt;
&lt;p&gt;Sincerely,&lt;/p&gt;
&lt;p&gt;Bojan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Mass Storage Class on external QSPI flash</title><link>https://devzone.nordicsemi.com/thread/234127?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2020 09:25:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:652bc266-87b9-4465-9d6f-926a03075f76</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/bojan"&gt;bojan&lt;/a&gt;,&amp;nbsp;&lt;br /&gt;I could not see that I have suggested this to you before, but could you please try to configure the .read_id in&amp;nbsp;&lt;em&gt;components\libraries\block_dev\qspi\nrf_serial_flash_params.c&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/em&gt;My colleague got a &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/57708/external-flash-with-usbd_msc-example"&gt;similar case&lt;/a&gt;&amp;nbsp;yesterday and suggested the same solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Mass Storage Class on external QSPI flash</title><link>https://devzone.nordicsemi.com/thread/234126?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2020 09:25:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9b47bf1-51ad-401a-bc16-873e9b0ea36d</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/bojan"&gt;bojan&lt;/a&gt;,&amp;nbsp;&lt;br /&gt;I could not see that I have suggested this to you before, but could you please try to configure the .read_id in&amp;nbsp;&lt;em&gt;components\libraries\block_dev\qspi\nrf_serial_flash_params.c&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/em&gt;My colleague got a &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/57708/external-flash-with-usbd_msc-example"&gt;similar case&lt;/a&gt;&amp;nbsp;yesterday and suggested the same solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Mass Storage Class on external QSPI flash</title><link>https://devzone.nordicsemi.com/thread/233979?ContentTypeID=1</link><pubDate>Wed, 12 Feb 2020 13:13:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba51fcfd-1ba0-427d-8f76-c358d974dd6d</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
[quote user="Rick Z"]Is there any more news on this solution it&amp;#39;s been 1 year and we can&amp;#39;t figure out if this is viable or what is the issue?[/quote]
&lt;p&gt;Can you please provide a ticket number? If you have not got an answer for over a year, that needs to be&amp;nbsp;dealt with.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Mass Storage Class on external QSPI flash</title><link>https://devzone.nordicsemi.com/thread/233377?ContentTypeID=1</link><pubDate>Fri, 07 Feb 2020 22:03:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:557af907-eaae-4c86-96c5-1b8e68c02b25</guid><dc:creator>Rick Z</dc:creator><description>&lt;p&gt;Oyvind&lt;/p&gt;
&lt;p&gt;Is there any more news on this solution it&amp;#39;s been 1 year and we can&amp;#39;t figure out if this is viable or what is the issue?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Mass Storage Class on external QSPI flash</title><link>https://devzone.nordicsemi.com/thread/231374?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2020 11:34:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2a5b0fb-2231-46bc-9871-d02bc21d692a</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://devzone.nordicsemi.com/members/bojan"&gt;bojan&lt;/a&gt;,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;My sincerest apologies for the late reply. I have not got any response from our team. Still pushing for an answer!&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Mass Storage Class on external QSPI flash</title><link>https://devzone.nordicsemi.com/thread/227223?ContentTypeID=1</link><pubDate>Thu, 02 Jan 2020 11:20:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2940e99d-13a6-4d7e-8fa3-f7fea81a26f7</guid><dc:creator>bojan</dc:creator><description>&lt;p&gt;Hey, &lt;a href="https://devzone.nordicsemi.com/members/oys"&gt;Øyvind&lt;/a&gt;!&lt;/p&gt;
[quote userid="77062" url="~/f/nordic-q-a/53944/usb-mass-storage-class-on-external-qspi-flash/227217"]This is very interesting. What is different? I assume that it uses the default QSPI device on the DK?[/quote]
&lt;p&gt;Yes, I am using the same default QSPI interface to communicate with the flash memory on my custom board. The only thing that is different is the flash memory! &lt;/p&gt;
&lt;p&gt;No worries, as soon as you have some feedback from your QSPI guys, please share it with me.&lt;/p&gt;
&lt;p&gt;Happy New 2020! &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f385.svg" title="Santa"&gt;&amp;#x1f385;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best wishes and a lot of successful projects!&lt;/p&gt;
&lt;p&gt;Bojan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Mass Storage Class on external QSPI flash</title><link>https://devzone.nordicsemi.com/thread/227217?ContentTypeID=1</link><pubDate>Thu, 02 Jan 2020 10:41:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a303b077-e9ae-41e7-a64e-0dc4e4ab45f3</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/bojan"&gt;bojan&lt;/a&gt;,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I have to apologize for my last reply, as I realize now that I must have been&amp;nbsp;drunk or something. I see that I already asked you to edit sdk_config in &lt;a href="https://devzone.nordicsemi.com/support-private/support/238657#permalink=510336"&gt;this answer (Nov. 11)&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="bojan"]When I run the same code for my custom board on nRF52840 DK board without pressing ANY button, fatfs_init()&amp;gt;&amp;gt;disk_initialize(0) function passes without any problem![/quote]
&lt;p&gt;&amp;nbsp;This is very interesting. What is different? I assume that it uses the default QSPI device on the DK?&lt;br /&gt;&lt;br /&gt;The specialists on QSPI have not returned from their holidays yet, and I expect them to be back on Monday. I will get back to you then.&lt;br /&gt;&lt;br /&gt;Sorry for the inconvenience!&lt;br /&gt;&lt;br /&gt;BR,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Mass Storage Class on external QSPI flash</title><link>https://devzone.nordicsemi.com/thread/226669?ContentTypeID=1</link><pubDate>Sat, 21 Dec 2019 15:51:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a51b197-5e08-4d58-8ae2-b890d3d0a42c</guid><dc:creator>bojan</dc:creator><description>&lt;p&gt;Hey, &lt;a href="https://devzone.nordicsemi.com/members/oys"&gt;Øyvind&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;I changed sdk_config.h file according to your suggestions. I can see the same logs I was able to see before:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app: Initializing disk 0 (QSPI)...
&amp;lt;info&amp;gt; app: m_drives[drv].config.wait_func = NULL
&amp;lt;error&amp;gt; app: QSPI FLASH not supported
&amp;lt;error&amp;gt; app: Error: nrf_blk_dev_init() function!
&amp;lt;error&amp;gt; app: err_code: 0x6
&amp;lt;info&amp;gt; app: Return state 
&amp;lt;error&amp;gt; app: Disk initialization failed.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;fatfs_init()&amp;gt;&amp;gt;disk_initialize(0) function fails. I am aware there is FatFS implementation in the base of &lt;span style="background-color:#ff6600;"&gt;usbd_msc&lt;/span&gt; example. By pressing a button 3 in &lt;span style="background-color:#ff6600;"&gt;usbd_msc&lt;/span&gt; example, fatfs_mkfs() function is called. However, this happens inside while(true) loop, and AFTER fatfs_init()&amp;gt;&amp;gt;disk_initialize(0) function calls. &lt;/p&gt;
&lt;p&gt;When I run the same code for my custom board on nRF52840 DK board without pressing ANY button, fatfs_init()&amp;gt;&amp;gt;disk_initialize(0) function passes without any problem!&lt;/p&gt;
&lt;p&gt;Sincerely,&lt;/p&gt;
&lt;p&gt;Bojan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Mass Storage Class on external QSPI flash</title><link>https://devzone.nordicsemi.com/thread/225849?ContentTypeID=1</link><pubDate>Tue, 17 Dec 2019 11:03:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ad42236-d776-4aff-be0b-b108b7c2c416</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/bojan"&gt;bojan&lt;/a&gt;, can you please configure the following in sdk.config:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ &amp;lt;e&amp;gt; NRF_BLOCK_DEV_QSPI_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRF_BLOCK_DEV_QSPI_CONFIG_LOG_ENABLED
#define NRF_BLOCK_DEV_QSPI_CONFIG_LOG_ENABLED 1
#endif
// &amp;lt;o&amp;gt; NRF_BLOCK_DEV_QSPI_CONFIG_LOG_LEVEL  - Default Severity level
 
// &amp;lt;0=&amp;gt; Off 
// &amp;lt;1=&amp;gt; Error 
// &amp;lt;2=&amp;gt; Warning 
// &amp;lt;3=&amp;gt; Info 
// &amp;lt;4=&amp;gt; Debug 

#ifndef NRF_BLOCK_DEV_QSPI_CONFIG_LOG_LEVEL
#define NRF_BLOCK_DEV_QSPI_CONFIG_LOG_LEVEL 4
#endif
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been discussing the error you get, and the issue may be due to FatFS. Please note the USB MSC example uses button 3 (&lt;span&gt;#define&lt;/span&gt;&lt;span&gt;&amp;nbsp;BTN_MKFS&amp;nbsp;&lt;/span&gt;&lt;span&gt;2)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;to create a fat volume. There might be an issue with &lt;a href="http://elm-chan.org/fsw/ff/doc/dinit.html"&gt;disk_initialize&lt;/a&gt; in the sample, as this is handled by the fatfs module. Here is an example from the &lt;a href="http://elm-chan.org/fsw/ff/doc/mkfs.html"&gt;FatFS module&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/* Format default drive and create a file */
int main (void)
{
    FATFS fs;           /* Filesystem object */
    FIL fil;            /* File object */
    FRESULT res;        /* API result code */
    UINT bw;            /* Bytes written */
    BYTE work[FF_MAX_SS]; /* Work area (larger is better for processing time) */


    /* Format the default drive with default parameters */
    res = f_mkfs(&amp;quot;&amp;quot;, 0, work, sizeof work);
    if (res) ...

    /* Gives a work area to the default drive */
    f_mount(&amp;amp;fs, &amp;quot;&amp;quot;, 0);

    /* Create a file as new */
    res = f_open(&amp;amp;fil, &amp;quot;hello.txt&amp;quot;, FA_CREATE_NEW | FA_WRITE);
    if (res) ...

    /* Write a message */
    f_write(&amp;amp;fil, &amp;quot;Hello, World!\r\n&amp;quot;, 15, &amp;amp;bw);
    if (bw != 15) ...

    /* Close the file */
    f_close(&amp;amp;fil);

    /* Unregister work area */
    f_mount(0, &amp;quot;&amp;quot;, 0);
...&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;More information about the functions can be &lt;a href="http://elm-chan.org/fsw/ff/00index_e.html"&gt;found here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Mass Storage Class on external QSPI flash</title><link>https://devzone.nordicsemi.com/thread/225563?ContentTypeID=1</link><pubDate>Mon, 16 Dec 2019 09:42:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81b433b6-91e1-4a90-929e-30f932883ebf</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi Bojan,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;My sincere apologies, I have not heard back from our team and forgot to follow up on the case. I have asked for more details as to why you are receiving the &amp;quot;disk initialization failed&amp;quot; error and forwarded your last question.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Mass Storage Class on external QSPI flash</title><link>https://devzone.nordicsemi.com/thread/225460?ContentTypeID=1</link><pubDate>Fri, 13 Dec 2019 17:47:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:621c070d-3d0b-4734-b22f-0e8c3ab80bfb</guid><dc:creator>bojan</dc:creator><description>&lt;p&gt;Hello, &lt;a href="https://devzone.nordicsemi.com/members/oys"&gt;Øyvind&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;Any updates from your side? Where are you currently in the process of checking the issue with &lt;span style="background-color:#ff6600;"&gt;usbd_msc&lt;/span&gt; example on custom &lt;a href="https://www.macronix.com/en-us/products/NOR-Flash/Serial-NOR-Flash/Pages/spec.aspx?p=MX66L1G45G&amp;amp;m=Serial%20NOR%20Flash&amp;amp;n=PM2018"&gt;MX66L1G45G&lt;/a&gt; (3.0V) memory chip?&lt;/p&gt;
&lt;p&gt;Would changing the chip module and taking &lt;a href="https://www.macronix.com/Lists/Datasheet/Attachments/7426/MX25L3233F,%203V,%2032Mb,%20v1.6.pdf"&gt;MX25L3233F&lt;/a&gt;, for example, resolve the issue? Is there any other memory module you would recommend that supports the functionality of &lt;span style="background-color:#ff6600;"&gt;usbd_msc&lt;/span&gt; example?&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;Bojan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Mass Storage Class on external QSPI flash</title><link>https://devzone.nordicsemi.com/thread/220908?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2019 14:58:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7e35389-5dec-497b-8dd6-cdbce0fa00b6</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;No, I&amp;#39;m sorry, no updates. Our team is waiting for data/information from&amp;nbsp;&lt;span&gt;Macronix&lt;/span&gt; to simulate this device on the nRF52840. I will keep you posted.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Mass Storage Class on external QSPI flash</title><link>https://devzone.nordicsemi.com/thread/220877?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2019 14:06:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78b61feb-649b-42ec-9003-52b86aac73bd</guid><dc:creator>bojan</dc:creator><description>&lt;p&gt;Hello, &lt;a href="https://devzone.nordicsemi.com/members/oys"&gt;Øyvind&lt;/a&gt;!&lt;/p&gt;
&lt;p&gt;I hope this message finds you well. Any updates from your team concerning the issue with &lt;span style="background-color:#ff6600;"&gt;usbd_msc&lt;/span&gt; example on custom &lt;a href="https://www.macronix.com/en-us/products/NOR-Flash/Serial-NOR-Flash/Pages/spec.aspx?p=MX66L1G45G&amp;amp;m=Serial%20NOR%20Flash&amp;amp;n=PM2018"&gt;MX66L1G45G&lt;/a&gt; (3.0V) ?&lt;/p&gt;
&lt;p&gt;Sincerely,&lt;/p&gt;
&lt;p&gt;Bojan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Mass Storage Class on external QSPI flash</title><link>https://devzone.nordicsemi.com/thread/219648?ContentTypeID=1</link><pubDate>Tue, 12 Nov 2019 12:06:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d2360fe-225f-4ab7-839d-4bed806ba980</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;I have only referred to configure_memory() in regards to sending commands to your flash.&lt;/p&gt;
[quote user="bojan"]Yes, I have nRF52840DK. &lt;span style="background-color:#ff6600;"&gt;usbd_msc&lt;/span&gt; example is working fine on that board[/quote]
&lt;p&gt;&amp;nbsp;I have&amp;nbsp;not heard back from our team. I will update asap.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Mass Storage Class on external QSPI flash</title><link>https://devzone.nordicsemi.com/thread/219616?ContentTypeID=1</link><pubDate>Tue, 12 Nov 2019 09:13:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af256764-a216-4c09-8254-48192bfc5900</guid><dc:creator>bojan</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://devzone.nordicsemi.com/members/oys"&gt;Øyvind&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Thanks for your efforts! I really appreciate it. Yes, I have nRF52840DK. &lt;span style="background-color:#ff6600;"&gt;usbd_msc&lt;/span&gt; example is working fine on that board. There is no need to add the code you suggested:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrf_drv_qspi_config_t config = NRF_DRV_QSPI_DEFAULT_CONFIG;

err_code = nrf_drv_qspi_init(&amp;amp;config, qspi_handler, NULL);
APP_ERROR_CHECK(err_code);
NRF_LOG_INFO(&amp;quot;QSPI example started.&amp;quot;);

configure_memory();&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Looking forward to reading from you.&lt;/p&gt;
&lt;p&gt;Sincerely,&lt;/p&gt;
&lt;p&gt;Bojan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Mass Storage Class on external QSPI flash</title><link>https://devzone.nordicsemi.com/thread/219592?ContentTypeID=1</link><pubDate>Tue, 12 Nov 2019 08:04:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab8197f9-0335-4f52-86e6-75b93bf56b9c</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;We need to test everything. And I have forwarded this to the experts, so an answer will show itself soon. I have not heard back from them yet, will push for an answer. Do you have an nRF52840 DK? If so, could you try the code with that board?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Mass Storage Class on external QSPI flash</title><link>https://devzone.nordicsemi.com/thread/219544?ContentTypeID=1</link><pubDate>Mon, 11 Nov 2019 20:21:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d837c0e-af3a-40ee-8c80-0ad6cfaafa2b</guid><dc:creator>bojan</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/oys"&gt;Øyvind&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;When I enable QSPI logs with what you suggested, I could basically see the same codes that&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;fatfs_init() &amp;gt;&amp;gt; disk_initialize(0) &amp;gt;&amp;gt; nrf_blck_dev_init() &amp;gt;&amp;gt; init()&lt;/pre&gt;&amp;nbsp;function returns.&lt;/p&gt;
&lt;p&gt;The logs are &lt;strong&gt;&amp;lt;error&amp;gt; app: QSPI FLASH not supported &lt;/strong&gt;(should correspond to return code 0x06) when I don&amp;#39;t insert &lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrf_drv_qspi_config_t config = NRF_DRV_QSPI_DEFAULT_CONFIG;

err_code = nrf_drv_qspi_init(&amp;amp;config, qspi_handler, NULL);
APP_ERROR_CHECK(err_code);
NRF_LOG_INFO(&amp;quot;QSPI example started.&amp;quot;);

configure_memory();&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;before &lt;em&gt;&lt;strong&gt;fatfs_init()&lt;/strong&gt;&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;When I insert the above code before &lt;em&gt;&lt;strong&gt;fatfs_init()&lt;/strong&gt;&lt;/em&gt; function, I get QSPI log &lt;strong&gt;&amp;lt;error&amp;gt; app: QSPI init error: 8&lt;/strong&gt; which corresponds to return code 0x08 from &lt;strong&gt;&lt;em&gt;init()&lt;/em&gt;&lt;/strong&gt; function.&lt;/p&gt;
&lt;p&gt;Moving to SDK v16.0.0 did not help. I get completely the same returns from &lt;strong&gt;init()&lt;/strong&gt; function and completely the same QSPI logs.&lt;/p&gt;
&lt;p&gt;I am starting to despair here!!!&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f622.svg" title="Cry"&gt;&amp;#x1f622;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;What I want to do seems to be simple but still so much trouble experienced!&lt;/p&gt;
&lt;p&gt;Sincerely,&lt;/p&gt;
&lt;p&gt;Bojan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Mass Storage Class on external QSPI flash</title><link>https://devzone.nordicsemi.com/thread/219514?ContentTypeID=1</link><pubDate>Mon, 11 Nov 2019 14:50:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8feff1ca-a9fb-4e85-915b-83da4e3f9022</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Try enabling the following in your sdk_config.h&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;// &amp;lt;e&amp;gt; NRF_BLOCK_DEV_QSPI_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRF_BLOCK_DEV_QSPI_CONFIG_LOG_ENABLED
#define NRF_BLOCK_DEV_QSPI_CONFIG_LOG_ENABLED 1
#endif
// &amp;lt;o&amp;gt; NRF_BLOCK_DEV_QSPI_CONFIG_LOG_LEVEL  - Default Severity level
 
// &amp;lt;0=&amp;gt; Off 
// &amp;lt;1=&amp;gt; Error 
// &amp;lt;2=&amp;gt; Warning 
// &amp;lt;3=&amp;gt; Info 
// &amp;lt;4=&amp;gt; Debug 

#ifndef NRF_BLOCK_DEV_QSPI_CONFIG_LOG_LEVEL
#define NRF_BLOCK_DEV_QSPI_CONFIG_LOG_LEVEL 4
#endif&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;And after running once or twice with settings above, please run with the following as well:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;
// &amp;lt;e&amp;gt; APP_USBD_MSC_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef APP_USBD_MSC_CONFIG_LOG_ENABLED
#define APP_USBD_MSC_CONFIG_LOG_ENABLED 1
#endif
// &amp;lt;o&amp;gt; APP_USBD_MSC_CONFIG_LOG_LEVEL  - Default Severity level
 
// &amp;lt;0=&amp;gt; Off 
// &amp;lt;1=&amp;gt; Error 
// &amp;lt;2=&amp;gt; Warning 
// &amp;lt;3=&amp;gt; Info 
// &amp;lt;4=&amp;gt; Debug 

#ifndef APP_USBD_MSC_CONFIG_LOG_LEVEL
#define APP_USBD_MSC_CONFIG_LOG_LEVEL 4
#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This should give more information on what is going on.&lt;br /&gt;&lt;br /&gt;The last suggestion after adding debug information would be to test with the latest SDK v16.0.0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Mass Storage Class on external QSPI flash</title><link>https://devzone.nordicsemi.com/thread/219478?ContentTypeID=1</link><pubDate>Mon, 11 Nov 2019 13:18:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:841712b6-89c4-419d-97da-921be66a3087</guid><dc:creator>bojan</dc:creator><description>&lt;p&gt;when I include the following piece of the code before &lt;em&gt;&lt;strong&gt;fatfs_init()&lt;/strong&gt;&lt;/em&gt; function:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrf_drv_qspi_config_t config = NRF_DRV_QSPI_DEFAULT_CONFIG;

err_code = nrf_drv_qspi_init(&amp;amp;config, qspi_handler, NULL);
APP_ERROR_CHECK(err_code);
NRF_LOG_INFO(&amp;quot;QSPI example started.&amp;quot;);

configure_memory();&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;the &lt;em&gt;&lt;strong&gt;init()&lt;/strong&gt;&lt;/em&gt; function in the chain of calls:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;fatfs_init() &amp;gt;&amp;gt; disk_initialize(0) &amp;gt;&amp;gt; nrf_blck_dev_init() &amp;gt;&amp;gt; init()&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;returns 0x8 error code which should be the code for&amp;nbsp;&lt;strong&gt;NRF_ERROR_INVALID_STATE&lt;/strong&gt; (Invalid state, operation disallowed in this state).&lt;/p&gt;
&lt;p&gt;When I remove the above piece of code before &lt;em&gt;&lt;strong&gt;fatfs_init()&lt;/strong&gt;&lt;/em&gt; function, the &lt;strong&gt;&lt;em&gt;init()&lt;/em&gt;&lt;/strong&gt; function returns error code 0x6 - &lt;strong&gt;NRF_ERROR_NOT_SUPPORTED&lt;/strong&gt;!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Mass Storage Class on external QSPI flash</title><link>https://devzone.nordicsemi.com/thread/219473?ContentTypeID=1</link><pubDate>Mon, 11 Nov 2019 13:11:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0690baa2-b22c-401f-8a19-e7464e541be5</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Thank you, &lt;a href="https://devzone.nordicsemi.com/members/bojan"&gt;bojan&lt;/a&gt;! Could you also add as much debug information as possible, i.e. the error codes that returned, etc? I will need to provide our developers with as much information as possible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Mass Storage Class on external QSPI flash</title><link>https://devzone.nordicsemi.com/thread/219442?ContentTypeID=1</link><pubDate>Mon, 11 Nov 2019 11:21:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28f60706-0fac-4bdb-923e-cf6474e3c9f7</guid><dc:creator>bojan</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/oys"&gt;Øyvind&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Sure. Find it attached. However, the project is just a copy from &lt;span style="background-color:#ff6600;"&gt;usbd_msc&lt;/span&gt; example.&lt;/p&gt;
&lt;p&gt;It is placed under examples/peripheral.&lt;/p&gt;
&lt;p&gt;Sincerely,&lt;/p&gt;
&lt;p&gt;Bojan.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/usbd_5F00_msc_5F00_custom_5F00_board.zip"&gt;devzone.nordicsemi.com/.../usbd_5F00_msc_5F00_custom_5F00_board.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Mass Storage Class on external QSPI flash</title><link>https://devzone.nordicsemi.com/thread/219440?ContentTypeID=1</link><pubDate>Mon, 11 Nov 2019 11:14:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:324cd7eb-cf3b-42c0-9400-67aa9dc0371d</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi Bojan,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Can you please share your project?&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>