<?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 Current Consumption with nRF52833 Connect SDK vs nRF5 SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96254/low-power-current-consumption-with-nrf52833-connect-sdk-vs-nrf5-sdk</link><description>Hello! 
 I was wondering what methods exist to optimize either the configuration or code to get the lowest power consumption with the nRF Connect SDK? 
 
 Before I used the nRF5 SDK and, with the ble_app_uart example, was able to get 2uA current by commenting</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Mar 2023 02:02:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96254/low-power-current-consumption-with-nrf52833-connect-sdk-vs-nrf5-sdk" /><item><title>RE: Low Power Current Consumption with nRF52833 Connect SDK vs nRF5 SDK</title><link>https://devzone.nordicsemi.com/thread/413399?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2023 02:02:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb80c9ad-d7aa-4025-878c-9df05ba65688</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Rahul, sorry to let you wait.&lt;/p&gt;
&lt;p&gt;That&amp;#39;s quite a difference in power consumption. First of all, are you using Zephyr&amp;#39;s &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/services/pm/index.html#power-management"&gt;power management&lt;/a&gt; features at all? If not, that is&amp;nbsp;definitely something to include.&lt;/p&gt;
&lt;p&gt;Further, Zephyr SPI has both a bitbanged and nrfx driver (see &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/96547/zephyr-or-nrf-spi-driver/409353"&gt;this case&lt;/a&gt;), and although I&amp;#39;m not 100% certain which one would be better for power consumption, I would think that bitbanging/software controlled SPI is&amp;nbsp;worse as it prevents the CPU from sleeping during operation.&lt;/p&gt;
&lt;p&gt;Meanwhile the nrfx driver&amp;nbsp;makes use of the serial communication hardware. When used with Power Management and in particular when&amp;nbsp;enabling easyDMA, the&amp;nbsp;CPU could&amp;nbsp;remain completely asleep during communication.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My colleague tells me that the ramp up you are seeing is an indicator of a capacitor being charged up (and eventually discharged). If you could supply a PPK2 file of your measurements, we&amp;nbsp;could take a closer look at this.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Low Power Current Consumption with nRF52833 Connect SDK vs nRF5 SDK</title><link>https://devzone.nordicsemi.com/thread/409712?ContentTypeID=1</link><pubDate>Mon, 13 Feb 2023 22:10:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f542ba8-5f4b-4d6b-8a2d-21ebcac0efa5</guid><dc:creator>rgangwan</dc:creator><description>&lt;p&gt;Hi Raoul,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have been experimenting further with this and using a PPK2 I have a few more questions:&lt;/p&gt;
&lt;p&gt;I have tried initializing SPI using two approaches: Zephyr and nRFX&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Zephyr&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;To make things easier, I worked with the SPI_bitbang library, but removed all logs from the prj.conf file. Using this approach, I got 2mA of current. Seems SPI_bitbang draws a significant amount of current, unclear as to why that is.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;nRFx&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I have determined with the old nRF5 SDK that with just spi driver init with the following configs:&lt;/p&gt;
&lt;p&gt;mode = SPI_MODE_0, frequency=125k, bit order=MSB first, IRQ=2&lt;/p&gt;
&lt;p&gt;current is roughly 2uA.&lt;/p&gt;
&lt;p&gt;With the new nRF Connect SDK and the same initialization I see the following:&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/pastedimage1676326047711v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The current consumption for some reason ramps up from 5uA to 100uA. Eventually it drops down and stays at 5uA. I&amp;#39;m not sure as to why this ramp up occurs.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Only thing I could think of is a&amp;nbsp;compatibility issue with nRFx drivers and Zephyr RTOS causing this...but even so I&amp;#39;m not sure how to make it work with the Zephyr approach.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I would suspect with an nRF52833 just doing SPI init would draw around 5-10uA. So I&amp;#39;m not sure how to proceed with either the nRFx or the Zephyr approach.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Rahul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Low Power Current Consumption with nRF52833 Connect SDK vs nRF5 SDK</title><link>https://devzone.nordicsemi.com/thread/407742?ContentTypeID=1</link><pubDate>Thu, 02 Feb 2023 11:22:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f65a0665-a5e8-417d-ba83-713313d737b5</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Rahul,&lt;/p&gt;
&lt;p&gt;We have a whole chapter on Power Optimization in NCS here: &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/app_power_opt.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/app_power_opt.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Please check it out. And in case you didn&amp;#39;t know, we have an online power profiler where you can estimate your power draw with different features enabled/disabled, in case you need a reference:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/power/w/opp/2/online-power-profiler-for-bluetooth-le"&gt;Online Power Profiler for Bluetooth LE&lt;/a&gt;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;It&amp;#39;s possible that the 200uA draw you&amp;#39;re seeing is caused by some internal pull-up/pull-down resistor, as was the case here: &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/24792/attaching-interrupt-increases-power-to-200ua"&gt;Attaching Interrupt increases power to 200uA&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I hope that helps!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>