<?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>RTC Running in System ON Mode Current Consumption?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98804/rtc-running-in-system-on-mode-current-consumption</link><description>hi, 
 i am using nrf connect extension in vs code with Zephyr os version v3.2.99-ncs2 , 
 when device in system on sleep how much current consume by nrf52833 development kit ? when only RTC Being on. 
 1. during sleep, RTC current consumption? 
 2. what</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 May 2023 06:41:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98804/rtc-running-in-system-on-mode-current-consumption" /><item><title>RE: RTC Running in System ON Mode Current Consumption?</title><link>https://devzone.nordicsemi.com/thread/424412?ContentTypeID=1</link><pubDate>Tue, 09 May 2023 06:41:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf3b31cd-2373-4540-b97f-b804782470cb</guid><dc:creator>starkAbhi</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Edvin,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/98804/rtc-running-in-system-on-mode-current-consumption/424149"]Just one thing that you can look for. Let us say that you are using SPI at some point in your application. (This advice goes for all peripherals) Compare the current consumption after you disable the SPI to before you initialized it (or compare it to a version of your application where you don&amp;#39;t enable it), to make sure that it is properly turned off.&amp;nbsp;[/quote]
&lt;p&gt;i will definitely check this out. thanks for your suggestions.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Abhishek&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC Running in System ON Mode Current Consumption?</title><link>https://devzone.nordicsemi.com/thread/424149?ContentTypeID=1</link><pubDate>Mon, 08 May 2023 07:14:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56e17019-e2ca-4e44-9cda-ce3c471535a9</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="starkAbhi"]okay, i will create another ticket.[/quote]
&lt;p&gt;Sounds good.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="starkAbhi"]all peripherals are disabled.[/quote]
&lt;p&gt;Just one thing that you can look for. Let us say that you are using SPI at some point in your application. (This advice goes for all peripherals) Compare the current consumption after you disable the SPI to before you initialized it (or compare it to a version of your application where you don&amp;#39;t enable it), to make sure that it is properly turned off.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC Running in System ON Mode Current Consumption?</title><link>https://devzone.nordicsemi.com/thread/424103?ContentTypeID=1</link><pubDate>Sat, 06 May 2023 04:31:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d271285-7f89-48fe-9dd1-c34139d70f4e</guid><dc:creator>starkAbhi</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Edvin,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;yes, 2.2 uA current during sleep. no ,it is not a advertisement current.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards Abhishek Tiwari&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC Running in System ON Mode Current Consumption?</title><link>https://devzone.nordicsemi.com/thread/424102?ContentTypeID=1</link><pubDate>Sat, 06 May 2023 04:29:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cbae7e8-2874-4295-99c0-d892f5fd3ec2</guid><dc:creator>starkAbhi</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Edvin,&lt;/span&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/98804/rtc-running-in-system-on-mode-current-consumption/423931"]For HW review, please create a new ticket where you include the schematics and layout files, and request a HW review. You can also mention that you are looking to reduce the current consumption so that they know what to look for.&amp;nbsp;[/quote]
&lt;p&gt;&lt;span&gt;okay, i will create another ticket.&lt;/span&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/98804/rtc-running-in-system-on-mode-current-consumption/423931"]I can only see some snippets from your application, so I don&amp;#39;t know what is enabled or not, and what you have connected to your board. Do you use any external devices powered by the nRF? Sensors? And did you disable the UART logging, e.g. by setting CONFIG_SERIAL=n in your prj.conf?[/quote]
&lt;p&gt;&lt;span&gt;all peripherals are disabled. only i am using ble for advertisement. currently i am using nrf52833 dk . yes, i disabled the uart logging.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards Abhishek Tiwari&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC Running in System ON Mode Current Consumption?</title><link>https://devzone.nordicsemi.com/thread/423933?ContentTypeID=1</link><pubDate>Fri, 05 May 2023 09:25:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60372607-c5fd-46cc-85c5-c41e0aee2ff0</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;And regarding your measured current consumption. Based on your comment, I believe I understand it correctly, but the 2.2µA is the current while you are in sleep, right? So it is not an average while you are advertising as well?&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC Running in System ON Mode Current Consumption?</title><link>https://devzone.nordicsemi.com/thread/423931?ContentTypeID=1</link><pubDate>Fri, 05 May 2023 09:24:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6635e86-1374-4b33-9bc4-77715688bcce</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Abhishek,&lt;/p&gt;
&lt;p&gt;For HW review, please create a new ticket where you include the schematics and layout files, and request a HW review. You can also mention that you are looking to reduce the current consumption so that they know what to look for.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I can only see some snippets from your application, so I don&amp;#39;t know what is enabled or not, and what you have connected to your board. Do you use any external devices powered by the nRF? Sensors? And did you disable the UART logging, e.g. by setting CONFIG_SERIAL=n in your prj.conf?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC Running in System ON Mode Current Consumption?</title><link>https://devzone.nordicsemi.com/thread/423885?ContentTypeID=1</link><pubDate>Fri, 05 May 2023 05:41:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aacf526a-25d4-4d34-b077-f7009223efbb</guid><dc:creator>starkAbhi</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Edvin,&lt;/span&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/98804/rtc-running-in-system-on-mode-current-consumption/423533"]I don&amp;#39;t know what current consumption you currently are looking at, but you can check what my colleague answered in a &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/99280/sleep-modes-system-on-example-for-nrf52833-with-nrf-connect-sdk-2-3-0"&gt;similar question&lt;/a&gt; yesterday, regarding how to control the RAM retention.[/quote]
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;My application requirement is to advertise data then go to&amp;nbsp; sleep periodically . it has to consume&amp;nbsp; ~1.2uA current in sleep. due to less power consumption connected battery has long life. we able to achieve 2.2 uA&amp;nbsp; in sleep by using given code above. how to decrease the current consumption more to close 1uA.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;previously&amp;nbsp;&amp;quot;Karl&amp;#39; asked about hardware design. in response we are open to suggestions. could you please us in hardware design?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards Abhishek&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC Running in System ON Mode Current Consumption?</title><link>https://devzone.nordicsemi.com/thread/423533?ContentTypeID=1</link><pubDate>Wed, 03 May 2023 12:09:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9e6a45d-7355-4bee-982e-2cf866aa8707</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Karl is out of office, so I am sorry for the late reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know what current consumption you currently are looking at, but you can check what my colleague answered in a &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/99280/sleep-modes-system-on-example-for-nrf52833-with-nrf-connect-sdk-2-3-0"&gt;similar question&lt;/a&gt; yesterday, regarding how to control the RAM retention.&lt;/p&gt;
&lt;p&gt;It also holds the table containing current consumption in different states.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC Running in System ON Mode Current Consumption?</title><link>https://devzone.nordicsemi.com/thread/423075?ContentTypeID=1</link><pubDate>Sat, 29 Apr 2023 05:57:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9db2d492-5abe-49bd-ae59-d08a0027955d</guid><dc:creator>starkAbhi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/98804/rtc-running-in-system-on-mode-current-consumption/422949"]You can set which RAM blocks will be retained and which will not as &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52833/power.html?cp=5_1_0_4_2_4#ram_sections"&gt;described in the documentation I referenced below&lt;/a&gt;, please give this a try and let me know if you run into any issues - then you can share the code snippets from what you attempted and what you were trying to achieve, then we can take a look and guide you to how you could achieve it.[/quote]
&lt;p&gt;i used this way to get System on sleep. which API /Function need to call to put device in RAM OFF Sleep?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;//advertiser sleep

#include &amp;lt;zephyr/types.h&amp;gt;
#include &amp;lt;stddef.h&amp;gt;
#include &amp;lt;zephyr/sys/util.h&amp;gt;
#include &amp;lt;zephyr/bluetooth/bluetooth.h&amp;gt;
#include &amp;lt;zephyr/bluetooth/hci.h&amp;gt;
//---power management lib--
#include &amp;lt;zephyr/pm/pm.h&amp;gt;
#include &amp;lt;zephyr/pm/device.h&amp;gt;
/////////////////////////////

#define DEVICE_NAME CONFIG_BT_DEVICE_NAME
#define DEVICE_NAME_LEN (sizeof(DEVICE_NAME) - 1)

uint8_t vol_Per = 0; //voltage in % but hex converter it

static uint8_t adv_data[] = {
0x0f,0x18, //uuid battery service uuid[1],uuid[0] //0x180f: battery services
0x10 //data: battery percentage hex to % 0x10 = 16%
};

static const struct bt_data ad[] = {
BT_DATA_BYTES(BT_DATA_FLAGS, BT_LE_AD_NO_BREDR),
BT_DATA(BT_DATA_SVC_DATA16,adv_data,3),   
};

/* Set Name adv data */
static const struct bt_data sd[] = {
BT_DATA(BT_DATA_NAME_COMPLETE, DEVICE_NAME, DEVICE_NAME_LEN),
};

static void bt_ready(int err) {
	char addr_s[BT_ADDR_LE_STR_LEN];
	bt_addr_le_t addr = {0};
	size_t count = 1;
	/* Start advertising */
	bt_le_adv_start(BT_LE_ADV_NCONN_IDENTITY, ad, ARRAY_SIZE(ad), sd, ARRAY_SIZE(sd));

	bt_id_get(&amp;amp;addr, &amp;amp;count);
	bt_addr_le_to_str(&amp;amp;addr, addr_s, sizeof(addr_s));
	// printk(&amp;quot;Beacon started, advertising as %s\n&amp;quot;, addr_s);
}

void main(void) {
/* Initialize the Bluetooth Subsystem */
bt_enable(NULL);
while(1) {
bt_ready(0); //advertising
k_sleep(K_SECONDS(1)); //WAIT time
bt_le_adv_stop();
pm_state_force(0u, &amp;amp;(struct pm_state_info){PM_STATE_SUSPEND_TO_IDLE, 0, 0}); //nrfonly switch: 2.2 uA 
k_sleep(K_SECONDS(3)); //update time
} //end of while
}//end of main&lt;/pre&gt;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/98804/rtc-running-in-system-on-mode-current-consumption/422949"]Shutting down everything that you do not need during sleep is a good start, but there are other things you can do as well. You should also take a look at this blogpost for a &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/optimizing-power-on-nrf52-designs#:~:text=Optimizing%20Power%20on%20nRF52%20Designs%201%20System%20By,while%20%281%29%20loop%20in%20the%20SDK%20examples.%20"&gt;introduction to power optimization of nRF52 series SoCs&lt;/a&gt;.[/quote]
&lt;p&gt;yes, I followed the Given instructions. are there any power management Example Code on nrf connect for vscode zephyr ncs to clear Concepts?&amp;nbsp;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/98804/rtc-running-in-system-on-mode-current-consumption/422949"]Have you started work on the hardware design, with regards to your power circuitry and configuration?[/quote]
&lt;p&gt;currently, our hardware contain nRF52833 standalone which is directly connected to 3v button cell. our goal to achieve&amp;nbsp;minimum current consumption tracker device nearly ~ 1 uA. Current&amp;nbsp; consumption is majorly depend upon Application Software Flow. could you please suggest us any external hardware configuration?&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC Running in System ON Mode Current Consumption?</title><link>https://devzone.nordicsemi.com/thread/422949?ContentTypeID=1</link><pubDate>Fri, 28 Apr 2023 11:16:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7114db8d-6d99-4c44-a3a0-188ba293c55f</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="starkAbhi"]My apologies for late reply[/quote]
&lt;p&gt;No problem at all - we continue this whenever you get the chance :)&amp;nbsp;&lt;/p&gt;
[quote user="starkAbhi"]could&amp;nbsp;you&amp;nbsp;please suggest me code snippet or example to disable RAM. and enable it again.[/quote]
&lt;p&gt;You can set which RAM blocks will be retained and which will not as &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52833/power.html?cp=5_1_0_4_2_4#ram_sections"&gt;described in the documentation I referenced below&lt;/a&gt;, please give this a try and let me know if you run into any issues - then you can share the code snippets from what you attempted and what you were trying to achieve, then we can take a look and guide you to how you could achieve it.&lt;/p&gt;
[quote user="starkAbhi"]what is the most power efficient techniques to increase the battery life?[/quote]
&lt;p&gt;Shutting down everything that you do not need during sleep is a good start, but there are other things you can do as well. You should also take a look at this blogpost for a &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/optimizing-power-on-nrf52-designs#:~:text=Optimizing%20Power%20on%20nRF52%20Designs%201%20System%20By,while%20%281%29%20loop%20in%20the%20SDK%20examples.%20"&gt;introduction to power optimization of nRF52 series SoCs&lt;/a&gt;.&lt;br /&gt;Have you started work on the hardware design, with regards to your power circuitry and configuration?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC Running in System ON Mode Current Consumption?</title><link>https://devzone.nordicsemi.com/thread/422872?ContentTypeID=1</link><pubDate>Fri, 28 Apr 2023 05:53:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d67fb6af-6cb5-45e1-bac4-22f55e2ac073</guid><dc:creator>starkAbhi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;My apologies for late reply, could&amp;nbsp;you&amp;nbsp;please suggest me code snippet or example to disable RAM. and enable it again. what is the most power efficient techniques to increase the battery life?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC Running in System ON Mode Current Consumption?</title><link>https://devzone.nordicsemi.com/thread/422321?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2023 13:48:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b0d00d3-e4eb-433b-844f-f1621b0aa932</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="starkAbhi"]thanks for sharing , i already have seen it.&amp;nbsp;[/quote]
&lt;p&gt;I am glad to hear that! :)&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Looking at the code you have shared you really should check the returned error codes from your SDK function calls - if you do not then you will have no way to know whether the call completed successfully or failed for whatever reason.&lt;br /&gt;&lt;br /&gt;You will also need to explicitly disable your RAM before going to sleep, which will require your to re-configure and initialize your application when you wake from sleep (because the contents of the RAM will be wiped).&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC Running in System ON Mode Current Consumption?</title><link>https://devzone.nordicsemi.com/thread/421732?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2023 11:59:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c70dd410-d110-4fb2-bc18-2332de7edc83</guid><dc:creator>starkAbhi</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/98804/rtc-running-in-system-on-mode-current-consumption/421715"]We do unfortunately not have any examples that match this description already, but it should not take you so long to set this up yourself. I would suggest that you start out with one of the minimal BLE example, such as &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/multiple_adv_sets/README.html"&gt;the Multiple Advertising Sets&lt;/a&gt;&amp;nbsp;sample, trim away the extra advertising sets, and implement the go-to-sleep and wake-from-sleep procedures (turning off/on peripherals and RAM, etc.).[/quote]
&lt;p&gt;i have some experience with nrf connect vscode sdk. i need only some guidance on API to put device in sleep to minimize sleep current near to 1.6uA or less.&lt;/p&gt;
&lt;p&gt;below code i used to advertise-sleep-periodically.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;//advertiser sleep

#include &amp;lt;zephyr/types.h&amp;gt;
#include &amp;lt;stddef.h&amp;gt;
#include &amp;lt;zephyr/sys/util.h&amp;gt;
#include &amp;lt;zephyr/bluetooth/bluetooth.h&amp;gt;
#include &amp;lt;zephyr/bluetooth/hci.h&amp;gt;
//---power management lib--
#include &amp;lt;zephyr/pm/pm.h&amp;gt;
#include &amp;lt;zephyr/pm/device.h&amp;gt;
/////////////////////////////

#define DEVICE_NAME CONFIG_BT_DEVICE_NAME
#define DEVICE_NAME_LEN (sizeof(DEVICE_NAME) - 1)

uint8_t vol_Per = 0; //voltage in % but hex converter it

static uint8_t adv_data[] = {
0x0f,0x18, //uuid battery service uuid[1],uuid[0] //0x180f: battery services
0x10 //data: battery percentage hex to % 0x10 = 16%
};

static const struct bt_data ad[] = {
BT_DATA_BYTES(BT_DATA_FLAGS, BT_LE_AD_NO_BREDR),
BT_DATA(BT_DATA_SVC_DATA16,adv_data,3),   
};

/* Set Name adv data */
static const struct bt_data sd[] = {
BT_DATA(BT_DATA_NAME_COMPLETE, DEVICE_NAME, DEVICE_NAME_LEN),
};

static void bt_ready(int err) {
	char addr_s[BT_ADDR_LE_STR_LEN];
	bt_addr_le_t addr = {0};
	size_t count = 1;
	/* Start advertising */
	bt_le_adv_start(BT_LE_ADV_NCONN_IDENTITY, ad, ARRAY_SIZE(ad), sd, ARRAY_SIZE(sd));

	bt_id_get(&amp;amp;addr, &amp;amp;count);
	bt_addr_le_to_str(&amp;amp;addr, addr_s, sizeof(addr_s));
	// printk(&amp;quot;Beacon started, advertising as %s\n&amp;quot;, addr_s);
}

void main(void) {
/* Initialize the Bluetooth Subsystem */
bt_enable(NULL);
while(1) {
bt_ready(0); //advertising
/* Update advertising */
//// -------simulating voltage increasing gradually-----------
// vol_Per++;
// adv_data[2] = vol_Per;
// if (vol_Per &amp;gt; 64) {
// vol_Per = 0;
// }
// k_sleep(K_SECONDS(1)); //1 second
// //////////////////////////////////////////////////////
// bt_le_adv_update_data(ad, ARRAY_SIZE(ad),sd, ARRAY_SIZE(sd));

k_sleep(K_SECONDS(1)); //WAIT time
bt_le_adv_stop();
pm_state_force(0u, &amp;amp;(struct pm_state_info){PM_STATE_SUSPEND_TO_IDLE, 0, 0}); //nrfonly switch: 2.2 uA 
k_sleep(K_SECONDS(3)); //update time
} //end of while
}//end of main
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/98804/rtc-running-in-system-on-mode-current-consumption/421715"]If you are not yet familiar with the nRF Connect SDK then &lt;a href="https://academy.nordicsemi.com/"&gt;I would highly recommend taking a look through the DevAcademy Fundementals course to quickly familiarize with the SDK&lt;/a&gt;.[/quote]
&lt;p&gt;thanks for sharing , i already have seen it.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC Running in System ON Mode Current Consumption?</title><link>https://devzone.nordicsemi.com/thread/421715?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2023 11:25:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acd5f154-5af1-4a94-94a4-610d87f8449b</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
[quote user="starkAbhi"]System off sleep is not possible because device is independent . only software based interrupt can be feasible.[/quote]
&lt;p&gt;Thank you for clarifying.&lt;/p&gt;
[quote user="starkAbhi"]system on + rtc+ lfrc + no ram retention only. ble gets on advertise-sleep-repeat. now could you provide any example code to achieve this?[/quote]
&lt;p&gt;We do unfortunately not have any examples that match this description already, but it should not take you so long to set this up yourself. I would suggest that you start out with one of the minimal BLE example, such as &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/multiple_adv_sets/README.html"&gt;the Multiple Advertising Sets&lt;/a&gt;&amp;nbsp;sample, trim away the extra advertising sets, and implement the go-to-sleep and wake-from-sleep procedures (turning off/on peripherals and RAM, etc.).&lt;br /&gt;&lt;br /&gt;Give this a try, and let me know if you encounter any issues or questions along the way :)&amp;nbsp;&lt;br /&gt;&lt;br /&gt;If you are not yet familiar with the nRF Connect SDK then &lt;a href="https://academy.nordicsemi.com/"&gt;I would highly recommend taking a look through the DevAcademy Fundementals course to quickly familiarize with the SDK&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC Running in System ON Mode Current Consumption?</title><link>https://devzone.nordicsemi.com/thread/421695?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2023 10:09:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7ddc323-dbff-41aa-a3ad-b846911cf7cd</guid><dc:creator>starkAbhi</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/98804/rtc-running-in-system-on-mode-current-consumption/421664"]Is there an option for the device to be in SYSTEM_OFF sleep for any of this duration? Will the device be receiving an external interrupt at any point that could have been used to wake the device from SYSTEM_OFF sleep, for instance?[/quote]
&lt;p&gt;System off sleep is not possible because device is independent . only software based interrupt can be feasible.&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/98804/rtc-running-in-system-on-mode-current-consumption/421664"]This will depend on what other peripherals and processes you have got going in your application - you will need to disable all peripherals(except the RTC) and radio activity, and then lastly turn off the ram as well.&lt;br /&gt;You can &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52833/power.html#ram_sections"&gt;read about how to configure the RAM retention during SYSTEM_ON and SYSTEM_OFF here&lt;/a&gt;.[/quote]
&lt;p&gt;system on + rtc+ lfrc + no ram retention only. ble gets on advertise-sleep-repeat. now could you provide any example code to achieve this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC Running in System ON Mode Current Consumption?</title><link>https://devzone.nordicsemi.com/thread/421664?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2023 08:34:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6dd9b63f-87d9-4eb0-a546-be0b7233780f</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="starkAbhi"]yes , i measure the current consumption by flipping the switch on Nrf Only.[/quote]
&lt;p&gt;Thank you for clarifying.&lt;/p&gt;
[quote user="starkAbhi"]yes, my requirement of project is to advertise data and sleep periodically so that device consume less amount of current from small battery.[/quote]
&lt;p&gt;Is there an option for the device to be in SYSTEM_OFF sleep for any of this duration? Will the device be receiving an external interrupt at any point that could have been used to wake the device from SYSTEM_OFF sleep, for instance?&lt;/p&gt;
[quote user="starkAbhi"]that would be nice to have example code on how to put nrf52833 on sleep system on /no-ram retention.[/quote]
&lt;p&gt;This will depend on what other peripherals and processes you have got going in your application - you will need to disable all peripherals(except the RTC) and radio activity, and then lastly turn off the ram as well.&lt;br /&gt;You can &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52833/power.html#ram_sections"&gt;read about how to configure the RAM retention during SYSTEM_ON and SYSTEM_OFF here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC Running in System ON Mode Current Consumption?</title><link>https://devzone.nordicsemi.com/thread/421436?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2023 09:48:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2600db0a-5f81-4f5a-9194-68d5dbb60f33</guid><dc:creator>starkAbhi</dc:creator><description>&lt;p&gt;hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="ui-userpresence ui-tip present" data-userid="87869" data-contentid="097cdf71-1244-4577-a0ba-9f61ad45afd7" data-contenttypeid="e9ed4118-60ed-4f2b-a026-5705b8793d05" data-present="true" data-presentlabel="Online" data-notpresentlabel="Offline" data-tip="Online"&gt;Online&lt;/span&gt;&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/karl-ylvisaker"&gt;Karl Ylvisaker&lt;/a&gt;&amp;nbsp;said:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I would also like to emphasize that this is the electrical specification for the nRF52833 SoC, not the nRF52833 DK - i.e if you mention the consumption of the DK it might differ from these numbers since the DK has extra peripherals and circuitry that might increase consumption.&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;span&gt;yes , i measure the current consumption by flipping the switch on Nrf Only.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="ui-userpresence ui-tip present" data-userid="87869" data-contentid="097cdf71-1244-4577-a0ba-9f61ad45afd7" data-contenttypeid="e9ed4118-60ed-4f2b-a026-5705b8793d05" data-present="true" data-presentlabel="Online" data-notpresentlabel="Offline" data-tip="Online"&gt;Online&lt;/span&gt;&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/karl-ylvisaker"&gt;Karl Ylvisaker&lt;/a&gt;&amp;nbsp;said:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&lt;sub&gt;ON_RAMOFF_RTC&amp;nbsp;&lt;/sub&gt;mode has a power consumption of 1.5 &amp;micro;A, could this be what you are looking for?&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;span&gt;yes, my requirement of project is to advertise data and sleep periodically so that device consume less amount of current from small battery. it increase the battery life up to 5 years. that would be nice to have example code on how to put nrf52833 on sleep system on /no-ram retention.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC Running in System ON Mode Current Consumption?</title><link>https://devzone.nordicsemi.com/thread/421269?ContentTypeID=1</link><pubDate>Wed, 19 Apr 2023 13:14:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9aa10d7b-e189-42c2-b191-c2455b54b1b8</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="starkAbhi"]i want to know during system in sleep. in which nrf52833 dk consume only 2.2 uA. so which peripheral are on in the sleep. rtc+lfrtc+ram retention = 2.2uA??[/quote]
&lt;p&gt;I would also like to emphasize that this is the electrical specification for the nRF52833 SoC, not the nRF52833 DK - i.e if you mention the consumption of the DK it might differ from these numbers since the DK has extra peripherals and circuitry that might increase consumption.&lt;br /&gt;&lt;br /&gt;If you intend to measure this on the DK you should flip the switch to &amp;#39;nRF Only&amp;#39; mode, so that only the SoC is powered.&lt;/p&gt;
[quote user="starkAbhi"]how can i lower the current consumption in sleep. less than 2uA like 1.6uA something?[/quote]
&lt;p&gt;&lt;span&gt;I&lt;sub&gt;ON_RAMOFF_RTC&amp;nbsp;&lt;/sub&gt;mode has a power consumption of 1.5 µA, could this be what you are looking for?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC Running in System ON Mode Current Consumption?</title><link>https://devzone.nordicsemi.com/thread/421023?ContentTypeID=1</link><pubDate>Tue, 18 Apr 2023 12:21:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c701dfe4-672e-48c7-8fb1-15bcbf9d650c</guid><dc:creator>starkAbhi</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;i have read the electrical specification. i want to know during system in sleep. in which nrf52833 dk consume only 2.2 uA. so which peripheral are on in the sleep. rtc+lfrtc+ram retention = 2.2uA?? or how can i lower the current consumption in sleep. less than 2uA like 1.6uA something?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC Running in System ON Mode Current Consumption?</title><link>https://devzone.nordicsemi.com/thread/421013?ContentTypeID=1</link><pubDate>Tue, 18 Apr 2023 12:00:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89737fbb-cf02-415b-bd08-1768cfeabb66</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;For information about the power consumption in these different scenarios please take a look at &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52833/_tmp/nrf52833/autodita/CURRENT/parameters.i_sleep.html"&gt;the Electrical Specification in the Product Specification.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>