<?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>BLE Mesh Deep Sleep and RTC Setup</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119864/ble-mesh-deep-sleep-and-rtc-setup</link><description>Hi, 
 I am using Mesh of 30 nodes with avg Current Consumption 6mA and 2mA in sleep mode(by calling k_sleeps) , timer is 1s timer is running to keep Real Time incremented. 
 Want to achieve Deep Sleep current in micro amps, while in deep sleep time needs</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 31 Mar 2025 09:46:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119864/ble-mesh-deep-sleep-and-rtc-setup" /><item><title>RE: BLE Mesh Deep Sleep and RTC Setup</title><link>https://devzone.nordicsemi.com/thread/529726?ContentTypeID=1</link><pubDate>Mon, 31 Mar 2025 09:46:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e740e2b7-f435-4c9b-a11a-cd1e4661588b</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Since the issue is getting I2C working with cpuapp_ns, it is completely different from the topic here. Please open a new DevZone case for that, because we try to keep each case focused on one topic.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh Deep Sleep and RTC Setup</title><link>https://devzone.nordicsemi.com/thread/529725?ContentTypeID=1</link><pubDate>Mon, 31 Mar 2025 09:39:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c269e72-0c2f-4cb7-97bc-acbd17f5b327</guid><dc:creator>AP</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Using system off mode currently for sleep and external RTC via UART to wake mcu up via alarm.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have gone through the suggested sdk fundamental course for I2C and using provided example only, I2c&amp;nbsp;&amp;nbsp;works with cpuapp but not with cpuapp_ns, Please help&amp;nbsp;to resolve.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh Deep Sleep and RTC Setup</title><link>https://devzone.nordicsemi.com/thread/528580?ContentTypeID=1</link><pubDate>Mon, 24 Mar 2025 11:18:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05c73630-3c56-49d4-a040-c832aafa5491</guid><dc:creator>Hieu</dc:creator><description>[quote user="Atendra Pathak"]I should have been more specific, Using &lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;pm_device&amp;nbsp; as well as&amp;nbsp;Power Off API. Currently I have two mode , Normal Mesh(5mA), PowerOff(200uA). But need one more mode Low Power(1.5mA to 2.5mA) if Possible?&lt;/span&gt;[/quote]
&lt;p&gt;Is 200uA&amp;nbsp;the entire board, or just the nRF SoC? If it&amp;#39;s just the nRF chip, then that&amp;#39;s really high. You will want to check&amp;nbsp;and make sure every peripherals is disabled. That&amp;#39;s unless you need to keep something running, of course.&lt;/p&gt;
[quote user="Atendra Pathak"]&lt;p&gt;By Setting LPN, Current Reduces(1.7mA, when no other node in proximity) but if any node available it seems to consider that node as friend(even if i don&amp;#39;t set that as friend) when clearing LPN , I am not able to come back to normal.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Note: Friend Feature is not needed for now, setting LPN only to achieve lower Power.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;So if without LPN, there are ways to reduce power consumption from 5mA Please suggest?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;You seem to misunderstand the LPN feature. LPN is a BT Mesh feature that needs a Friend Node to work, always.&lt;/p&gt;
&lt;p&gt;If a node does not support and enable LPN, it&amp;#39;s really hard to get good&amp;nbsp;power consumption with it, because by default,&amp;nbsp;the radio would be running almost 100% of the time to&amp;nbsp;minimize packet losses.&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t want to use the LPN feature, the best you can do is suspend all peripherals and ensure all threads go to idle to achieve System ON Idle.&lt;/p&gt;
&lt;p&gt;Also 1.7mA in LPN mode is really high. Is this average current over some time? &lt;br /&gt;Please look into the current measurement&amp;nbsp;in details and see what the actual current when the LPN node is sleeping is.&lt;br /&gt;You will also want to&amp;nbsp;try&amp;nbsp;measuring the LPN configuration with the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.1/page/nrf/samples/bluetooth/mesh/light_switch/README.html"&gt;Bluetooth Mesh: Light switch&lt;/a&gt;&amp;nbsp;sample&amp;nbsp;to have&amp;nbsp;a reference point.&lt;/p&gt;
&lt;p&gt;Please also keep in mind that&amp;nbsp;a node spends a lot of time in scanning. You can find the expected&amp;nbsp;current for scanning listed here:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf5340/page/chapters/current_consumption/doc/current_consumption.html"&gt;Technical Documentation&lt;/a&gt;.&lt;/p&gt;
[quote user="Atendra Pathak"]&lt;span&gt;&lt;span&gt;&lt;span&gt;I am also tried reducing tx power (&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;CONFIG_BT_CTLR_TX_PWR_MINUS_40=y&lt;span&gt;&lt;span&gt;&lt;span&gt;)&amp;nbsp;to -20,-40 and other values but its not working(warning says got value &amp;quot;n&amp;quot;).&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;[/quote]
&lt;p&gt;This is an option but note that it will significantly reduce your range. It also doesn&amp;#39;t have as much effect on Mesh devices, because a significant part of the power consumption comes from radio RX,&amp;nbsp;and lowering TX Power only helps with TX.&lt;/p&gt;
&lt;p&gt;As for configuration, you need to check which&amp;nbsp;TX Power your device support and only use&amp;nbsp;the supported power level. Also try using&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.0/page/kconfig/index.html#CONFIG_BT_CTLR_TX_PWR_ANTENNA"&gt;CONFIG_BT_CTLR_TX_PWR_ANTENNA&lt;/a&gt;. Bot the TX_PWR_ANTENNA and the TX_PWR_X configurations work, but the TX_PWR_ANTENNA configuration takes priority.&lt;/p&gt;
&lt;p&gt;Note that both of them&amp;nbsp;changes the TX Power statically/permanently. If you want dynamic TX Power, you will need to look into the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.1/page/zephyr/samples/bluetooth/hci_pwr_ctrl/README.html#bluetooth_hci_pwr_ctrl"&gt;HCI Power Control&lt;/a&gt;&amp;nbsp;sample.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh Deep Sleep and RTC Setup</title><link>https://devzone.nordicsemi.com/thread/528564?ContentTypeID=1</link><pubDate>Mon, 24 Mar 2025 09:36:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:201fdbe9-cca9-4819-9651-e63b1523602a</guid><dc:creator>AP</dc:creator><description>[quote userid="9456" url="~/f/nordic-q-a/119864/ble-mesh-deep-sleep-and-rtc-setup/528548"]To be sure, are you using&amp;nbsp;Power Management, &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;pm&lt;/span&gt;, or Device Power Management, &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;pm_device&lt;/span&gt;? [/quote]
&lt;p&gt;I should have been more specific, Using &lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;pm_device&amp;nbsp; as well as&amp;nbsp;Power Off API. Currently I have two mode , Normal Mesh(5mA), PowerOff(200uA). But need one more mode Low Power(1.5mA to 2.5mA) if Possible?&lt;/span&gt;&lt;/p&gt;
[quote userid="9456" url="~/f/nordic-q-a/119864/ble-mesh-deep-sleep-and-rtc-setup/528548"]What is the problem when you run bt_mesh_lpn_set()?[/quote]
&lt;p&gt;By Setting LPN, Current Reduces(1.7mA, when no other node in proximity) but if any node available it seems to consider that node as friend(even if i don&amp;#39;t set that as friend) when clearing LPN , I am not able to come back to normal.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Note: Friend Feature is not needed for now, setting LPN only to achieve lower Power.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;So if without LPN, there are ways to reduce power consumption from 5mA Please suggest?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;I am also tried reducing tx power (&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;CONFIG_BT_CTLR_TX_PWR_MINUS_40=y&lt;span&gt;&lt;span&gt;&lt;span&gt;)&amp;nbsp;to -20,-40 and other values but its not working(warning says got value &amp;quot;n&amp;quot;).&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh Deep Sleep and RTC Setup</title><link>https://devzone.nordicsemi.com/thread/528548?ContentTypeID=1</link><pubDate>Mon, 24 Mar 2025 08:24:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7699ea2a-4b75-4834-a6a8-ef325bd1db60</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hello AP,&lt;/p&gt;
[quote user="Atendra Pathak"]Thanks now I am able to used PM.[/quote]
&lt;p&gt;To be sure, are you using&amp;nbsp;Power Management, &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;pm&lt;/span&gt;, or Device Power Management, &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;pm_device&lt;/span&gt;? Or are you using the Power Off API?&lt;/p&gt;
&lt;p&gt;As I said, PM is&amp;nbsp;not supported in NCS v2.9.0, so if you are somehow using it,&amp;nbsp;we need to be sure you are getting what you expect.&lt;/p&gt;
&lt;p&gt;The naming of those Zephyr APIs are a little confusing, but it&amp;#39;s important to know what you are running.&lt;/p&gt;
[quote user="Atendra Pathak"]But still waiting response on &lt;em&gt;&amp;quot;Also I am successfully able to enter in LPN Mode but seems not able to come out of LPN mode is that possible or not to dynamically changing states?&amp;quot;&lt;/em&gt;[/quote]
&lt;p&gt;What is the problem when you run bt_mesh_lpn_set()?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh Deep Sleep and RTC Setup</title><link>https://devzone.nordicsemi.com/thread/528444?ContentTypeID=1</link><pubDate>Fri, 21 Mar 2025 15:49:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56aaab98-5aec-4e12-b590-b1a79830ba93</guid><dc:creator>AP</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;Thanks now I am able to used PM.&lt;/p&gt;
&lt;p&gt;But still waiting response on &lt;em&gt;&amp;quot;Also I am successfully able to enter in LPN Mode but seems not able to come out of LPN mode is that possible or not to dynamically changing states?&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;When low power mode active it by default(as well as using function in below code) goes in to LPN after 16 sec and Current reduces from 5mA to 1.6mA.&lt;/p&gt;
&lt;p&gt;but not able to bring back to normal mode.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;void SCHNEE_lpn_enable(void)&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;{&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; int err;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; // //Disable sending of the Secure Network Beacon.&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; bt_mesh_beacon_set(&lt;span&gt;0&lt;/span&gt;);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; // //Disable the GATT Proxy feature.&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; bt_mesh_gatt_proxy_set(&lt;span&gt;0&lt;/span&gt;);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; //Set LPN&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; // Enable Low Power Node mode&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; err = bt_mesh_lpn_set(true); &amp;nbsp;// Passing true enables LPN mode&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; if (err) {&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printk(&lt;span&gt;&amp;quot;Failed to enable Low Power Node (err &lt;/span&gt;%d&lt;span&gt;)&lt;/span&gt;&lt;span&gt;\n&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;, err);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; } else {&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printk(&lt;span&gt;&amp;quot;Low Power Node mode enabled.&lt;/span&gt;&lt;span&gt;\n&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; }&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; k_sleep(K_SECONDS(&lt;span&gt;1&lt;/span&gt;));&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; // bt_mesh_lpn_set_cb(lpn_cb);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; // printk(&amp;quot;LPN mode set. Waiting for Friend Node...\n&amp;quot;);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; // while (1) {&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; // &amp;nbsp;k_sleep(K_SECONDS(10)); // Device sleeps while waiting for messages&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; // }&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; // Start periodic polling loop&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; //SCHNEE_lpn_poll_periodically();&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;}&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;void SCHNEE_lpn_disable(void)&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;{&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; int err;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; // //Enable the GATT Proxy feature.&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; bt_mesh_gatt_proxy_set(&lt;span&gt;1&lt;/span&gt;);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; // //Enable sending of the Secure Network Beacon.&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; bt_mesh_beacon_set(&lt;span&gt;1&lt;/span&gt;);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; //Reset LPN&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; // Disable Low Power Node mode&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; err = bt_mesh_lpn_set(false); &amp;nbsp;// Passing true enables LPN mode&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; if (err) {&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printk(&lt;span&gt;&amp;quot;Failed to disable Low Power Node (err &lt;/span&gt;%d&lt;span&gt;)&lt;/span&gt;&lt;span&gt;\n&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;, err);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; } else {&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printk(&lt;span&gt;&amp;quot;Low Power Node mode disabled.&lt;/span&gt;&lt;span&gt;\n&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; }&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; //bt_mesh_lpn_disable(1);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; //bt_mesh_lpn_friendship_end();&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; // err = bt_le_adv_start(BT_LE_ADV_CONN, NULL, 0, NULL, 0);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; // if (err) {&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; // &amp;nbsp; &amp;nbsp; printk(&amp;quot;Failed to bt_le_adv_start(err %d)\n&amp;quot;, err);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; // } else {&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; // &amp;nbsp; &amp;nbsp; printk(&amp;quot;bt_le_adv_start.\n&amp;quot;);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; // }&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;}&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh Deep Sleep and RTC Setup</title><link>https://devzone.nordicsemi.com/thread/528214?ContentTypeID=1</link><pubDate>Thu, 20 Mar 2025 12:32:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18661711-1706-4072-aaad-9adb31e25e09</guid><dc:creator>Hieu</dc:creator><description>[quote user="Atendra Pathak"]&lt;div&gt;&lt;span style="color:rgba(0, 0, 128, 1);"&gt;&lt;span style="color:rgba(0, 0, 0, 1);"&gt;1.Regarding PM&lt;/span&gt;&lt;em&gt;&amp;nbsp;(&lt;span&gt;CONFIG_PM=y)&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;span style="color:rgba(0, 0, 0, 1);"&gt;I tried with nrf52832dk and Its working.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:rgba(0, 0, 128, 1);"&gt;&lt;span style="color:rgba(0, 0, 0, 1);"&gt;2.in some discussion I found that in latest versions(after v2.5.0) PM is deprecated and not supported anymore for nrf5340&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:rgba(0, 0, 128, 1);"&gt;&lt;span style="color:rgba(0, 0, 0, 1);"&gt;3.Then I tried with v2.3.0 and its working.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:rgba(0, 0, 128, 1);"&gt;&lt;span style="color:rgba(0, 0, 0, 1);"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:rgba(0, 0, 128, 1);"&gt;&lt;span style="color:rgba(0, 0, 0, 1);"&gt;So&amp;nbsp;how to achieve it with v2.9.0?&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;[/quote][quote user="Atendra Pathak"]&lt;div&gt;&lt;span style="color:rgba(0, 0, 128, 1);"&gt;&lt;span style="color:rgba(0, 0, 0, 1);"&gt;1.how Come Out of LPN Mode.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:rgba(0, 0, 128, 1);"&gt;&lt;span style="color:rgba(0, 0, 0, 1);"&gt;2.PM(power management) for nrf5340, v2.9.0&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;[/quote]
&lt;p&gt;Your investigation is correct. CONFIG_PM is no longer supported for the nRF5340. &lt;br /&gt;The rationale is that the PM subsystem is intended to be used to switch the system over different power states.&lt;/p&gt;
&lt;p&gt;However, the nRF5340 only have two power state, System ON and System OFF, so&amp;nbsp;PM doesn&amp;#39;t fit.&lt;/p&gt;
&lt;p&gt;As for sleep states, as mentioned, there are two: System ON Idle and System OFF.&lt;/p&gt;
&lt;p&gt;System ON Idle is automatically entered when all threads go idle, and is automatically exited when any thread resume activity.&lt;/p&gt;
&lt;p&gt;To enter System OFF, you&amp;nbsp;will want to use the Power Off API instead. On the nRF5340, System OFF can only be exited with&amp;nbsp;specific GPIO, NFC, or LPCOMP events or reset. |&lt;br /&gt;Further information about System OFF:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf5340/page/chapters/pmu/doc/pmu.html"&gt;Power and clock management&lt;/a&gt;.&lt;br /&gt;SDK API Documentation:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/zephyr-apis-2.9.1/page/group_sys_poweroff.html"&gt;Zephyr API: System power off&lt;/a&gt;&lt;br /&gt;SDK Sample:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.1/page/zephyr/samples/boards/nordic/system_off/README.html#nrf_system_off"&gt;System Off&lt;/a&gt;&lt;/p&gt;
[quote user="Atendra Pathak"]3.RTC or similar timer active in sleep mode.[/quote][quote user="Atendra Pathak"]4.Regarding RTC I tried rtc0 and rtc1 both but seems like its not available for user. I need something that can increment clock time every second. while MCU is in sleep mode.[/quote]
&lt;p&gt;The RTC is available with&amp;nbsp;the correct configuration. One RTC is always reserved for System timekeeping.&lt;/p&gt;
&lt;p&gt;For&amp;nbsp;something&amp;nbsp;like tracking passing seconds, I recommend taking advantage of System time services instead. You can&amp;nbsp;calculate current time from system uptime and a reference point. Refer this documentation:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.1/page/zephyr/kernel/timeutil.html"&gt;Time Utilities&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Please experiment with them a little.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh Deep Sleep and RTC Setup</title><link>https://devzone.nordicsemi.com/thread/528025?ContentTypeID=1</link><pubDate>Wed, 19 Mar 2025 13:59:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2217a64-d9e9-4976-a40f-17ee333cf12a</guid><dc:creator>AP</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;Thank you, This information is helpful!&lt;/p&gt;
&lt;p&gt;However ,&amp;nbsp;&lt;span&gt;I am not able to use&amp;nbsp;RTC using &amp;quot;&lt;em&gt;&lt;span style="color:#000080;"&gt;&lt;span class="token keyword"&gt;const&lt;/span&gt;&lt;span class=""&gt; &lt;/span&gt;&lt;span class="token keyword"&gt;struct&lt;/span&gt;&lt;span class=""&gt; &lt;/span&gt;&lt;span class="token class-name"&gt;device&lt;/span&gt;&lt;span class=""&gt; &lt;/span&gt;&lt;span class="token operator"&gt;*&lt;/span&gt;&lt;span class=""&gt;rtc &lt;/span&gt;&lt;span class="token operator"&gt;=&lt;/span&gt;&lt;span class=""&gt; &lt;/span&gt;&lt;span class="token function"&gt;DEVICE_DT_GET&lt;/span&gt;&lt;span class="token punctuation"&gt;(&lt;/span&gt;&lt;span class="token function"&gt;DT_NODELABEL&lt;/span&gt;&lt;span class="token punctuation"&gt;(&lt;/span&gt;&lt;span class=""&gt;rtc1&lt;/span&gt;&lt;span class="token punctuation"&gt;)&lt;/span&gt;&lt;span class="token punctuation"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span class="token punctuation"&gt;;&lt;/span&gt;&lt;/em&gt;&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please suggest some samples code or tutorial for this.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Also I am successfully able to enter in LPN Mode but seems not able to come out of LPN mode is that possible or not to dynamically changing states?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Additionally when tried to use Power management configurations and API. its gives error. below config not supported.&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span style="color:#000080;"&gt;CONFIG_PM=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#000080;"&gt;CONFIG_PM_DEVICE=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;When I tried to use Sample code &lt;strong&gt;device_pm&lt;/strong&gt; , I am not getting option for nrf5340 board target in build config.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Waiting for your response!&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Edit:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;I tried Using RTC with&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span style="color:#000080;"&gt;&lt;em&gt;nrfx_rtc_t sti_period_rtc_1 = NRFX_RTC_INSTANCE(0);&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;and&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;em&gt;&lt;span style="color:#000080;"&gt;nrfx_rtc_t sti_period_rtc_1 = NRFX_RTC_INSTANCE(1);&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;but getting error-&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#000080;"&gt;&lt;em&gt;error: NRFX_RTC (defined at C:/ncs/v2.9.0/zephyr/modules/hal_nordic\nrfx/Kconfig:443,&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000080;"&gt;&lt;em&gt;modules\hal_nordic\nrfx/Kconfig:443) is assigned in a configuration file, but is not directly user-&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000080;"&gt;&lt;em&gt;configurable (has no prompt). It gets its value indirectly from other symbols. See&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000080;"&gt;&lt;em&gt;&lt;a href="http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_NRFX_RTC"&gt;docs.zephyrproject.org/.../kconfig.html&lt;/a&gt; and/or look up NRFX_RTC in the&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000080;"&gt;&lt;em&gt;menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration Values,&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000080;"&gt;&lt;em&gt;and Kconfig - Tips and Best Practices sections of the manual might be helpful too.&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#000080;"&gt;&lt;em&gt;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#000080;"&gt;&lt;em&gt;Edit2:&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#000080;"&gt;&lt;span style="color:#000000;"&gt;1.Regarding PM&lt;/span&gt;&lt;em&gt;&amp;nbsp;(&lt;span&gt;CONFIG_PM=y)&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;span style="color:#000000;"&gt;I tried with nrf52832dk and Its working.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#000080;"&gt;&lt;span style="color:#000000;"&gt;2.in some discussion I found that in latest versions(after v2.5.0) PM is deprecated and not supported anymore for nrf5340&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#000080;"&gt;&lt;span style="color:#000000;"&gt;3.Then I tried with v2.3.0 and its working.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#000080;"&gt;&lt;span style="color:#000000;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#000080;"&gt;&lt;span style="color:#000000;"&gt;So&amp;nbsp;how to achieve it with v2.9.0?&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#000080;"&gt;&lt;span style="color:#000000;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#000080;"&gt;&lt;span style="color:#000000;"&gt;4.Regarding RTC I tried rtc0 and rtc1 both but seems like its not available for user. I need something that can increment clock time every second. while MCU is in sleep mode.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#000080;"&gt;&lt;span style="color:#000000;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;&lt;span style="color:#000080;"&gt;&lt;span style="color:#000000;"&gt;In&amp;nbsp;Summary I have 3 points.&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#000080;"&gt;&lt;span style="color:#000000;"&gt;1.how Come Out of LPN Mode.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#000080;"&gt;&lt;span style="color:#000000;"&gt;2.PM(power management) for nrf5340, v2.9.0&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#000080;"&gt;&lt;span style="color:#000000;"&gt;3.RTC or similar timer active in sleep mode.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh Deep Sleep and RTC Setup</title><link>https://devzone.nordicsemi.com/thread/527884?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 15:23:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c0f6b60-4d34-4db4-a9b4-f8e000b7f203</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hello AP,&lt;/p&gt;
&lt;p&gt;You might be confused. The RTC is on by default&amp;nbsp;when using the nRF Connect SDK and the nRF5340.&lt;/p&gt;
&lt;p&gt;There are two states of sleeps:&lt;/p&gt;
&lt;p&gt;System ON Idle - This is automatically entered when all threads go idle.&lt;br /&gt;System OFF - This has to be entered manually. The consumption is even lower in this state.&lt;/p&gt;
&lt;p&gt;For more information about the state, please refer to the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf5340/page/chapters/pmu/doc/pmu.html"&gt;Power and clock management&lt;/a&gt;&amp;nbsp;section of the Product Specification.&lt;/p&gt;
&lt;p&gt;Since you are asking about RTC, you might want to know that in System OFF, the deepest sleep state, RTC is stopped, and the system can only be woken up by GPIO.&amp;nbsp;The system will also have to reinitialize from the beginning like after a reset.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>