<?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-dk rtc</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122367/nrf54l15-dk-rtc</link><description>Hi,Team, 
 I&amp;#39;m currently using the nrf54l15-dk. I want to set the rtc of the nrf54l15-dk to obtain the timestamp. How should I configure the rtc? Which examples should I refer to? My ncs version is v2.8.0. 
 Thanks.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Nov 2025 07:30:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122367/nrf54l15-dk-rtc" /><item><title>RE: nrf54l15-dk rtc</title><link>https://devzone.nordicsemi.com/thread/553765?ContentTypeID=1</link><pubDate>Mon, 10 Nov 2025 07:30:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:960ff5c5-23b9-4381-b99d-b62caab48eb4</guid><dc:creator>Tom Weber</dc:creator><description>&lt;p&gt;The GRTC measures time in microseconds, not milliseconds. You need to convert between them.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf54l15-dk rtc</title><link>https://devzone.nordicsemi.com/thread/553746?ContentTypeID=1</link><pubDate>Sun, 09 Nov 2025 04:19:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:358b609c-4f75-4d14-bd95-7130b912af0c</guid><dc:creator>dede</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for your reply.&lt;br /&gt;As you said, calling k_msleep(1000) indeed adds 1 second.&lt;/p&gt;
&lt;p&gt;But how can I achieve adding 1 second to the timestamp? As I mentioned:&lt;br /&gt;&amp;quot;The app will send 8 bytes to my device: 0x10, 0xDB, 0x4D, 0xEE, 0x98, 0x01, 0x00, 0x00. Converting these to 13-digit decimal gives 1756344736528. This represents a Unix millisecond-level timestamp format. Converting it again to UTC format results in 20-09-27 21:32:16.528.&amp;quot; Currently, I can only calculate the 13-digit decimal number: 1756344736528. If I add 1 second to 1756344736528, converting it to UTC results in 2025-09-27 19:02:18.305, and the time is incorrect.&lt;br /&gt;Could you please tell me how to add 1 second to the value of 1756344736528 to achieve the addition of year, month, day, hour, minute, second, and millisecond?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf54l15-dk rtc</title><link>https://devzone.nordicsemi.com/thread/553652?ContentTypeID=1</link><pubDate>Fri, 07 Nov 2025 10:17:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:907934c5-829b-4709-a353-db9a3b7abdf1</guid><dc:creator>Tom Weber</dc:creator><description>&lt;p&gt;I suggest you do like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;uint64_t offset = 0;

int set_time(uint64_t timestamp)
{
    uint64_t syscounter;
    int ret = nrfx_grtc_syscounter_get(&amp;amp;syscounter);
    if (ret != NRFX_SUCCESS) {
        return ret;
    }
    offset = timestamp - syscounter;
    return 0;
}

int get_time(uint64_t *timestamp)
{
    uint64_t syscounter;
    int ret = nrfx_grtc_syscounter_get(&amp;amp;syscounter);
    if (ret != NRFX_SUCCESS) {
        return ret;
    }
    *timestamp = syscounter + offset;
    return 0;
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If you call set_time() with your initial timestamp, then k_msleep(1000), then get_time() should give the initial timestamp plus one second.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf54l15-dk rtc</title><link>https://devzone.nordicsemi.com/thread/553645?ContentTypeID=1</link><pubDate>Fri, 07 Nov 2025 09:39:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f45cf47-47ab-4de2-a35b-389543158194</guid><dc:creator>dede</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you very much for your reply.&lt;/p&gt;
&lt;p&gt;Thank you very much for your reply.&lt;br /&gt;Now I can use the nrfx_grtc_syscounter_get() function to obtain the value. The app will send 8 bytes to my device: 0x10, 0xDB, 0x4D, 0xEE, 0x98, 0x01, 0x00, 0x00. Converting these to 13-digit decimal gives 1756344736528. This represents a Unix millisecond-level timestamp format. Converting it again to UTC format results in 20-09-27 21:32:16.528.&lt;br /&gt;The first time, nrfx_grtc_syscounter_get(&amp;amp;syscounter) was called, and syscounter = . A delay of 1 second was then applied. Subsequently, nrfx_grtc_syscounter_get(&amp;amp;syscounter) was called again, and syscounter = 1127894. Based on the difference you described, I should do this: 1756344736528 + 1127894 - 126117 = 1756335738305. Right? If I&amp;#39;m wrong, please let me know.&lt;br /&gt;This is my simple test code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    unsigned char bytes[] = {0x10, 0xDB, 0x4D, 0xEE, 0x98, 0x01, 0x00, 0x00};
	uint64_t timestamp = 0;

	// 从小端序字节构建64位整数
	for (int i = 0; i &amp;lt; 8; i++) {
		timestamp |= (uint64_t)bytes[i] &amp;lt;&amp;lt; (i * 8);
	}
	// 输出时间戳（13位十进制数字）
	printf(&amp;quot;\n&amp;quot;);
	printf(&amp;quot;Timestamp1: %&amp;quot; PRIu64 &amp;quot;\n&amp;quot;, timestamp);
	uint64_t syscounter;

	ret = nrfx_grtc_syscounter_get(&amp;amp;syscounter);
	if (ret != NRFX_SUCCESS) {
 		 LOG_ERR(&amp;quot;get grtc err&amp;quot;);
	}
	printf(&amp;quot;Timestamp2: %&amp;quot; PRIu64 &amp;quot;\n&amp;quot;, syscounter);
	k_msleep(1000);
	ret = nrfx_grtc_syscounter_get(&amp;amp;syscounter);
	if (ret != NRFX_SUCCESS) {
 		 LOG_ERR(&amp;quot;get grtc err&amp;quot;);
	}
	printf(&amp;quot;Timestamp3: %&amp;quot; PRIu64 &amp;quot;\n&amp;quot;, syscounter);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The log printed by the device is as follows:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Timestamp1: 1756344736528
Timestamp2: 126117
Timestamp3: 1127894&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf54l15-dk rtc</title><link>https://devzone.nordicsemi.com/thread/553639?ContentTypeID=1</link><pubDate>Fri, 07 Nov 2025 08:59:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:203bf2bd-9577-4f67-acc8-b16716b37b4b</guid><dc:creator>Tom Weber</dc:creator><description>&lt;p&gt;This is how to read the GRTC:&lt;/p&gt;
&lt;p&gt;In prj.conf:&lt;/p&gt;
&lt;p&gt;CONFIG_NRFX_GRTC=y&lt;/p&gt;
&lt;p&gt;In your code:&lt;/p&gt;
&lt;p&gt;#include &amp;lt;nrfx_grtc.h&amp;gt;&lt;br /&gt;...&lt;br /&gt;uint64_t syscounter;&lt;br /&gt;int ret = nrfx_grtc_syscounter_get(&amp;amp;syscounter);&lt;br /&gt;if (ret != NRFX_SUCCESS) {&lt;br /&gt;&amp;nbsp; &amp;nbsp;...&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;As for retained memory, see&amp;nbsp;zephyr/samples/boards/nordic/system_off for an example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf54l15-dk rtc</title><link>https://devzone.nordicsemi.com/thread/553634?ContentTypeID=1</link><pubDate>Fri, 07 Nov 2025 08:34:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ca3469f-ef20-4769-8f81-e304ead732f9</guid><dc:creator>dede</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I can understand what you mean. But I don&amp;#39;t know how to do it. Could you please provide an example of a code engineering project?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf54l15-dk rtc</title><link>https://devzone.nordicsemi.com/thread/553633?ContentTypeID=1</link><pubDate>Fri, 07 Nov 2025 08:27:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da1e13fa-1a19-4fda-b605-cc322bd7b600</guid><dc:creator>Tom Weber</dc:creator><description>&lt;p&gt;To set the time, you can save the difference between GRTC and the timestamp (epoch microseconds) in memory. To get the time, you add the same difference to the GRTC. If you save the difference in a retained memory region, it will survive soft reboots.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf54l15-dk rtc</title><link>https://devzone.nordicsemi.com/thread/553631?ContentTypeID=1</link><pubDate>Fri, 07 Nov 2025 08:14:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7f617e0-1724-4c03-b4ea-0ec7259c78a8</guid><dc:creator>dede</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Currently, I still haven&amp;#39;t been able to implement the function of using grtc as the real-time clock for the nrf54l15-dk. Could you please provide some reference engineering examples?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf54l15-dk rtc</title><link>https://devzone.nordicsemi.com/thread/549799?ContentTypeID=1</link><pubDate>Thu, 25 Sep 2025 12:04:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:635b32d8-9165-492e-a51f-01a658f09073</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I understand that you don&amp;#39;t want to talk more. That&amp;#39;s why I asked you in my previous reply to share your application code so I can look at from my side and also can try to reproduce the issue on nRF54L15 DK.&lt;/p&gt;
&lt;p&gt;You can look at this previous case&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/support-private/support/346780"&gt;(18) Nordic DevZone&lt;/a&gt;&amp;nbsp;to understand my previous reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Besides this, I would like to explain a bit more about two functions k_cycle_get_32() and k_cycle_get_64() which are used to read the current value of the hardware clock (system timer) in zephyr. To set the GRTC for obtaining the timestamp these functions are needed. These return the number of hardware cycles since boot, which we can use as timestamp for relative timing or real time clock.&lt;/p&gt;
&lt;p&gt;To obtain a timestamp on the nRF54L15-DK, you generally use the system timer or RTC (Real-Time Counter/Clock) functionality provided by the hardware and the Zephyr OS. On nRF54L15, the GRTC (General Real-Time Counter) is the relevant hardware peripheral.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;zephyr/kernel.h&amp;gt;

uint32_t timestamp_32 = k_cycle_get_32();
uint64_t timestamp_64 = k_cycle_get_64();&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;p&gt;These functions are defined to &amp;quot;read the hardware clock&amp;quot; and are available in Zephyr&amp;#39;s kernel API. The value returned is in hardware cycles, not seconds or milliseconds, so you may need to convert it using your system&amp;#39;s clock frequency if you need standard time units. For nRF54L15, the system clock frequency is typically derived from the LFCLK (often 32.768 kHz) or HFCLK, depending on configuration. You have to check your board and project setting for the accurate frequency.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For direct hardware control of the nRF54L15&amp;#39;s real-time counter and clock output features, you need to use&amp;nbsp;nrfy_grtc_clkout_set() function. This case &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/117252/nrf54l15-clock-output/516058"&gt;(18) nRF54L15 clock output - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone&lt;/a&gt;&amp;nbsp;has shown how to use it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;haly/nrfy_grtc.h&amp;gt;
nrfy_grtc_clkout_set(NRF_GRTC, NRF_GRTC_CLKOUT_32K, true);&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;There is no specific RTC samples for nrf54L15, but you can look at Zephyr&amp;#39;s timer and counter driver samples (&lt;code dir="ltr"&gt;zephyr/samples/drivers/counter/alarm&lt;/code&gt;, for general usage patterns.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So, based on all the directions mentioned above, you can modify your code and send me the project file. I will help accordingly.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;BR&lt;br /&gt;Kazi&lt;/span&gt;&lt;/p&gt;
&lt;h5&gt;&lt;/h5&gt;
&lt;h5&gt;&lt;/h5&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf54l15-dk rtc</title><link>https://devzone.nordicsemi.com/thread/548764?ContentTypeID=1</link><pubDate>Mon, 15 Sep 2025 14:00:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89d0bbed-a41f-4a8f-8198-c90de1f62e53</guid><dc:creator>Bruce2048</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/kazi-afroza-sultana"&gt;Kazi Afroza Sultana&lt;/a&gt; The unused var won&amp;#39;t cause build error.&lt;/p&gt;
&lt;p&gt;The main reason is the header not exits.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t want talk more. just show your code which is a complete project.&lt;/p&gt;
&lt;p&gt;It won&amp;#39;t be difficult for your verder, but cost much time for us costumers.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf54l15-dk rtc</title><link>https://devzone.nordicsemi.com/thread/548762?ContentTypeID=1</link><pubDate>Mon, 15 Sep 2025 13:54:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b743a8f-979a-412e-98c6-a6000790d03f</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The error shows that one variable&amp;nbsp;&lt;span&gt;you have declared or defined &amp;nbsp;(&lt;/span&gt;&lt;code dir="ltr"&gt;grtc_channel&lt;/code&gt;&lt;span&gt;), but you have not actually used it anywhere in your code. This is a common warning or error in C/C++ development, especially when using strict compiler flags.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;To resolve this, ensure that you use the variable in your code, for example by passing it to a function. Otherwise, you have to remove this.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Can you please share your application folder?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf54l15-dk rtc</title><link>https://devzone.nordicsemi.com/thread/548425?ContentTypeID=1</link><pubDate>Thu, 11 Sep 2025 02:52:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d932deb2-6590-4aaa-8228-db84637507c6</guid><dc:creator>Bruce2048</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://devzone.nordicsemi.com/members/kazi-afroza-sultana"&gt;Kazi Afroza Sultana&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have some build issue, could you take a try?&lt;/p&gt;
&lt;p&gt;thanks.&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/pastedimage1757559100975v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&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/pastedimage1757559142727v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf54l15-dk rtc</title><link>https://devzone.nordicsemi.com/thread/548377?ContentTypeID=1</link><pubDate>Wed, 10 Sep 2025 13:42:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aab41748-2893-45a1-b185-5df9ab6f1cba</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You can use UNIX timestamp (using&amp;nbsp;Date time+ k_uptme_get. UNIX timestamp requires that the data time library has obtained a valid time first (e.g., via data_time_update_async or data_time_set), then coverts uptime UNIX time. source:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/nrf-apis-latest/page/group_date_time.html" rel="noopener noreferrer" target="_blank"&gt;date_time group&lt;/a&gt;&lt;span&gt;;&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/nrf-apis-latest/page/date_time_8h.html" rel="noopener noreferrer" target="_blank"&gt;date_time.h&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In the prj.conf file you need to set the following config to enable &lt;span&gt;GRTC SYSCOUNTER&amp;nbsp;&lt;/span&gt;:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Ensure GRTC SYSCOUNTER is started by the driver on boot (nRF54L15)
CONFIG_NRF_GRTC_START_SYSCOUNTER=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Now in the app code, you can follow the following steps:&lt;/p&gt;
&lt;p&gt;a. Initializing Date Time library and setting valid time&lt;/p&gt;
&lt;ol start="2"&gt;
&lt;li&gt;
&lt;div&gt;&lt;span&gt;Initialize Date Time library and set valid time. source (&lt;span&gt;&amp;nbsp;[&lt;/span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/nrf-apis-latest/page/group_date_time.html" rel="noopener noreferrer" target="_blank"&gt;date_time API&lt;/a&gt;&lt;span&gt;;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/nrf-apis-latest/page/date_time_8h.html" rel="noopener noreferrer" target="_blank"&gt;date_time.h&lt;/a&gt;&lt;span&gt;])&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;ol start="3"&gt;
&lt;li&gt;
&lt;div&gt;&lt;span&gt;Converting uptime to UNIX time (ms) when you need a timestamp&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;&lt;span&gt;After time is valid: int64_t ts = k_uptime_get(); date_time_uptime_to_unix_time_ms(&amp;amp;ts); // ts now holds UNIX time in milliseconds This API specifically converts a k_uptime_get() value to UNIX time using the maintained offset. [&lt;a href="https://docs.nordicsemi.com/bundle/nrf-apis-latest/page/date_time_8h.html" rel="noopener noreferrer" target="_blank"&gt;date_time.h&lt;/a&gt;;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/nrf-apis-latest/page/group_date_time.html" rel="noopener noreferrer" target="_blank"&gt;date_time group&lt;/a&gt;]&lt;/span&gt;&lt;/div&gt;
&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;An example code&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;int64_t uptime = k_uptime_get();
date_time_uptime_to_unix_time_ms(&amp;amp;uptime);

// At this point `uptime` contains the unix timestamp in milliseconds.&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf54l15-dk rtc</title><link>https://devzone.nordicsemi.com/thread/548299?ContentTypeID=1</link><pubDate>Wed, 10 Sep 2025 02:54:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7b8a1ea-6f4c-4121-bc5a-064934dfd204</guid><dc:creator>Bruce2048</dc:creator><description>&lt;p&gt;I agree with you.&lt;/p&gt;
&lt;p&gt;In this example GRTC was even not enabled.&lt;/p&gt;
&lt;p&gt;If possible, could you provide us with an example?&lt;a href="https://devzone.nordicsemi.com/members/kazi-afroza-sultana"&gt;Kazi Afroza Sultana&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf54l15-dk rtc</title><link>https://devzone.nordicsemi.com/thread/548214?ContentTypeID=1</link><pubDate>Tue, 09 Sep 2025 11:43:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2962d6f0-1664-42c6-a8b0-6b3b72f1a957</guid><dc:creator>dede</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I think this example doesn&amp;#39;t quite meet my requirements. I want to directly call API to set and read the timestamp. How should I do it?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf54l15-dk rtc</title><link>https://devzone.nordicsemi.com/thread/547874?ContentTypeID=1</link><pubDate>Fri, 05 Sep 2025 09:01:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c60e580f-2535-4707-b373-039f5f7ba85f</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;can look at this sample:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/peripheral_cts_client/README.html#testing"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/peripheral_cts_client/README.html#testing&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf54l15-dk rtc</title><link>https://devzone.nordicsemi.com/thread/547744?ContentTypeID=1</link><pubDate>Thu, 04 Sep 2025 11:35:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f3ac5cb-601d-4dbd-ac88-8d86f8c7bc17</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Peripheral_cts_client sample can be a good start if you want to apply&amp;nbsp;&lt;span&gt;calendar timestamps via BLE. It shows connect/bond, read the Current Time characteristic, parse and print the time, and handle notifications, matching your “set/read timestamp” flow with a CTS-capable peer device.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/peripheral_cts_client/README.html#testing"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/peripheral_cts_client/README.html#testing&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf54l15-dk rtc</title><link>https://devzone.nordicsemi.com/thread/547719?ContentTypeID=1</link><pubDate>Thu, 04 Sep 2025 07:30:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf9b5aed-c8bb-46dd-86bb-c1f3afab0fce</guid><dc:creator>Bruce2048</dc:creator><description>&lt;p&gt;Hi, I have the needs.&lt;/p&gt;
&lt;p&gt;If there&amp;#39;re examples please update.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf54l15-dk rtc</title><link>https://devzone.nordicsemi.com/thread/547367?ContentTypeID=1</link><pubDate>Mon, 01 Sep 2025 14:48:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c1e95c3-57fa-49cc-bc3e-cc828cc5f440</guid><dc:creator>Tom Weber</dc:creator><description>&lt;p&gt;Hello Kazi!&lt;/p&gt;
&lt;p&gt;I have the same issue as OP, I want to get and set RTC on the devkit.&lt;/p&gt;
&lt;p&gt;The documentation you linked is for Zephyr 4.2.99 which has sys_clock_gettime() and sys_clock_settime() which look promising.&lt;/p&gt;
&lt;p&gt;I updated to NCS 3.1.0 which is the latest version and has Zephyr 4.1.99, which does&amp;nbsp;&lt;em&gt;not&lt;/em&gt; have these API functions. Is there any other API I can use?&lt;/p&gt;
&lt;p&gt;Regards, Tom&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf54l15-dk rtc</title><link>https://devzone.nordicsemi.com/thread/547037?ContentTypeID=1</link><pubDate>Thu, 28 Aug 2025 08:39:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c784d3a5-c3c1-4b37-ad9f-099e6e445a7b</guid><dc:creator>dede</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have updated to NCS 3.0.2. I want to use the nrf54l15 to implement the functions of setting and reading the timestamp. Which project should I refer to?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf54l15-dk rtc</title><link>https://devzone.nordicsemi.com/thread/546989?ContentTypeID=1</link><pubDate>Thu, 28 Aug 2025 02:11:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9949f21-1599-4c8e-b680-1fd6798413cd</guid><dc:creator>dede</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have updated to NCS 3.0.2. Which project should I refer to?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf54l15-dk rtc</title><link>https://devzone.nordicsemi.com/thread/539710?ContentTypeID=1</link><pubDate>Wed, 18 Jun 2025 12:51:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e80c7970-279a-4306-bf82-7e8aeb00338d</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nRF54L15 does not have a traditional RTC (Real-Time Counter) peripheral like previous nRF series. Instead, it features a GRTC (General Real-Time Counter) and a SYSCOUNTER, which are used for timekeeping and timestamping purposes.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You also need to migrate to NCS 3.0.2.&lt;/p&gt;
&lt;p&gt;For implementing timestamp, you should use the Zephyr kernel timer. See the following links:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.zephyrproject.org/latest/doxygen/html/group__clock__apis.html#gae3e992cd3257c23d5b26d765fcbb2b69"&gt;https://docs.zephyrproject.org/latest/doxygen/html/group__clock__apis.html#gae3e992cd3257c23d5b26d765fcbb2b69&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/kernel/services/timing/clocks.html"&gt;https://docs.zephyrproject.org/latest/kernel/services/timing/clocks.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>