<?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>Reduce nRF52832 current during connection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80414/reduce-nrf52832-current-during-connection</link><description>We&amp;#39;ve built a custom board, at power off current is 1-2uA and when connected average current is ~4.7mA. Internal DCDC is enabled, this shaved off &amp;gt;2mA. Other than reducing TX power, which we have yet to experiment with, is there any other way to reduce</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Oct 2021 13:06:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80414/reduce-nrf52832-current-during-connection" /><item><title>RE: Reduce nRF52832 current during connection</title><link>https://devzone.nordicsemi.com/thread/334173?ContentTypeID=1</link><pubDate>Thu, 14 Oct 2021 13:06:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4b762df-be00-4f3a-9ac3-d502583a2225</guid><dc:creator>nrbrook</dc:creator><description>&lt;p&gt;After a lot of trial and error I determined it was caused by this bug:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/80636/nrfx_saadc_abort-in-saadc-api-v2"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/80636/nrfx_saadc_abort-in-saadc-api-v2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;now the average current is ~50uA which is in line with online power profiler.&lt;/p&gt;
&lt;p&gt;Thanks for your help, the power management CPU usage monitor was particularly helpful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reduce nRF52832 current during connection</title><link>https://devzone.nordicsemi.com/thread/333845?ContentTypeID=1</link><pubDate>Wed, 13 Oct 2021 08:03:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c06dbf5-abf2-4718-9889-0f9974345812</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;How are the GPIOs configured for interrupts and what event are you using? PORT or IN event?&lt;/li&gt;
&lt;li&gt;What is the supply voltage at?&lt;/li&gt;
&lt;li&gt;Are you using any other peripheral in your project? Some peripherals might consume current if they are not un-initialized properly.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Can you confirm by using the debugger and pausing your application that it regularly enters the IDLE&amp;nbsp; __WFE&lt;span&gt;&lt;span&gt;() loop in&amp;nbsp;&lt;/span&gt;&lt;/span&gt;sd_app_evt_wait()? Also, note that softdevice applications has to be restarted each time the CPU is halted during debugging. Otherwise the application will assert when you try to resume the application.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Any timers or peripherals that you use where you write directly to the registers instead of using our drivers?&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
[quote user="nrbrook"]Is there any way to profile what is using CPU time?[/quote]
&lt;p&gt;If you&amp;#39;re using the logger module and the pwr_mgmt lib then you try enabling &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_pwr_mgmt.html?cp=8_1_3_36_0#cpu_usage_tracer"&gt;NRF_PWR_MGMT_CONFIG_DEBUG_PIN_ENABLED&lt;/a&gt;&lt;span&gt;&amp;nbsp;in your sdk_config.h file.&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;Jared&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reduce nRF52832 current during connection</title><link>https://devzone.nordicsemi.com/thread/333570?ContentTypeID=1</link><pubDate>Mon, 11 Oct 2021 14:54:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78b558e6-91b0-4383-aa9e-6b04d420bb56</guid><dc:creator>nrbrook</dc:creator><description>&lt;p&gt;I&amp;#39;m using App timer v2 with RTC and GPIO interrupts. The App timer is not firing very regularly &amp;ndash; every few hundred ms probably. However, Bluetooth connection interval is 15ms. Could it just be Bluetooth related CPU usage? The code is quite lengthy, across multiple files, and not in a project format Nordic supports (CMake). Is there any way to profile what is using CPU time?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reduce nRF52832 current during connection</title><link>https://devzone.nordicsemi.com/thread/333477?ContentTypeID=1</link><pubDate>Mon, 11 Oct 2021 11:43:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:058aec34-637c-47fe-a2c9-abf43f71faf4</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Most likely the CPU isn&amp;#39;t staying in IDLE for a long time before it &amp;quot;wakes up&amp;quot; due to an interrupt. What kind timer are you using, the app timer library, the RTC directly, or one of the HW timers? Could you share your code which shows what interrupts you&amp;#39;re configuring etc before sleep?&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: Reduce nRF52832 current during connection</title><link>https://devzone.nordicsemi.com/thread/333238?ContentTypeID=1</link><pubDate>Fri, 08 Oct 2021 11:03:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25c5a52f-5dda-48ce-a6af-c83ff39cc9d2</guid><dc:creator>nrbrook</dc:creator><description>&lt;p&gt;Thanks. The online power profiler suggests an average of 81uA, which is a long way from our observed 4.7mA. I am guessing most of the additional power consumed here is CPU. However, we aren&amp;#39;t really doing anything &amp;ndash; some interrupts are configured, and a timer is running to flash an LED. I use nrf_pwr_mgmt_run in the main loop, so the CPU should be able to idle, but it seems it isn&amp;#39;t. Is there anything that could be keeping it active?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reduce nRF52832 current during connection</title><link>https://devzone.nordicsemi.com/thread/333019?ContentTypeID=1</link><pubDate>Thu, 07 Oct 2021 11:39:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0c3ee63-525e-4a8e-b49a-696f2a5b3420</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Also, I reccomend reading &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/optimizing-power-on-nrf52-designs"&gt;this&lt;/a&gt;&amp;nbsp;blog post.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reduce nRF52832 current during connection</title><link>https://devzone.nordicsemi.com/thread/333017?ContentTypeID=1</link><pubDate>Thu, 07 Oct 2021 11:38:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0302620d-6d65-4e24-b6dd-747ac5512f2b</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Adjusting the system voltage&lt;/li&gt;
&lt;li&gt;Using LFXO instead of internal RC oscillator&lt;/li&gt;
&lt;li&gt;Adjusting the connection parameters(connection interval, slave latency etc)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The &lt;a href="https://devzone.nordicsemi.com/nordic/power/w/opp/2/online-power-profiler-for-bluetooth-le"&gt;Online Power Profiler&lt;/a&gt;&amp;nbsp;sums up the different variables that affect the current consumption during a connection.&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></channel></rss>