<?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 flash DPD mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110521/qspi-flash-dpd-mode</link><description>Hi 
 
 I struggle with my external QSPI flash and power consumption of our custom board (at least I think that would be the problem with too high idle power consumption). We use W25Q512 flash and the device works with this overlay: 
 
 We optimized our</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Apr 2024 11:56:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110521/qspi-flash-dpd-mode" /><item><title>RE: QSPI flash DPD mode</title><link>https://devzone.nordicsemi.com/thread/480674?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2024 11:56:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbdef4e7-06a8-4e6f-a8c8-ee5557c6728d</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;If I recall correctly, errata 122 is covered in the latest nRF Connect SDK versions, so that shouldn&amp;#39;t be it. Can you confirm that the &lt;span&gt;&lt;strong&gt;nrfx_qspi_uninit&lt;/strong&gt;()&amp;nbsp;&lt;/span&gt;function runs correctly and completes?&amp;nbsp;I see you have configured the clock speed to run at 133 MHz, but the nRF52840 only supports QSPI clock speeds of up to 32MHz I&amp;#39;m afraid, so that could be a factor to the large current draw as well. You could also after the qspi uninit function, make sure the external flash no longer gets power by using a GPIO for power control for example.&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: QSPI flash DPD mode</title><link>https://devzone.nordicsemi.com/thread/480431?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 11:27:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dee77684-757a-42bb-bccb-c56b79aff71a</guid><dc:creator>Tiit</dc:creator><description>&lt;p&gt;Actually we don&amp;#39;t need to put device system off state,&amp;nbsp;SYSTEM ON&amp;nbsp; idle is I think good enough. I read about the ERRATA 122 and tried to uninitialize QSPI bus -- maybe has newer versions of SDK already fixed that and it&amp;#39;s not neccesary anymore.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QSPI flash DPD mode</title><link>https://devzone.nordicsemi.com/thread/480415?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 10:57:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9500739-094b-43f4-a26f-ef847e20c3d1</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Tiit&lt;/p&gt;
&lt;p&gt;I discussed a similar issue a few months back with the QSPI driver developers internally.&lt;/p&gt;
&lt;p&gt;Some external flash devices are&amp;nbsp;&lt;strong&gt;sometimes&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;able to wake up from DPD mode to standby when the CS line is pulled low, but the CS is under control of the peripheral. Most SPI devices are put to sleep and woken up by a SW command so the thing that sends the command (QSPI peripheral), should not be uninitialized in such a case.&lt;/p&gt;
&lt;p&gt;So the correct sequence in such a scenario would be to not use the DPD mode, but to power down/shut off the external NOR flash entirely instead of putting it in a DPD mode, then uninitializing the peripheral and putting the nRF5x into system OFF mode. Then you can wake up the nRF5x that will be able to run qspi_init() successfully.&lt;/p&gt;
&lt;p&gt;You can also check out&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/pull/64782"&gt;this fix for DPD exits&lt;/a&gt;&lt;span&gt;&amp;nbsp;with devices that ignore non-DPD commands while sleeping. Although it is for the nRF Connect SDK it should also be useful here.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>