<?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>SPI slave power consumption</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101633/spi-slave-power-consumption</link><description>Hello 
 According to the following ticket SPI-slave interface should not increase power consumption in idle mode. I did some testing and as soon as I set CONFIG_SPI_SLAVE=y the current consumption increases by around 250 uA even though cs-pin is not selected</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Aug 2023 11:50:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101633/spi-slave-power-consumption" /><item><title>RE: SPI slave power consumption</title><link>https://devzone.nordicsemi.com/thread/440483?ContentTypeID=1</link><pubDate>Wed, 09 Aug 2023 11:50:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bc78be6-0cde-4079-b9c0-ef14f9c89ac3</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi Sandro,&lt;/p&gt;
&lt;p&gt;Sorry, I totally mixed it with the SPI peripheral, I had forgotten that you were using SPIS not SPI. You are totally correct in that the device power management module hasn&amp;#39;t been implemented for the SPIS driver. The alternative is to use the nrfx functions directly and call &lt;a href="https://github.com/NordicSemiconductor/nrfx/blob/master/drivers/src/nrfx_spis.c#L349"&gt;nrfx_spis_uninit&lt;/a&gt;(). You should also reconfigure the SPI pins back to the GPIO default by using nrf_gpio_cfg() similar to what it&amp;#39;s done &lt;a href="https://github.com/NordicSemiconductor/nrfx/blob/master/drivers/src/nrfx_spis.c#L106"&gt;here&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI slave power consumption</title><link>https://devzone.nordicsemi.com/thread/440347?ContentTypeID=1</link><pubDate>Tue, 08 Aug 2023 14:59:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9690d0f-04d5-48b8-9d36-d843ee411e44</guid><dc:creator>Sandro_r</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The Blog&amp;nbsp;&lt;span&gt;d&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/optimizing-power-on-nrf53-designs"&gt;evice power management api&lt;/a&gt;&amp;nbsp;suggests&amp;nbsp;using &amp;#39;pm_device_state_set()&amp;#39;&amp;nbsp; to suspend a device. This function has been removed in Zephyr 3.1.0, now &amp;#39;pm_device_runtime_put()&amp;#39; and &amp;#39;pm_device_runtime_get()&amp;#39; should be used as far as I know (only after enabling with &amp;#39;p&lt;span&gt;m_device_runtime_enable()&amp;#39;&lt;/span&gt;). But when I call &amp;#39;p&lt;span&gt;m_device_runtime_enable()&amp;#39;&lt;/span&gt; for a device with device-tree entry &amp;#39;compatible=&amp;quot;nordic,nrf-spis&amp;quot;&amp;#39; it will return -&lt;span&gt;ENOTSUP since no power-management callback is implemented/registered in the file &amp;quot;ncs\v2.4.0\zephyr\drivers\spi\spi_nrfx_spis.c&amp;quot;&lt;/span&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Therefore the question is whether this feature will be added or if there is another way of suspending the device?&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Sandro&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI slave power consumption</title><link>https://devzone.nordicsemi.com/thread/440127?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2023 13:29:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d14f5b2e-0275-4d10-a10b-06d9b41bc690</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;By &amp;quot;device&amp;quot; I mean the SPI peripheral, you should be able to uninit the peripheral by using the device power management api and setting the device to &lt;code&gt;PM_DEVICE_STATE_SUSPENDED.&amp;nbsp;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Note I&amp;#39;ve seen a bug report where the pins aren&amp;#39;t set to their default state after initializing the device, so you might need to call&amp;nbsp;&lt;span&gt;gpio_pin_configure() and set them back to default, meaning Input, with No pull and input buffer disconnected to get the lowest power consumption,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If I misunderstood you, please elaborate!&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jared&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI slave power consumption</title><link>https://devzone.nordicsemi.com/thread/440087?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2023 11:03:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c66f705-449e-4986-985a-4c37a2828f15</guid><dc:creator>Sandro_r</dc:creator><description>&lt;p&gt;Hello Jared,&lt;/p&gt;
&lt;p&gt;Thank you very much for your answer and sorry for my late response. My problem is, that the device needs to keep running with a BLE-application (and some other events), therefore I will not force the device to sleep-mode. Sadly the &amp;quot;nordic,nrf-spis&amp;quot; driver cant be suspended. Will this featrue be added or is there another driver I could use to suspend the SPI? Or is there a &amp;quot;how-to&amp;quot; to implement it myselfe?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Sandro&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI slave power consumption</title><link>https://devzone.nordicsemi.com/thread/435454?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 11:02:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b06cd9e7-2d35-493d-a951-17a46a1cd6df</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/chapters/current_consumption/doc/current_consumption.html?cp=4_0_0_3_3_0_17#unique_797938650"&gt;If you initialize the SPIS slave then it will use about 145 µA&lt;/a&gt;, you can decrease this current by using d&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/optimizing-power-on-nrf53-designs"&gt;evice power management api&lt;/a&gt; and set the state of the device to low power,&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI slave power consumption</title><link>https://devzone.nordicsemi.com/thread/435385?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 06:03:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11437038-8700-4749-bf44-e61c435925ea</guid><dc:creator>Sandro_r</dc:creator><description>&lt;p&gt;I am using nrf-connect SDK 2.4.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>