<?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>nrf52840 RCT2 configuration and usage</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121311/nrf52840-rct2-configuration-and-usage</link><description>Hello, 
 I&amp;#39;m trying to enable RTC2 for nrf52840 DK to use as a date time clock and set/get over SMP protocol. RTC0 is used for MPSL, RTC1 is used by the system. 
 I configured MCU MGR option: 
 
 I configured RTC: 
 
 
 DTS for RTC2: 
 
 The command to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 Jul 2025 11:53:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121311/nrf52840-rct2-configuration-and-usage" /><item><title>RE: nrf52840 RCT2 configuration and usage</title><link>https://devzone.nordicsemi.com/thread/543924?ContentTypeID=1</link><pubDate>Tue, 29 Jul 2025 11:53:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ccfdb41-e658-4cea-9fcc-caf13da0fcea</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;sorry Egor,&amp;nbsp;This thread somehow slipped from my active queue. No, I did not test your project, and do not think that I can do it until next week either. Sorry about that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 RCT2 configuration and usage</title><link>https://devzone.nordicsemi.com/thread/543444?ContentTypeID=1</link><pubDate>Thu, 24 Jul 2025 08:53:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:457ada36-e553-42db-bd86-a7321b7df3ad</guid><dc:creator>Egor Dolgalev</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Any updates on this issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 RCT2 configuration and usage</title><link>https://devzone.nordicsemi.com/thread/536795?ContentTypeID=1</link><pubDate>Fri, 23 May 2025 13:35:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00c4e5d7-4359-4805-9a97-919852b13eea</guid><dc:creator>Egor Dolgalev</dc:creator><description>&lt;p&gt;Hi Susheel,&lt;/p&gt;
&lt;p&gt;I tried to change rtc0 to rtc2 and got the same result. The read output after time set command is:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;{
  &amp;quot;datetime&amp;quot;: &amp;quot;2948-01-00T00:45:00&amp;quot;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The option&amp;nbsp;CONFIG_COUNTER=y is enabled in my original project.&lt;/p&gt;
&lt;p&gt;I attached updated project.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6114.os_5F00_mgmt_5F00_datetime.zip"&gt;devzone.nordicsemi.com/.../6114.os_5F00_mgmt_5F00_datetime.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 RCT2 configuration and usage</title><link>https://devzone.nordicsemi.com/thread/536615?ContentTypeID=1</link><pubDate>Thu, 22 May 2025 12:05:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3f4503a-af6a-4cc5-8beb-7871aa2362d2</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Egor,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I wanted to try to pitch in my 2 cents here.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am suspecting that this is because you have not enabled the counter API&lt;/p&gt;
&lt;p&gt;Enable this in your prj,conf using RTC2 just to be sure since rtc0 is used by RTOS.&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_COUNTER=y                    
CONFIG_RTC=y  
CONFIG_NRFX_RTC2=y  &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;also set this your overlay instead of rtc0&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;aliases {
    rtc = &amp;amp;rtc2;
};

&amp;amp;rtc2 {
    status = &amp;quot;okay&amp;quot;;
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I have not tried your sample but if this does not work, then i will try to debug your app on why you have simple date and time feature not working.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 RCT2 configuration and usage</title><link>https://devzone.nordicsemi.com/thread/536614?ContentTypeID=1</link><pubDate>Thu, 22 May 2025 12:05:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5936fd8f-b1a7-426c-b278-4a311ba33f92</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Egor,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I wanted to try to pitch in my 2 cents here.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am suspecting that this is because you have not enabled the counter API&lt;/p&gt;
&lt;p&gt;Enable this in your prj,conf using RTC2 just to be sure since rtc0 is used by RTOS.&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_COUNTER=y                    
CONFIG_RTC=y  
CONFIG_NRFX_RTC2=y  &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;also set this your overlay instead of rtc0&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;aliases {
    rtc = &amp;amp;rtc2;
};

&amp;amp;rtc2 {
    status = &amp;quot;okay&amp;quot;;
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I have not tried your sample but if this does not work, then i will try to debug your app on why you have simple date and time feature not working.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 RCT2 configuration and usage</title><link>https://devzone.nordicsemi.com/thread/536236?ContentTypeID=1</link><pubDate>Tue, 20 May 2025 13:39:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1911a9ed-0256-4cc6-bc0a-43b6ce83a174</guid><dc:creator>Egor Dolgalev</dc:creator><description>&lt;p&gt;Hi Simonr,&lt;/p&gt;
&lt;p&gt;In my original project I don&amp;#39;t use this example. But I adopted the test you mentioned to reproduce this issue. I attached my project. I did a build for nrf52840dk board with RTC0 used and SDK 3.0.0 version. To test date-time set/get functionality I use AuTerm tool and analyzed the terminal traffic to see what is inside the packets.&lt;/p&gt;
&lt;p&gt;I did next command sequence:&lt;/p&gt;
&lt;p&gt;1. Get current time&lt;/p&gt;
&lt;p&gt;2. Set current time&lt;/p&gt;
&lt;p&gt;3. Get current time&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The traffic looks like the next:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;\06	AAsIAAABAAANBKBXIA==
\06	ACkJAAAfAAANBL9oZGF0ZXRpbWVzMjk0OC0wMS0wMFQwMDo0NTowMP88ig==

\06	AC8KAAAlAAAOBKFoZGF0ZXRpbWV4GTIwMjUtMDUtMjBUMTQ6NTU6MTYrMDI6MDDQUw==
\06	AAwLAAACAAAOBL//9T4=

\06	AAsIAAABAAAPBKA5QA==
\06	ACkJAAAfAAAPBL9oZGF0ZXRpbWVzMjk0OC0wMS0wMFQwMDo0NTowMP83Ew==&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is a Base64 packets and I decrypted them based on the SPM protocol specification and UART transport specification:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Get
\06	AAsIAAABAAANBKBXIA==
000b 0800000100000d04 a0 5720
{}
\06	ACkJAAAfAAANBL9oZGF0ZXRpbWVzMjk0OC0wMS0wMFQwMDo0NTowMP88ig==
0029 0900001f00000d04 bf686461746574696d6573323934382d30312d30305430303a34353a3030ff 3c8a
{ &amp;quot;datetime&amp;quot;: &amp;quot;2948-01-00T00:45:00&amp;quot;}

Set
\06	AC8KAAAlAAAOBKFoZGF0ZXRpbWV4GTIwMjUtMDUtMjBUMTQ6NTU6MTYrMDI6MDDQUw==
002f 0a00002500000e04 a1686461746574696d657819323032352d30352d32305431343a35353a31362b30323a3030 d053
{&amp;quot;datetime&amp;quot;: &amp;quot;2025-05-20T14:55:16+02:00&amp;quot;}
\06	AAwLAAACAAAOBL//9T4=
000c 0b00000200000e04 bfff f53e
{}

Get
\06	AAsIAAABAAAPBKA5QA==
000b 0800000100000f04 a0 3940
{}
\06	ACkJAAAfAAAPBL9oZGF0ZXRpbWVzMjk0OC0wMS0wMFQwMDo0NTowMP83Ew==
0029 0900001f00000f04 bf686461746574696d6573323934382d30312d30305430303a34353a3030ff 3713
{_ &amp;quot;datetime&amp;quot;: &amp;quot;2948-01-00T00:45:00&amp;quot;}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As you can see even if I set the proper date-time in the second command with positive response to this command&lt;/p&gt;
&lt;p&gt;{&amp;quot;datetime&amp;quot;: &amp;quot;2025-05-20T14:55:16+02:00&amp;quot;}&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t get the proper date-time on the following read. What interesting this output is the same as a first read and doesn&amp;#39;t change&lt;/p&gt;
&lt;p&gt;{ &amp;quot;datetime&amp;quot;: &amp;quot;2948-01-00T00:45:00&amp;quot;}&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/os_5F00_mgmt_5F00_datetime.zip"&gt;devzone.nordicsemi.com/.../os_5F00_mgmt_5F00_datetime.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 RCT2 configuration and usage</title><link>https://devzone.nordicsemi.com/thread/534620?ContentTypeID=1</link><pubDate>Fri, 09 May 2025 10:44:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b1f22b7-12d6-49df-a6a7-5d3c6b4ee031</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Just to check, are you using the os_mgmt_datetime sample in&amp;nbsp;&lt;strong&gt;&amp;lt;ncs version&amp;gt;\zephyr\tests\subsys\mgmt\mcumgr\os_mgmt_datetime&amp;nbsp;&lt;/strong&gt;for this? Where does this strange output print from exactly? Are you sure you have set the date time as reference somewhere in your project so the RTC has a reference point?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you show me the full log of your application running so we can get a better understanding of what exactly is returning this value?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 RCT2 configuration and usage</title><link>https://devzone.nordicsemi.com/thread/534440?ContentTypeID=1</link><pubDate>Thu, 08 May 2025 10:37:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17b84a8b-bca4-463d-aac5-09dfb3852ec5</guid><dc:creator>Egor Dolgalev</dc:creator><description>&lt;p&gt;I don&amp;#39;t use nrfx library directly. I use MCU manager over SMP protocol with the next command &lt;a href="https://docs.zephyrproject.org/latest/services/device_mgmt/smp_groups/smp_group_0.html#date-time-command"&gt;https://docs.zephyrproject.org/latest/services/device_mgmt/smp_groups/smp_group_0.html#date-time-command&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;To send this command over UART I use AuTherm application from this&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/services/device_mgmt/mcumgr.html#tools-libraries"&gt;https://docs.zephyrproject.org/latest/services/device_mgmt/mcumgr.html#tools-libraries&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 RCT2 configuration and usage</title><link>https://devzone.nordicsemi.com/thread/534436?ContentTypeID=1</link><pubDate>Thu, 08 May 2025 10:24:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffe805b4-149d-4a08-878d-575ac7b11498</guid><dc:creator>narangmayank</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/newegor"&gt;Egor Dolgalev&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m able to set/get epoch time on nRF52840 via RTC2.&amp;nbsp;Can you share more information on your rtc set/get implementation. Are you directly using nrfx library?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Mayank&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>