<?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>System power off for beaconing application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52321/system-power-off-for-beaconing-application</link><description>Hello, 
 Currently my beaconing application draws approximately 10uA @ 1000ms advertising interval. I am having trouble getting the chip into system power off mode so the chip only draws around 1uA of current. I have defined CONFIG_GPIO_AS_PINRESET and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Sep 2019 08:36:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52321/system-power-off-for-beaconing-application" /><item><title>RE: System power off for beaconing application</title><link>https://devzone.nordicsemi.com/thread/211146?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2019 08:36:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0afbb6c3-f437-43d9-8431-f136e33c5a07</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Sophy"]So&amp;nbsp;if I press the reset button, will the system automatically enter a power&amp;nbsp;off state?[/quote]
&lt;p&gt;No. Pressing the reset button (if enabled in the UICR) will trigger a power-on-reset, so your application will run.&lt;/p&gt;
[quote user="Sophy"]When I test this with the PPK, pressing the reset pin has no effect on&amp;nbsp;current consumption[/quote]
&lt;p&gt;That could make sense. If your application is doing whatever it normally does, and you press reset so that it starts doing the same thing again, you should expect to see the same current consumption.&lt;/p&gt;
[quote user="Sophy"]The reason I am asking is because using a GPIO input will increase the current consumption, and ideally I want this to be as low as possible (around 10uA). I tested that by&amp;nbsp;using GPIO, the system regularly consumes around 23 uA of current.[/quote]
&lt;p&gt;&amp;nbsp;You are probably seeing &lt;a href="https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev2/ERR/nRF52832/Rev2/latest/anomaly_832_97.html?cp=3_1_1_0_1_28"&gt;erratum 97&lt;/a&gt;. The workaround is to use port event instead, which should be just as good in this use case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: System power off for beaconing application</title><link>https://devzone.nordicsemi.com/thread/210736?ContentTypeID=1</link><pubDate>Thu, 19 Sep 2019 14:01:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c38e906-662d-45a2-9159-a9b69718b845</guid><dc:creator>AQS</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for your answer.&lt;/p&gt;
&lt;p&gt;So&amp;nbsp;if I press the reset button, will the system automatically enter a power&amp;nbsp;off state? When I test this with the PPK, pressing the reset pin has no effect on&amp;nbsp;current consumption. The reason I am asking is because using a GPIO input will increase the current consumption, and ideally I want this to be as low as possible (around 10uA). I tested that by&amp;nbsp;using GPIO, the system regularly consumes around 23 uA of current.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: System power off for beaconing application</title><link>https://devzone.nordicsemi.com/thread/210612?ContentTypeID=1</link><pubDate>Thu, 19 Sep 2019 07:43:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b49fcca7-3662-49ac-9eb0-5677f8ee09e7</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1. Since you are using P0.21 for reset pin, this cannot simultaneously be a GPIO pin. The only thing the pin is usable for with this configuration is to do pin reset, which also wakes the device from system OFF low power mode. So, you must use another approach to enter system off mode.&lt;/p&gt;
&lt;p&gt;2. You cannot. When the reset button is pressed (pin asserted), the system is in an undefined state. And when the button is released, the system is reset and boots.&lt;/p&gt;
&lt;p&gt;3. You cannot use the reset pin for this. However, there is another approach that lets you use a single button, and that is to use a normal GPIO (could still be P0.21 if you &lt;em&gt;don&amp;#39;t&lt;/em&gt; configure it as a reset pin). Then you configure the pin to generate an interrupt (see &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/pin_change_int_example.html?cp=5_1_4_6_18"&gt;Pin Change Interrupt Example&lt;/a&gt;), and when you get an interrupt on the pin, you call some code that enters system OFF mode. This function should also configure a button to be used as a wakeup source, and in your case, this button should be the same button as you used to generate the interrupt in the first place. You can refer to for instance the&amp;nbsp;sleep_mode_enter() function in &amp;lt;SDK15.3&amp;gt;\examples\ble_peripheral\ble_app_gls\main.c.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>