<?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>nrf54l15: RTC causing increase in sleep current</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120231/nrf54l15-rtc-causing-increase-in-sleep-current</link><description>Hello Team, 
 I am using nrf54l15 dk for the development. In this, I am using k_sleep to put the device in system-on sleep mode. Using this, I have achieved the sleep current of 4 micro Amps with all RAM enabled. But I have a use case where I want to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Apr 2025 11:26:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120231/nrf54l15-rtc-causing-increase-in-sleep-current" /><item><title>RE: nrf54l15: RTC causing increase in sleep current</title><link>https://devzone.nordicsemi.com/thread/529967?ContentTypeID=1</link><pubDate>Tue, 01 Apr 2025 11:26:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cca3b20-2f65-45d2-96ba-1db0cbba9c4b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Attaching a minimal sample where I used a k_timer to wakeup every 1000ms to toggle a LED:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/k_5F00_timer_5F00_sample_5F00_ncs290.zip"&gt;devzone.nordicsemi.com/.../k_5F00_timer_5F00_sample_5F00_ncs290.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Measured average current consumption over 60 seconds on nRF54L15 DK is about 5.4uA (VDD=3.0V) or 5.7uA (VDD=1.8V):&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/ppk_2D00_20250401T111919.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/ppk_2D00_20250401T112638.png" /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf54l15: RTC causing increase in sleep current</title><link>https://devzone.nordicsemi.com/thread/529677?ContentTypeID=1</link><pubDate>Mon, 31 Mar 2025 06:10:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:390a2a0f-4ec0-4d97-b05a-662441a3c62a</guid><dc:creator>payalD</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Any updates on the above query?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf54l15: RTC causing increase in sleep current</title><link>https://devzone.nordicsemi.com/thread/529455?ContentTypeID=1</link><pubDate>Fri, 28 Mar 2025 08:44:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa98a972-b74a-44f1-b193-ed7e6a88b159</guid><dc:creator>payalD</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote userid="14926" url="~/f/nordic-q-a/120231/nrf54l15-rtc-causing-increase-in-sleep-current/529322"]You can use the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.0/page/zephyr/kernel/services/timing/timers.html"&gt;Timer API&lt;/a&gt;&amp;nbsp;to configure periodical wakeup[/quote]
&lt;p&gt;I tried the Timer API to configure periodic wakeups. The wake-up functionality works as expected, but the &lt;strong&gt;sleep current&lt;/strong&gt; has &lt;strong&gt;increased to 8 - 10 micro Amps&lt;/strong&gt;. Following is the code snipped I have used to configure the periodic wake-up timer.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define WAKEUP_INTERVAL_MS          120000

uint8_t timer_wakeup;

void init_wakeup_timer(void)
{
    k_timer_start(&amp;amp;wakeup_timer, K_NO_WAIT, K_MSEC(WAKEUP_INTERVAL_MS));
    k_timer_status_sync(&amp;amp;wakeup_timer);
}

void wakeup_handler(struct k_timer * timer)
{
    timer_wakeup = 1;
}

uint8_t get_timer_wakeup_flag(void)
{
    return timer_wakeup;
}

void set_timer_wakeup_flag(uint8_t val)
{
    timer_wakeup = val;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I continuously check the value of timer_wakeup; if it is 1, action is taken to wake-up the device from sleep mode.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void execute_sleep_app(void)
{
    if(sleep_flag)
    {
		pm_device_action_run(UART0, PM_DEVICE_ACTION_SUSPEND);
		pm_device_action_run(UART1, PM_DEVICE_ACTION_SUSPEND);

        while(1)
        {
            k_sleep(K_SECONDS(5));
            if(get_timer_wakeup_flag() == 1)
            {
                break;
            }
        }

        if(get_timer_wakeup_flag())
        {
			pm_device_action_run(UART0, PM_DEVICE_ACTION_RESUME);
			pm_device_action_run(UART1, PM_DEVICE_ACTION_RESUME);
            set_timer_wakeup_flag(0);
            set_sleep_flag(0);
            notify_wakeup(APP_METER);
        }
    }
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What changes should I make to reduce the sleep current?&lt;/p&gt;
&lt;p&gt;I tried to stop the timer using&amp;nbsp;&lt;strong&gt;k_timer_stop(&amp;amp;wakeup_timer);&amp;nbsp;&lt;/strong&gt;before putting the device in sleep mode, it reduced the sleep current to 4 micro Amps, but the device did not wake up once put in sleep mode.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Payal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf54l15: RTC causing increase in sleep current</title><link>https://devzone.nordicsemi.com/thread/529322?ContentTypeID=1</link><pubDate>Thu, 27 Mar 2025 14:01:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2e25a7c-2552-4757-aaf9-60d5af8db18b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The GRTC is already used as the kernel timer in Zephyr and will be always running to handle scheduling. You can use the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.0/page/zephyr/kernel/services/timing/timers.html"&gt;Timer API&lt;/a&gt;&amp;nbsp;to configure periodical wakeup.&amp;nbsp;The timer API is very simple and explained well in the examples in the documentation.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>