<?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>QSPI erase/write handling</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68617/qspi-erase-write-handling</link><description>The documentation is unclear about QSPI handling: 
 If I issue a QSPI erase command then I receive confirmation that the erase command has been written to the external QSPI chip; the external QSPI chip will commence the erase operation. 
 Questions: </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Nov 2020 16:54:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68617/qspi-erase-write-handling" /><item><title>RE: QSPI erase/write handling</title><link>https://devzone.nordicsemi.com/thread/282153?ContentTypeID=1</link><pubDate>Thu, 26 Nov 2020 16:54:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1db18f9-5f5b-41b6-b912-7891d9e4cb55</guid><dc:creator>MKJ</dc:creator><description>&lt;p&gt;Yes, that&amp;#39;s fine - please close the issue&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QSPI erase/write handling</title><link>https://devzone.nordicsemi.com/thread/282134?ContentTypeID=1</link><pubDate>Thu, 26 Nov 2020 15:12:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04419579-471f-408f-aa80-8908bc6ab01e</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;You welcome, I will consider the case closed then if you don&amp;#39;t have more questions.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QSPI erase/write handling</title><link>https://devzone.nordicsemi.com/thread/281835?ContentTypeID=1</link><pubDate>Wed, 25 Nov 2020 14:05:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2873860e-198a-4572-899f-a1537c989c45</guid><dc:creator>MKJ</dc:creator><description>&lt;p&gt;Thanks, as long as there is a rational answer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QSPI erase/write handling</title><link>https://devzone.nordicsemi.com/thread/281764?ContentTypeID=1</link><pubDate>Wed, 25 Nov 2020 11:27:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0e968d5-0468-467a-8e1e-29a70da5af9b</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Martin&lt;/p&gt;
&lt;p&gt;The unused bits in the registers could be used for internal status information, so they are not necessarily guaranteed to be 0 at all times.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I double checked with the designers, and they ensured me that the fields listed in the product specification (such as the READY bit) are all in the right places.&amp;nbsp;&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: QSPI erase/write handling</title><link>https://devzone.nordicsemi.com/thread/281609?ContentTypeID=1</link><pubDate>Tue, 24 Nov 2020 14:29:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff66cad7-fee9-4f0f-a4c6-36431c5dadef</guid><dc:creator>MKJ</dc:creator><description>&lt;p&gt;Torbjorn,&lt;/p&gt;
&lt;p&gt;Thanks. When I read the QSPI STATUS register with the debugger I get, in hex, the following:&lt;/p&gt;
&lt;p&gt;40029604 0A 00 00 42&lt;/p&gt;
&lt;p&gt;The bottom byte has bit 3 set (QSPI Ready) but also has bit 1 set.&lt;/p&gt;
&lt;p&gt;The upper byte (42) reflects the memory chip&amp;#39;s status register which I validated independently as correct.&lt;/p&gt;
&lt;p&gt;We get the same result if we read the STATUS register without the debugger.&lt;/p&gt;
&lt;p&gt;Martin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QSPI erase/write handling</title><link>https://devzone.nordicsemi.com/thread/281584?ContentTypeID=1</link><pubDate>Tue, 24 Nov 2020 13:41:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b49b37a-f1d1-49dc-9a3e-483266288ba3</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
[quote user="MKJ"]A related question is when is the status register of the external memory read into the top byte of the QSPI STATUS register? Is it updated periodically or only after read/write/erase?[/quote]
&lt;p&gt;As mentioned earlier this is read automatically before starting a write/read/erase operation, to ensure that the flash device is ready to accept new commands.&amp;nbsp;&lt;/p&gt;
[quote user="MKJ"]Also is the datasheet correct for the STATUS register - I see bit 1 set to &amp;#39;1&amp;#39;[/quote]
&lt;p&gt;You mean you see bit 1 set to 1 in the debugger?&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: QSPI erase/write handling</title><link>https://devzone.nordicsemi.com/thread/281579?ContentTypeID=1</link><pubDate>Tue, 24 Nov 2020 13:33:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef3ae898-c231-4118-b0db-25d678df5b17</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Martin&lt;/p&gt;
[quote user=""]1) If I immediately issue a QSPI Write command then does the chip wait until the external QSPI chip has finished the erase?[/quote]
&lt;p&gt;At the start of every command the QSPI interface will automatically read the status register, to make sure it doesn&amp;#39;t read or write unless the device is idle.&amp;nbsp;&lt;/p&gt;
[quote user=""]2) If it does wait then&amp;nbsp; is there a timeout on this or will it hang forever?[/quote]
&lt;p&gt;The QSPI should retry forever, yes. There is no defined timeout.&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: QSPI erase/write handling</title><link>https://devzone.nordicsemi.com/thread/281396?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2020 16:39:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cba1ed9-6316-4a19-8da8-f9e0bb668824</guid><dc:creator>MKJ</dc:creator><description>&lt;p&gt;Also is the datasheet correct for the STATUS register - I see bit 1 set to &amp;#39;1&amp;#39;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QSPI erase/write handling</title><link>https://devzone.nordicsemi.com/thread/281292?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2020 11:01:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68214348-2077-4309-af45-ba9004d923c3</guid><dc:creator>MKJ</dc:creator><description>&lt;p&gt;A related question is when is the status register of the external memory read into the top byte of the QSPI STATUS register? Is it updated periodically or only after read/write/erase?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>