<?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>Flash High Performance Mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97266/flash-high-performance-mode</link><description>I&amp;#39;m trying to use the new Zephyr high-performance support for the 5340 DK flash chip but so far, no luck. 
 
 Here is the relevant section of my overlay: 
 
 
 
 
 
 I don&amp;#39;t know if this is right, but the resulting write performance of the chip is unchanged</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Mar 2023 22:32:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97266/flash-high-performance-mode" /><item><title>RE: Flash High Performance Mode</title><link>https://devzone.nordicsemi.com/thread/413650?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2023 22:32:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:beca9260-4b1a-4ef1-9467-302d7bdd727e</guid><dc:creator>Jeffrey Haynes</dc:creator><description>&lt;p&gt;Interesting.&amp;nbsp; Ok, thanks.&amp;nbsp; I&amp;#39;m considering moving to non-FS mode for our application anyway so maybe I&amp;#39;ll just go that route.&amp;nbsp; Thanks!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Btw, looking back at it I think there may have been a 15-20% speed improvement at the higher frequency.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash High Performance Mode</title><link>https://devzone.nordicsemi.com/thread/413518?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2023 12:23:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6caa0f95-4fc5-4609-a21e-79aeb7670c94</guid><dc:creator>Vidar Berg</dc:creator><description>[quote user="jefffhaynes"]Thanks for the quick response.&amp;nbsp; I previously tried increasing the frequency to 32MHz, but I&amp;#39;m not really seeing an increase in performance.&amp;nbsp; I suppose it could be something else related to using LittleFS but it does seem weird.[/quote]
&lt;p&gt;I too would have expected some performance improvement with this frequency.&amp;nbsp;But it could be like you indicated that the bottleneck is elsewhere. It&amp;nbsp;is probably easier&amp;nbsp;to test&amp;nbsp;the QSPI/flash performance without a filesystem. For instance, with the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/drivers/spi_flash/README.html"&gt;JEDEC SPI-NOR Sample&lt;/a&gt;.&lt;/p&gt;
[quote user="jefffhaynes"]I guess I&amp;#39;m a little confused, b/c the documentation does seem to call out nordic qspi:&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/build/dts/api/bindings/mtd/nordic,qspi-nor.html"&gt;https://docs.zephyrproject.org/latest/build/dts/api/bindings/mtd/nordic,qspi-nor.html&lt;/a&gt;[/quote]
&lt;p&gt;I was surprised to see this in the documentation. git blame does not&amp;nbsp;reveal when this property was added/removed. It is not included&amp;nbsp;in current main or previously tagged releases of Zephyr upstream, at least (&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/dts/bindings/mtd/nordic%2Cqspi-nor.yaml"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/main/dts/bindings/mtd/nordic%2Cqspi-nor.yaml&lt;/a&gt;). And when I look at the QSPI driver (&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/drivers/flash/nrf_qspi_nor.c"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/main/drivers/flash/nrf_qspi_nor.c&lt;/a&gt; ) there is no references to this mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash High Performance Mode</title><link>https://devzone.nordicsemi.com/thread/413327?ContentTypeID=1</link><pubDate>Fri, 03 Mar 2023 17:30:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d0ba1a1-7b88-4344-b9f2-c07b689782cc</guid><dc:creator>Jeffrey Haynes</dc:creator><description>&lt;p&gt;Thanks for the quick response.&amp;nbsp; I previously tried increasing the frequency to 32MHz, but I&amp;#39;m not really seeing an increase in performance.&amp;nbsp; I suppose it could be something else related to using LittleFS but it does seem weird.&lt;/p&gt;
&lt;p&gt;I guess I&amp;#39;m a little confused, b/c the documentation does seem to call out nordic qspi:&amp;nbsp;&lt;a id="" href="https://docs.zephyrproject.org/latest/build/dts/api/bindings/mtd/nordic,qspi-nor.html"&gt;https://docs.zephyrproject.org/latest/build/dts/api/bindings/mtd/nordic,qspi-nor.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Although admittedly, I&amp;#39;m not sure to which version this is referring.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash High Performance Mode</title><link>https://devzone.nordicsemi.com/thread/413247?ContentTypeID=1</link><pubDate>Fri, 03 Mar 2023 12:35:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c09f769f-4524-4044-935d-25d1a93129de</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The binding is currently only available for the Zephyr spi_nor driver (relevant&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/commit/f9b5138097de701cfbf99fd7546b5f4bf94ce5f3"&gt;commit&lt;/a&gt;), not qspi_nor, and I am not sure you will be able to get better IO performance if you had to switch from QSPI to SPI.&lt;/p&gt;
&lt;p&gt;To get the most out of the performance mode, it seems like you would have&amp;nbsp;to set the QSPI clock frequency to 32 MHz (closest you can get to 33 MHz with the clock divider) when&amp;nbsp;writing the WRSR register. From the datasheet:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1677846574829v2.png" alt=" " /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then when the flash is configured, increase the QSPI clock to 48 MHz (next step up is 96MHz) which is the closest you can get to the 80 MHz max frequency&amp;nbsp;supported by the flash IC in&amp;nbsp;high performance mode.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>