<?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>S25FL QSPI with NRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57920/s25fl-qspi-with-nrf52840</link><description>I believe I&amp;#39;m following both the Cypress data sheet properly. Yet I&amp;#39;m still having an issue getting the simple QSPI Peripheral example to show data consistency. 
 
 Can it be confirmed that &amp;quot;nrf_drv_qspi_write&amp;quot; sends a WREN command before? This is the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Aug 2021 06:18:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57920/s25fl-qspi-with-nrf52840" /><item><title>RE: S25FL QSPI with NRF52840</title><link>https://devzone.nordicsemi.com/thread/324746?ContentTypeID=1</link><pubDate>Fri, 13 Aug 2021 06:18:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f17f874-8551-4e34-ae3b-ee555eb821b0</guid><dc:creator>sara</dc:creator><description>&lt;p&gt;Hi, Daleye If u don&amp;#39;t mind can u share the qspi&amp;nbsp; read,write and erase functions for this external flash?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S25FL QSPI with NRF52840</title><link>https://devzone.nordicsemi.com/thread/236477?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2020 10:15:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ac72eee-b99c-45eb-9ed0-5ed11a3f1407</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Looking at trace when&amp;nbsp;nrf_drv_qspi_erase is called I see that a WREN instruction is issued&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1582711642887v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;So could it be that since the WREN instruction was sent during the&amp;nbsp;nrf_drv_qspi_erase procedure, then its not needed when&amp;nbsp;nrf_drv_qspi_write is executed?&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1582711852561v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The first highlighted log line is the WREN instruction sent during the erase procedure and the second highlighted line is the first transaction in the write procedure.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1582712062407v4.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S25FL QSPI with NRF52840</title><link>https://devzone.nordicsemi.com/thread/236351?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2020 16:56:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:557f3b68-8c57-46e8-a338-b4e343453a8c</guid><dc:creator>daleye</dc:creator><description>&lt;p&gt;Correct, we have some starting code for these devices in 2 wire mode. The existing example you provide for QSPI works on the devkit; however, it is in violation of their datasheet.. MX25R6435F -&amp;nbsp;&lt;a href="https://www.macronix.com/Lists/Datasheet/Attachments/7428/MX25R6435F,%20Wide%20Range,%2064Mb,%20v1.4.pdf" rel="noopener noreferrer" target="_blank"&gt;Macronix Data Sheet&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;Write Enable (WREN) command: WREN command is required to set the Write Enable Latch bit (WEL) before issuing other commands to change data. &amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;quot;The Write Enable (WREN) instruction is for setting Write Enable Latch (WEL) bit. For those instructions like PP, 4PP, SE, BE32K, BE, CE, and WRSR, which are intended to change the device content WEL bit should be set every time after the WREN instruction setting the WEL bit.&amp;quot;&lt;/p&gt;
&lt;p&gt;It appears without the WREN this particular chip is forgiving and allows operations, this could be highlighted by their use of &amp;quot;SHOULD&amp;quot; rather than &amp;quot;SHALL&amp;quot;.. either way, the spansion, now cypress part is not forgiving and requires this as it is still required in the SPI variant code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S25FL QSPI with NRF52840</title><link>https://devzone.nordicsemi.com/thread/236309?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2020 15:01:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3457ab61-6be2-4445-bec6-5506ddad1122</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Ok, so you have opted for the regular SPI peripheral instead of the QSPI?&lt;/p&gt;
&lt;p&gt;Will report this feedback in our internal issue tracker database.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S25FL QSPI with NRF52840</title><link>https://devzone.nordicsemi.com/thread/236285?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2020 14:26:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21a665ce-7ed4-41fb-9e23-62eba4d55e49</guid><dc:creator>daleye</dc:creator><description>&lt;p&gt;Great, thank you. I did not have access to this or the pins on our custom hardware... But I was able to get a standard spi interface working.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Good to know wren is not sent on qspi, this should be updated as I think it is required for many common parts.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S25FL QSPI with NRF52840</title><link>https://devzone.nordicsemi.com/thread/236282?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2020 14:22:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d680e200-84a1-4c41-b63b-a0fee3b8cc3d</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;HI Daleye,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Apologies for the late reply.&lt;/p&gt;
&lt;p&gt;Do you have access to a logic analyzer? It would be useful to see the data sent on the QSPI lines.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regarding your question on if&amp;nbsp;&lt;span&gt;nrf_drv_qspi_write sends a WREN, I&amp;nbsp;to hooked up my logic analyzer to the QSPI lines on our nRF52840 DK and see if a WREN command is sent. So it could be that you have to send this using&amp;nbsp; a custom instruction.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-f35d6e2164d940dbb138b58836a9098f/pastedimage1582640162476v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is the trace section where&amp;nbsp;nrf_drv_qspi_write() is called and I do not see any WREN command being sent.&amp;nbsp; Below is the capture of the&amp;nbsp;nrf_drv_qspi_erase operation.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-f35d6e2164d940dbb138b58836a9098f/pastedimage1582640487446v2.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S25FL QSPI with NRF52840</title><link>https://devzone.nordicsemi.com/thread/234948?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2020 14:02:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75ff8abd-9a2d-44f2-9a39-4ec64aa4b265</guid><dc:creator>daleye</dc:creator><description>&lt;p&gt;sdk16&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I should note the following:&lt;/p&gt;
&lt;p&gt;Without writing the Quad IO opcode my read returns all 0x80, with the write, it returns all 0xFF, so I believe the config instruction is going over without an issue; however, I haven&amp;#39;t found a way to send a 0x06 (WREN) before erase and flash which appears required by the part.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S25FL QSPI with NRF52840</title><link>https://devzone.nordicsemi.com/thread/234945?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2020 13:54:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dae8e89f-e401-4fc8-900d-baf73e71464d</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Which SDK version are you using?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>