<?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>nRF52840 QSPI Power Consumption</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64145/nrf52840-qspi-power-consumption</link><description>We&amp;#39;re using the nRF52840 on a battery-powered device that requires very low power consumption, both in run mode and also in the Cortex-M4 sleep / deep sleep modes. We&amp;#39;ve recently identified the QSPI controller as an apparent consumer of a lot of power</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Jul 2020 10:16:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64145/nrf52840-qspi-power-consumption" /><item><title>RE: nRF52840 QSPI Power Consumption</title><link>https://devzone.nordicsemi.com/thread/261937?ContentTypeID=1</link><pubDate>Tue, 28 Jul 2020 10:16:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb1c49f0-63bd-4b05-a215-a90ebd3e41c3</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Nathan&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry, but we don&amp;#39;t have any exact numbers of the QSPI current consumption, as this wasn&amp;#39;t prioritized for the nRF52840 PS. Yes, the current consumption you&amp;#39;re seeing seems to be correct, mostly due to the erratum I mentioned, where the QSPI draws current even if it&amp;#39;s not in use. So in order to attain the lowest possible current consumption, you should uninitialize the QSPI like what I did below.&lt;/p&gt;
&lt;p&gt;For reference, the current consumption should be similar to those of the SPI depending on which regulator is in use, which HF clock, and the frequency used, as it&amp;#39;s the regulator, clock, and DMA that decides the current consumption, and not the peripheral itself.&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: nRF52840 QSPI Power Consumption</title><link>https://devzone.nordicsemi.com/thread/261865?ContentTypeID=1</link><pubDate>Tue, 28 Jul 2020 02:55:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78ab6c5f-8100-463d-a860-3f77b8eafa93</guid><dc:creator>ntennies</dc:creator><description>&lt;p&gt;Simon, thank for you the note about the erratum. However, we&amp;#39;d still like to understand if the&amp;nbsp; power consumption we&amp;#39;re seeing when the QSPI controller is enabled is correct or if it is indicative of a problem. Can you provide numbers regarding expected QSPI controller power consumption at runtime (but when not actively transmitting)?&lt;/p&gt;
&lt;p&gt;Specifically, we&amp;#39;re seeing power consumption jump by at about&amp;nbsp;3 mW in run mode just after enabling QSPI but not actively transmitting anything. Is that what we should expect?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 QSPI Power Consumption</title><link>https://devzone.nordicsemi.com/thread/261780?ContentTypeID=1</link><pubDate>Mon, 27 Jul 2020 12:33:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de16d3ea-0a09-45cd-8493-9a004c5723e8</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Nathan&lt;/p&gt;
&lt;p&gt;Sorry about the inconvenience, but due to the summer vacation period here in Norway, we&amp;#39;re low on staff this week, and delayed replies must be expected.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In order to achieve the lowest possible current consumption when using QSPI, you&amp;#39;ll have to uninitialize the QSPI driver. You should also be aware of the &lt;a href="https://infocenter.nordicsemi.com/topic/errata_nRF52840_Rev2/ERR/nRF52840/Rev2/latest/anomaly_840_122.html"&gt;erratum 122&amp;nbsp;&lt;/a&gt;&amp;nbsp;present in the nRF52840, so the uninit should look something like this before you go to sleep.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    *(volatile uint32_t *)0x40029010ul = 1ul;
    *(volatile uint32_t *)0x40029054ul = 1ul;
    nrf_drv_qspi_uninit();&lt;/pre&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: nRF52840 QSPI Power Consumption</title><link>https://devzone.nordicsemi.com/thread/261662?ContentTypeID=1</link><pubDate>Sat, 25 Jul 2020 00:28:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2e394de-3d93-455b-9c4a-f922b1cfe561</guid><dc:creator>ntennies</dc:creator><description>&lt;p&gt;&lt;span&gt;&amp;gt; The flash chip itself consumes much more current when CS is pulled low&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Right, but I don&amp;#39;t see how that&amp;#39;s&amp;nbsp;relevant here. The QSPI controller is setting nCS high when QSPI is initialized, and we&amp;#39;re not performing any operations on the QSPI bus that would cause the QSPI controller to set nCS low. Certainly not in sleep mode.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also, as I indicated, we&amp;#39;re seeing this relatively high power consumption by the QSPI controller even when we configure it to use pins that are not connect to a Flash part, so that can&amp;#39;t be what&amp;#39;s causing the increase in power consumption.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;The QSPI peripherial keeps CS low when using XIP mode&amp;nbsp; - in order to minimize acess latency.. You can exit XIP mode by using the regular nrfx_qspi_read()&amp;nbsp; on a dummy address&lt;/p&gt;
&lt;p&gt;We&amp;#39;re not using XIP mode.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 QSPI Power Consumption</title><link>https://devzone.nordicsemi.com/thread/261659?ContentTypeID=1</link><pubDate>Fri, 24 Jul 2020 22:14:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b13e4de-07a1-42dc-9bce-c7abc2448666</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;The flash chip itself consumes much more current when CS is pulled low. The QSPI peripherial keeps CS low when using XIP mode&amp;nbsp; - in order to minimize acess latency.&lt;/p&gt;
&lt;p&gt;You can exit XIP mode by using the regular nrfx_qspi_read()&amp;nbsp; on a dummy address.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>