<?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 (QSPI) vs Internal Flash Write Performance</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61735/external-flash-qspi-vs-internal-flash-write-performance</link><description>Hi, 
 
 I have some code written to copy PDM mic data into the external and then later dump it over UART. The issue I have is that when using the external flash, my audio gets corrupted because the QSPI flash writes don&amp;#39;t keep up with the PDM data. However</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 May 2020 09:32:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61735/external-flash-qspi-vs-internal-flash-write-performance" /><item><title>RE: External Flash (QSPI) vs Internal Flash Write Performance</title><link>https://devzone.nordicsemi.com/thread/251657?ContentTypeID=1</link><pubDate>Tue, 26 May 2020 09:32:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c49c4a6-d01a-49d7-a29f-4b152247c938</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The QSPI peripheral automatically sends a read status command (opcode: 0x05) for each read/write operation, something that NAND flash doesn&amp;#39;t support as far as I know. So what you&amp;#39;ll have to do, is to use &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fqspi.html&amp;amp;cp=3_0_0_5_18_5&amp;amp;anchor=custom_instructions"&gt;Sending custom instructions&lt;/a&gt; to implement read/write operations for memory devices that don&amp;#39;t support this opcode. So you should have this in mind if you&amp;#39;re planning on working with a NAND flash.&lt;/p&gt;
&lt;p&gt;As for the expected throughput, we tested on Windows with USBDeview and got the following throughput some time back:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-26d6f6a3082645ddbd50a5a1c524ede7/pastedimage1590485521065v1.png" alt=" " /&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: External Flash (QSPI) vs Internal Flash Write Performance</title><link>https://devzone.nordicsemi.com/thread/251559?ContentTypeID=1</link><pubDate>Mon, 25 May 2020 17:45:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62943f55-2ff8-44fc-b767-33192e0ff4fc</guid><dc:creator>mkimhj</dc:creator><description>&lt;p&gt;Hey Simon,&lt;/p&gt;
&lt;p&gt;Thanks for the response. If I have an application that requires more than the 1MB onboard flash, is using a NAND flash my best option or are there other alternatives?&lt;/p&gt;
&lt;p&gt;And just out of curiosity, do you know what the expected throughput would be of the&amp;nbsp;&lt;span&gt;MX25R6435F?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External Flash (QSPI) vs Internal Flash Write Performance</title><link>https://devzone.nordicsemi.com/thread/251483?ContentTypeID=1</link><pubDate>Mon, 25 May 2020 12:31:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8b251f8-4a58-457f-8fda-ba9b742ecc55</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Writing data to the on-board QSPI will not be very fast as the MX25R6435F is a typical NOR Flash memory chip (datasheet here). it has a high read speed, but a slow write/erase speed. The&amp;nbsp;MX25R6435F is perfect for execute in place (XIP), executing program code directly from external flash. It should be notably faster to write data like this to the nRF52840&amp;#39;s onboard flash.&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>