<?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>Entering power management mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103296/entering-power-management-mode</link><description>Hi Nordic, 
 I am currently trying to enter power management mode in a board containing the nrf52840 SoC with the freeRTOS OS. 
 1. Is poer_managemnt_run() is the best option I have for moving the BLE component to low power mode? or is it better to shut</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Sep 2023 09:32:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103296/entering-power-management-mode" /><item><title>RE: Entering power management mode</title><link>https://devzone.nordicsemi.com/thread/444676?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2023 09:32:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bae0daaa-1c6d-4926-b49f-b734060b6c47</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sharon,&amp;nbsp;&lt;br /&gt;You still need the nrf_ (the header .h file) in some cases it&amp;#39;s used by the nrfx layer. Please follow what we have in the example in the SDK.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Entering power management mode</title><link>https://devzone.nordicsemi.com/thread/444559?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2023 15:19:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:553326bd-d85f-4f33-8ba6-027c65daf74a</guid><dc:creator>Sharon Vardi</dc:creator><description>[quote userid="2121" url="~/f/nordic-q-a/103296/entering-power-management-mode/444544"]You can&amp;#39;t use the higher driver if you don&amp;#39;t enable lower layer.[/quote]
&lt;p&gt;That&amp;#39;s The answer I was looking for.&lt;br /&gt;So in order to use the nrf_drv layer I need to also enable the nrfx_ layer since the nrf_drv uses the nrfx_ functions.&lt;/p&gt;
&lt;p&gt;Regarding the nrf_ functions (Hardware access layer) - it&amp;#39;s deprecated and only there for backward compatibility so it&amp;#39;s recommended to not use those?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Entering power management mode</title><link>https://devzone.nordicsemi.com/thread/444544?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2023 14:18:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23c497a1-1e9d-4f85-b39a-5986ed55314a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sharon,&amp;nbsp;&lt;br /&gt;I don&amp;#39;t really get it , why you want to disable nrfx_rtc ?&amp;nbsp;&lt;br /&gt;The nrf_drv_rtc is very thin, it&amp;#39;s only the overlay over the nrfx_rtc with no added feature.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;The RTC is always there on the register level, all the layers are there just to help you to make it easier to use the module.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can&amp;#39;t use the higher driver if you don&amp;#39;t enable lower layer.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Entering power management mode</title><link>https://devzone.nordicsemi.com/thread/444483?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2023 11:17:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c84a63d0-4dec-4066-a28c-51673ece1177</guid><dc:creator>Sharon Vardi</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;If I&amp;#39;m Enabling the nrf_drv_rtc for example:&lt;br /&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/pastedimage1693912431395v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;but I&amp;#39;m disabling the NRFX RTC peripheral driver:&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/pastedimage1693912486185v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;1.Does the processor still acknowledges the RTC peripheral?&lt;/p&gt;
&lt;p&gt;2. How can I acces the RTC peripheral - by using nrf_drv_ functions only? or beacuse the nrf_Drv layer using the nrfx_ layer function I&amp;#39;ll still be able to use nrfx_rtc functions?&lt;br /&gt;&lt;br /&gt;And in a more zoom-out prespective:&lt;br /&gt;Does the FreeRTOS processor changes the way he interpret our code according to the layers we enable?&lt;br /&gt;Does it have any meaning to if higher layer library is enabled above lower layer library?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Entering power management mode</title><link>https://devzone.nordicsemi.com/thread/444468?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2023 10:46:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:457ce2b0-099f-4a0c-b94f-7579834a1efc</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sharon,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We have multiple layers. For example with UART, the highest level library is app_uart, then one layer under app_uart is nrf_drv_uart. The driver in turn use the nrfx_uart HAL layer to access the UART. (nrfx uses nrf_uart.h to access the hardware register).&amp;nbsp;&lt;br /&gt;Depends on your application you can choose to access UART directly using nrfx or you can use the driver or the app. Each layer on the top will provide you more feature and flexibility so that your application doesn&amp;#39;t need to worry about the buffer , or handling the UART interrupt for example.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Please aware that nRF5 SDK is deprecated and no longer having any development. The current SDK platform we recommend is NRF Connect SDK.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Entering power management mode</title><link>https://devzone.nordicsemi.com/thread/444456?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2023 10:14:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0eaab5b2-8534-4569-9a57-8f15e7570721</guid><dc:creator>Sharon Vardi</dc:creator><description>&lt;p&gt;1.Not yet but I&amp;#39;ll give it a look, thank you.&lt;/p&gt;
&lt;p&gt;2. Regarding the nrf_ and nrfx_ - in our sdk_config.h, what are we supposed to configure between the three of them? I understood the diffrenece between the three, but if we want to make a sustainable code for the future we shoukd use the nrfx_ alone?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Entering power management mode</title><link>https://devzone.nordicsemi.com/thread/444447?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2023 09:29:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34436b61-cc26-4daa-a824-285a9cb38f36</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sharon,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you tried&amp;nbsp; our ble_app_hrs_freertos and verify the power consumption ?&amp;nbsp;&lt;br /&gt;__WFE will exist when there is an application interrupt.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regarding the nrf_drv, nrf_ and nrfx_ .&amp;nbsp;&lt;br /&gt;The nrf_drv is using nrfx_ as the HAL back end.&lt;/p&gt;
&lt;p&gt;The way it works is that we defined the nrfx_ to replace nrf_HAL. But there still some place nrf_ is&amp;nbsp;included but it&amp;#39;s only for backward compatible and in some cases, just the header file needed.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Entering power management mode</title><link>https://devzone.nordicsemi.com/thread/444188?ContentTypeID=1</link><pubDate>Sat, 02 Sep 2023 17:04:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f8836d8-9e9e-43df-99fd-aaf623b733e4</guid><dc:creator>Sharon Vardi</dc:creator><description>&lt;p&gt;Hi Hung,&lt;br /&gt;I have tried to use the power_management_run() function but is seems to exit the function. if there is no task running what other event (beside task timer interrupt) can cause the function to pass the __WFE line and finish her execution?&lt;br /&gt;&lt;br /&gt;In a different manner - what is the hierarchy between nrf_drv (legacy layer) function, nrf_ (HAL functions) and nrfx_ functions if all of them are enabled within our sdk_config.h file?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Entering power management mode</title><link>https://devzone.nordicsemi.com/thread/443889?ContentTypeID=1</link><pubDate>Thu, 31 Aug 2023 11:05:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da96b964-3409-43ee-a3c0-242d41742761</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sharon,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you let me know what exactly in&amp;nbsp;&lt;span&gt;power_management_run() function you have ?&amp;nbsp;&lt;br /&gt;Note that with freeRTOS included, the idle task will put the CPU to sleep. For example when BLE is not active (between connection event for example) the CPU will&amp;nbsp;be put to sleep and you will have low power consumption.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. When a peripheral is not used it will not draw current.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;My suggestion is to try taking a look at our example and do power profiling&amp;nbsp;on it to get an idea on how the power consumption is in an BLE application.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>