<?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>External Flash and QSPI Settings</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27106/external-flash-and-qspi-settings</link><description>I have tried to study the behavior of the QSPI and the external flash. I noticed that the QSPI_CONFIG_READOC and QSPI_CONFIG_WRITEOC settings in sdk_config.h cannot be set to use a higher data lines. 
 More specifically, the QSPI_CONFIG_READOC can only</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Aug 2020 12:25:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27106/external-flash-and-qspi-settings" /><item><title>RE: External Flash and QSPI Settings</title><link>https://devzone.nordicsemi.com/thread/264617?ContentTypeID=1</link><pubDate>Fri, 14 Aug 2020 12:25:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d29e5b33-176c-41da-bd8c-d7130ac87602</guid><dc:creator>Constantin</dc:creator><description>&lt;p&gt;Okay found the solution. Quiet obvious. The example for qspi enables the QSPI mode of the memory. Hence, the QSPI can be used. This is missing insde the nrf_block_dev_qspi.c inside the init routine. You have to add the following lines to started from e.g. 388:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;    // Switch to qspi mode
    uint8_t temporary = 0x40;
    cinstr_cfg.opcode = QSPI_STD_CMD_WRSR;
    cinstr_cfg.length = NRF_QSPI_CINSTR_LEN_2B;
    ret = nrf_drv_qspi_cinstr_xfer(&amp;amp;cinstr_cfg, &amp;amp;temporary, NULL);
    APP_ERROR_CHECK(ret);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This will enable the QSPI of the memory chip and it is afterwards possible to used the &lt;code&gt;QSPI_CONFIG_WRITEOC&lt;/code&gt; = 3 and &lt;code&gt;QSPI_CONFIG_READOC&lt;/code&gt; = 4.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External Flash and QSPI Settings</title><link>https://devzone.nordicsemi.com/thread/264606?ContentTypeID=1</link><pubDate>Fri, 14 Aug 2020 11:58:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0d8eaa1-1d51-4b71-974e-0a0f184c8760</guid><dc:creator>Constantin</dc:creator><description>&lt;p&gt;Any update. With SDK 17 still the same error. Would be good to have the example running as expected or?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External Flash and QSPI Settings</title><link>https://devzone.nordicsemi.com/thread/141047?ContentTypeID=1</link><pubDate>Mon, 23 Jul 2018 21:24:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b38ea412-8692-420c-aa77-4dd58af5d64e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I&amp;#39;m afraid we don&amp;#39;t have an update on this.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External Flash and QSPI Settings</title><link>https://devzone.nordicsemi.com/thread/141029?ContentTypeID=1</link><pubDate>Mon, 23 Jul 2018 16:49:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9b4f2ec-976f-48ad-b40a-040e5413c471</guid><dc:creator>Anantha Keshava</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/hungbui"&gt;Hung Bui&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Was there any resolution to this by the developers? I&amp;#39;m about to attempt a similar thing on the v15.0 with the nRF52840 Preview DK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External Flash and QSPI Settings</title><link>https://devzone.nordicsemi.com/thread/106633?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2017 08:30:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0b54f6e-6c87-4ada-97a4-355f4597d20a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Fan,&lt;/p&gt;
&lt;p&gt;Thanks for the instruction, I can see the same thing here. I reported it to the developer. will get back to you if we find something.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External Flash and QSPI Settings</title><link>https://devzone.nordicsemi.com/thread/106631?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2017 14:12:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c29dec5e-fd34-4adc-989f-a52945d3ecea</guid><dc:creator>Fan Jiaming</dc:creator><description>&lt;p&gt;Yes, I tried the qspi example without any modification and it works. I am aware that it is using READ4IO and PP4IO, that&amp;#39;s why I am confused why the USB MSC example doesn&amp;#39;t work with that. I did not mix the FATFS with the USB MSC, in the original example, the FATFS is uninitialied before the USB MSC is turned on. When I do the modification, I keep that part as well. In fact, I merely deleted the instantiation of the other block devices and the rest of the initialization and handlers and their contents remain the same. If it is possible, may be you could also try to adjust the setting in the USB MSC example? If the issues are really with the setting, changing it in the example without any other modification should be enough to trigger the error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External Flash and QSPI Settings</title><link>https://devzone.nordicsemi.com/thread/106632?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2017 13:46:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:269d2648-b586-4be8-91bf-6771361fa5df</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Fan: We should go step by step. Have you tried \examples\peripheral\qspi , no modification ? As far as I can see it&amp;#39;s using Read4IO for reading and PP4IO for writing. And it&amp;#39;s working well on my computer.&lt;/p&gt;
&lt;p&gt;There is a note in the \examples\peripheral\usbd_msc\ that says:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;This example allows you to manipulate the file system (on QSPI memory) only while USB is not connected. If USB is connected, access to the file system from a user application is not possible because MSC is not designed to allow access to the file system from multiple sources.&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External Flash and QSPI Settings</title><link>https://devzone.nordicsemi.com/thread/106636?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2017 12:49:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e4b2ed8-e8dd-490b-9400-ab74fa804b65</guid><dc:creator>Fan Jiaming</dc:creator><description>&lt;p&gt;I tested it with the MX25R64 chip onboard, I trimmed off the excess code for the other block device and left only QSPI. But as soon as I use more data lines, the FATFS cannot mount the chip with FR_NO_FILESYSTEM as the return value and USB MSC unable to open the drive as well as do any write operations. Only after I return to use FASTREAD and PP, and reformat the chip then it becomes usable.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External Flash and QSPI Settings</title><link>https://devzone.nordicsemi.com/thread/106635?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2017 12:07:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5b67c25-4be4-4ab1-b0ee-8f5c60be0ffa</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Did you test it with the flash chip on the nRF52840 DK (MX25R64) or the Micron chip ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External Flash and QSPI Settings</title><link>https://devzone.nordicsemi.com/thread/106634?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2017 08:59:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2ae5e0f-8bbf-4b6e-bc02-c5f5378de428</guid><dc:creator>Fan Jiaming</dc:creator><description>&lt;p&gt;Hi, yes, I actually try it myself as well. But when I try to use  READ4IO or PP4IO with FATFS or with the USB MSC example found in the same folder, the program failed to function normally. More specifically, I have tried with READ2O and the program still runs, but QSPI_CONFIG_WRITEOC doesn&amp;#39;t seem to be able to set to higher than PP.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External Flash and QSPI Settings</title><link>https://devzone.nordicsemi.com/thread/106637?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2017 13:10:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:514a05f5-0c19-4663-b576-5992f22db789</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Fan,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have much experience with QSPI but isn&amp;#39;t in our example \examples\peripheral\qspi in SDK v13 where we interface with the external memory MX25R64, we use 4 lines for SIO (P0.20 to P0.23) and QSPI_CONFIG_READOC set to READ4IO and QSPI_CONFIG_WRITEOC set to PP4IO ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>