<?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>Low power on spi_nor with nrf5340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103292/low-power-on-spi_nor-with-nrf5340</link><description>Hi, 
 I have a nrf 7002DK board. 
 I want to use flash, so I added in config: 
 
 When doing this, power consumation is going from 8uA to 1mA. 
 I added this in dtd overlay: 
 
 I also added in configuration: 
 
 But it was not working. 
 I checked in</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 31 Aug 2023 14:09:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103292/low-power-on-spi_nor-with-nrf5340" /><item><title>RE: Low power on spi_nor with nrf5340</title><link>https://devzone.nordicsemi.com/thread/443944?ContentTypeID=1</link><pubDate>Thu, 31 Aug 2023 14:09:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5ec69be-388d-42ff-9ac1-05be81701bfb</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Great! Thanks for confirming!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Low power on spi_nor with nrf5340</title><link>https://devzone.nordicsemi.com/thread/443941?ContentTypeID=1</link><pubDate>Thu, 31 Aug 2023 14:02:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e72bc294-5423-411c-ba2b-53dd004375ce</guid><dc:creator>Seb-labs</dc:creator><description>&lt;p&gt;Ok, it seems to work. Tks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Low power on spi_nor with nrf5340</title><link>https://devzone.nordicsemi.com/thread/443931?ContentTypeID=1</link><pubDate>Thu, 31 Aug 2023 13:13:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f55c02b7-58ab-4c0f-99ec-0e02fdc10642</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We have done some fixes in the lower-level SPIM driver. The issue with increased power on spi4 for the nRF5340 should already be fixed on the sdk-nrf main branch.&amp;nbsp; It&amp;nbsp;will be part of the next nRF Connect SDK release.&lt;/p&gt;
&lt;p&gt;As a test, you could perhaps try to replace the nrfx_spim.c file with the latest one from main:&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/hal_nordic/blob/master/nrfx/drivers/src/nrfx_spim.c"&gt;https://github.com/zephyrproject-rtos/hal_nordic/blob/master/nrfx/drivers/src/nrfx_spim.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Low power on spi_nor with nrf5340</title><link>https://devzone.nordicsemi.com/thread/443773?ContentTypeID=1</link><pubDate>Wed, 30 Aug 2023 15:37:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4314430d-59ca-4b76-a306-d2d26cf28ce0</guid><dc:creator>Seb-labs</dc:creator><description>&lt;p&gt;No, there is not the same behaviour with spi3: without need of pm device runtime, the consumation is around 8uA.&lt;/p&gt;
&lt;p&gt;For testing, I added this overlay:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;spi4 {
    status = &amp;quot;disabled&amp;quot;;
};
/delete-node/ &amp;amp;mx25r64;
&amp;amp;spi3 {
	compatible = &amp;quot;nordic,nrf-spim&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	pinctrl-0 = &amp;lt;&amp;amp;spi4_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;spi4_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	cs-gpios = &amp;lt;&amp;amp;gpio0 11 GPIO_ACTIVE_LOW&amp;gt;;
	mx25r64: mx25r6435f@0 {
		compatible = &amp;quot;jedec,spi-nor&amp;quot;;
		reg = &amp;lt;0&amp;gt;;
		spi-max-frequency = &amp;lt;33000000&amp;gt;;
		jedec-id = [c2 28 17];
		sfdp-bfp = [
			e5 20 f1 ff ff ff ff 03 44 eb 08 6b 08 3b 04 bb
			ee ff ff ff ff ff 00 ff ff ff 00 ff 0c 20 0f 52
			10 d8 00 ff 23 72 f5 00 82 ed 04 cc 44 83 68 44
			30 b0 30 b0 f7 c4 d5 5c 00 be 29 ff f0 d0 ff ff
		];
		size = &amp;lt;67108864&amp;gt;;
		has-dpd;
		t-enter-dpd = &amp;lt;10000&amp;gt;;
		t-exit-dpd = &amp;lt;5000&amp;gt;;
	};
};&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Low power on spi_nor with nrf5340</title><link>https://devzone.nordicsemi.com/thread/443762?ContentTypeID=1</link><pubDate>Wed, 30 Aug 2023 14:16:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2d08ba1-1b74-44c0-b332-9bf58d47a7a4</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="74830" url="~/f/nordic-q-a/103292/low-power-on-spi_nor-with-nrf5340"]When doing this, power consumation is going from 8uA to 1mA.[/quote]
&lt;p&gt;Could you test with spi3 instead of spi4, and see if you see the same behavior with spi3?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>