<?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>Reset-surviving system clock on nrf54</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116971/reset-surviving-system-clock-on-nrf54</link><description>Hi! 
 I&amp;#39;m writing new firmware for the nrf54 family, and I want to have a system timer with 1s resolution (clock). This clock will be occasionally synchronized with epoch, so it will provide the date source. 
 I would like to ensure that this clock is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Dec 2024 22:53:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116971/reset-surviving-system-clock-on-nrf54" /><item><title>RE: Reset-surviving system clock on nrf54</title><link>https://devzone.nordicsemi.com/thread/513720?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2024 22:53:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:648b1d3e-6875-4406-9af9-d3354bd0b1a8</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;What you were seeing when you have BLE activity is&amp;nbsp;&lt;em&gt;most likely&lt;/em&gt; the device in System ON Idle between the&amp;nbsp;radio events. The expected current of System ON Idle with full RAM retention is 3uA. In this state,&amp;nbsp;as you are running a&amp;nbsp;RTOS, you need the RTOS system clock, and thus either GRTC or RTC has to be on. GRTC is good for this purpose.&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;System OFF sample demonstrate the System OFF state. That is a deeper state of sleep. 4uA is quite high for this.&amp;nbsp;If you want to explore this mode further, make sure you have turned off all peripherals, and turn off RAM retention. Also, your application&amp;nbsp;restart when it wakes up from this state.&lt;/p&gt;
[quote user="McRancor"]Is there a way to run zephyr, with BLE advertising, without GRTC enabled?[/quote]
&lt;p&gt;In most common use cases of BLE advertising, you will be in System ON Idle, so you will have GRTC (or RTC, which isn&amp;#39;t superior power-consumption wise).&lt;/p&gt;
&lt;p&gt;You can theoretically put the device in System OFF, but that is pretty niche.&amp;nbsp;A common pattern to connectable devices is to have the device advertise for a while, and if no connection happened, put the device into&amp;nbsp;System OFF sleep.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset-surviving system clock on nrf54</title><link>https://devzone.nordicsemi.com/thread/513509?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2024 20:21:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01387628-76ba-41ef-bfee-e10e0908d20b</guid><dc:creator>McRancor</dc:creator><description>&lt;p&gt;I tested the system_off example, without retention (the basic case) and I&amp;#39;m getting current consumption at the level of almost 4uA. This is the current chart: &lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1733343087346v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I see it has GRTC enabled, and I suspect this is it.&lt;/p&gt;
&lt;p&gt;The power consumption is actually part of the topic because I&amp;#39;m a bit concerned that the GRTC running is consuming more current than the whole nrf52 project with advertising running. And I&amp;#39;m aiming for the lowest consumption possible.&lt;/p&gt;
&lt;p&gt;Is there a way to run zephyr, with BLE advertising, without GRTC enabled?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset-surviving system clock on nrf54</title><link>https://devzone.nordicsemi.com/thread/513454?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2024 14:01:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f4ed16c-acc1-4173-83cd-259ceb44289c</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Whether GRTC or RTC is used for System clock is controlled by&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.8.0/page/kconfig/index.html#CONFIG_NRF_GRTC_TIMER"&gt;CONFIG_NRF_GRTC_TIMER&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.8.0/page/kconfig/index.html#CONFIG_NRF_RTC_TIMER"&gt;CONFIG_NRF_RTC_TIMER&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;By default, GRTC is used. Therefore, it is indeed used under the hood for delayed queue.&lt;/p&gt;
&lt;p&gt;If you are sure that all threads have gone idle then 10uA&amp;nbsp;System ON Idle is a little high. &lt;br /&gt;I recommend using Hello World sample and just let main returns as a baseline.&lt;/p&gt;
&lt;p&gt;But diving into current consumption analysis might sidetrack&amp;nbsp;the topic of GRTC here, so unless you&amp;nbsp;think this is related to the GRTC configuration somehow, I would like to recommend diving into it in a different dedicated case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset-surviving system clock on nrf54</title><link>https://devzone.nordicsemi.com/thread/513443?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2024 13:45:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bb9f574-3c84-4931-a6a7-e3ebf95d5583</guid><dc:creator>McRancor</dc:creator><description>&lt;p&gt;Is the GRTC used by zephyr for delayed queues etc? I don&amp;#39;t see any difference in power consumption once started using GRTC, so I assume it was already running. Currently seeing power consumption on the levels of 10uA, with advertising every 10s (max time), uart disabled. Is this expected on 54L15DK? &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset-surviving system clock on nrf54</title><link>https://devzone.nordicsemi.com/thread/513308?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2024 22:07:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0327d415-0f1c-4d31-803c-c010a9f51a2d</guid><dc:creator>Emil Lenngren</dc:creator><description>&lt;p&gt;Yes you can use GRTC. It consists of an &amp;quot;internal&amp;quot; low power clock using the 32 kHz LFXO source but will be woken up to high accuracy mode (16 MHz) when necessary. A wake up from system off will reset the system (and reset all visible registers of GRTC) but keep the internal low power clock running and maintain its counter, so if you then enable the SYSCOUNTER you can then read the current time. If instead keeping the system on but issuing a (soft) system reset, it appears also the rest of the GRTC retains the registers, like the CC values and the last known SYSCOUNTER.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>