<?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>How to disable NRF52832 BLE power shutdown?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41465/how-to-disable-nrf52832-ble-power-shutdown</link><description>We are using NRF52832 with SDK15.0 to develop a wearable device that collects data every 10 seconds. It works fine except that NRF52832 shuts down automatically 1 hour after power is turned on. My question is: how to disable this automatic power down</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Dec 2018 11:59:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41465/how-to-disable-nrf52832-ble-power-shutdown" /><item><title>RE: How to disable NRF52832 BLE power shutdown?</title><link>https://devzone.nordicsemi.com/thread/161648?ContentTypeID=1</link><pubDate>Thu, 13 Dec 2018 11:59:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:223b43a7-52ea-4d6e-b991-6bc6edfbf8ed</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you letting us know what it was &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt; I had no idea that this functionality existed in the SDK...&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable NRF52832 BLE power shutdown?</title><link>https://devzone.nordicsemi.com/thread/161643?ContentTypeID=1</link><pubDate>Thu, 13 Dec 2018 11:22:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9ceec1d-9bd8-40a0-9d27-ae8079411126</guid><dc:creator>dimtai</dc:creator><description>&lt;p&gt;Hi Eina, many thanks for the hints.&lt;/p&gt;
&lt;p&gt;Problem solved. There is a shutdown counter in the&amp;nbsp;nrf_pwr_mgmt.c, which is enabled by&amp;nbsp;NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_ENABLED&lt;/p&gt;
&lt;p&gt;Best regards, Dimtai&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable NRF52832 BLE power shutdown?</title><link>https://devzone.nordicsemi.com/thread/161411?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 11:37:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14c6049f-892d-41a1-988b-e996961612f0</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There should not be any such counter in the SDK, so I am curious about seeing your code. Can you upload your complete project to this thread?&lt;/p&gt;
&lt;p&gt;Br,&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable NRF52832 BLE power shutdown?</title><link>https://devzone.nordicsemi.com/thread/161404?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 11:29:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43faea73-566c-4d5d-add9-40fa0f6eb161</guid><dc:creator>dimtai</dc:creator><description>&lt;p&gt;Is that possible that&amp;nbsp;buttons_leds_init(&amp;amp;erase_bonds) actually starts a timer? And does it have a counter ticking?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable NRF52832 BLE power shutdown?</title><link>https://devzone.nordicsemi.com/thread/161396?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 10:54:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2480cd0b-b830-4770-9590-a1eeae40cf62</guid><dc:creator>dimtai</dc:creator><description>&lt;p&gt;Hi Einar, thanks for the answer.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know what happens with &amp;quot;shutdown&amp;quot;, as I couldn&amp;#39;t trace into the code. The CPU&amp;#39;s&amp;nbsp;current consumption goes from about 0.3mA down to about 0.3uA when it&amp;#39;s down and ble is also gone, but it can be awaken by a button press. I assume it&amp;#39;s a system OFF mode.&lt;/p&gt;
&lt;p&gt;There is a constant periodic call of idle_state_handle() at precisely 1 sec interval in main() for loop. If PWR_MGMT_FPU_SLEEP_PREPARE() is commented out, the ticks go a lot faster, with irregular intervals much less than 0.1 sec. I don&amp;#39;t know where this is from. SOFTDEVICE_PRESENT is present in this case, but it appears that the 1 sec interval is not from sd_app_evt_wait().&lt;/p&gt;
&lt;p&gt;There is no timer started in the case, although app_timer_init() is surely called in init_ble(), otherwise BLE will not work. The actual init_ble() is as follows.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;void init_ble(void)
{
	bool erase_bonds = 1;
	// Initialize.
	app_timer_init();
	log_init();
	buttons_leds_init(&amp;amp;erase_bonds);
	power_management_init();

	//BLE related initialization
	ble_stack_init();
	gap_params_init();
	gatt_init();
	services_init();
	advertising_init();
	conn_params_init();
	advertising_start(erase_bonds, BLE_ADV_MODE_FAST);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The shutdown happens accurately when 3600 counts are achieved calling idle_state_handle(), and so I guess there should be a clock ticking somewhere. My question is: how to find this counter and how to clear it? And by doing so, can I disable NRF52832 power shutdown momentarily?&lt;/p&gt;
&lt;p&gt;Thanks again. Best regards, dimtai.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable NRF52832 BLE power shutdown?</title><link>https://devzone.nordicsemi.com/thread/161203?ContentTypeID=1</link><pubDate>Tue, 11 Dec 2018 13:11:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53ee870c-b6ae-4466-8d49-91e5c5a33919</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;By shutdown, what exactly do you mean? System&amp;nbsp;OFF mode?&lt;/p&gt;
&lt;p&gt;Are you confident that&amp;nbsp;PWR_MGMT_FPU_SLEEP_PREPARE() is related? It doesn&amp;#39;t makes sense to me when I am looking at the code.&amp;nbsp;Regarding PWR_MGMT_FPU_SLEEP_PREPARE(), this will&amp;nbsp;be&amp;nbsp;pwr_mgmt_fpu_sleep_prepare() if you have&amp;nbsp;NRF_PWR_MGMT_CONFIG_FPU_SUPPORT_ENABLED set to 1 in your projects sdk_config.h. If not, it will just be replaced with nothing by the preprocessor (no function call at all).&lt;/p&gt;
&lt;p&gt;Are you sure there is no timer or other event that causes your device to go into some kind of idle state?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>