<?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>Best practice to poweroff an nrf52840 that&amp;#39;s using BLE?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120638/best-practice-to-poweroff-an-nrf52840-that-s-using-ble</link><description>We are developing a device that uses BLE, 4 contacts (buttons), a piezo connected via PWM and a realtime clock (RV3028). It also stores event data on an external flash using LFS. 
 We&amp;#39;ve been using the nrf52840dk and have also started using a Xiao BLE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Apr 2025 15:41:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120638/best-practice-to-poweroff-an-nrf52840-that-s-using-ble" /><item><title>RE: Best practice to poweroff an nrf52840 that's using BLE?</title><link>https://devzone.nordicsemi.com/thread/532652?ContentTypeID=1</link><pubDate>Wed, 23 Apr 2025 15:41:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7d6b51d-a558-47ae-ac65-2f01d5dd8542</guid><dc:creator>ZebbleMan</dc:creator><description>&lt;p&gt;I did start going down the debug route and wasn&amp;#39;t getting anywhere with my code.&amp;nbsp; So, I decided to try the peripheral_lbs demo code on the Xiao nrf52840, using the prj_minimal.conf.&amp;nbsp; I added the sys_poweroff() after a k_msleep(5000) in the main loop and current dropped to 15uA.&amp;nbsp; No other changes required!&lt;/p&gt;
&lt;p&gt;So, I&amp;#39;m likely going to use peripheral_lbs as a base for my code.&amp;nbsp; There&amp;#39;s a lot of functionality already included that should simplify a lot of what I&amp;#39;ve already done.&lt;/p&gt;
&lt;p&gt;At least I know this code works as its supposed to.&amp;nbsp; Now I&amp;#39;ll just add component-by-component and test power consumption as I go.&lt;/p&gt;
&lt;p&gt;Thanks again for your help.&amp;nbsp; I will post again if I run into another power consumption snag!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Best practice to poweroff an nrf52840 that's using BLE?</title><link>https://devzone.nordicsemi.com/thread/532430?ContentTypeID=1</link><pubDate>Tue, 22 Apr 2025 18:24:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81ee510f-72f9-4b17-9946-92791f2d664e</guid><dc:creator>ZebbleMan</dc:creator><description>&lt;p&gt;Sorry for the delay in my response!&lt;/p&gt;
&lt;p&gt;I&amp;#39;m going to dig into what you&amp;#39;ve outline.&amp;nbsp; Hopefully some answers in the meantime to a couple of your questions:&lt;/p&gt;
&lt;p&gt;- I&amp;#39;m using the PPK in power source mode, set to 3.3V.&lt;br /&gt;- The module I&amp;#39;m using (Xiao nrf52840) does not include a PA/LNA.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll keep you posted on the outcome of your other recommendations.&lt;/p&gt;
&lt;p&gt;Thanks again, much appreciated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Best practice to poweroff an nrf52840 that's using BLE?</title><link>https://devzone.nordicsemi.com/thread/531855?ContentTypeID=1</link><pubDate>Tue, 15 Apr 2025 13:34:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bcc9c81-95bc-45e0-803c-b61eacbb3094</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry for the delayed response.&lt;/p&gt;
[quote user=""]Using a PPK and after a sys_poweroff(), the current draw floats around 550uA.&amp;nbsp; This seemed very high so we started isolating what was drawing so much power.&amp;nbsp;[/quote]
&lt;p&gt;GPIO configurations are retained in System OFF mode. Therefore, when seeing&amp;nbsp;higher than expected current in this state, it&amp;#39;s usually due to a pin configuration issue or an external circuit. I suggest placing a breakpoint at sys_poweroff() and&amp;nbsp;checking the GPIO registers to ensure all pin configurations are correct.&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/pastedimage1744723180713v1.png" alt=" " /&gt;&lt;/p&gt;
[quote user=""]Using just flash and some tweaks got the consumption down to 20uA @ 3.3V and ~7nA(!?) @ 3.0V[/quote]
&lt;p&gt;It would be great if we could advertise a sleep current of only 7 nA, but that value is too low to be valid, unfortunately. Typical range is between .8 to 1.86 uA according the product specification (note: RAM retention in system OFF is not enabled by default).&amp;nbsp;Are you using the PPK in ammeter or power source mode?&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/pastedimage1744723810022v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Ref. (&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52840/page/_tmp/nrf52840/autodita/CURRENT/parameters.i_sleep.html"&gt;https://docs.nordicsemi.com/bundle/ps_nrf52840/page/_tmp/nrf52840/autodita/CURRENT/parameters.i_sleep.html&lt;/a&gt;&amp;nbsp;)&lt;/p&gt;
[quote user=""]&lt;p&gt;Re-adding bluetooth seemed to be the culprit and running some of the samples seem to have the same issue when adding sys_poweroff().&amp;nbsp; Everything still floats at around 500uA.&lt;/p&gt;
&lt;p&gt;So, what&amp;#39;s the best way to ensure bluetooth is not drawing current after sys_poweroff()?&lt;/p&gt;[/quote]
&lt;p&gt;It seems strange that enabling Bluetooth consistently leads to a higher system OFF current. Does your design include a front end module (PA/LNA) by any chance?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>