<?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>rtc0 use &amp;quot;rtc_shell&amp;quot; can not set/get time?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114519/rtc0-use-rtc_shell-can-not-set-get-time</link><description>software: ncs 2.5.0, zephyr\samples\drivers\counter\alarm 
 hardware: nRF52840dk 
 Step1: main.c is not be r evised!!! 
 Step2: prj.conf like this: 
 
 Step3: overlay file like this: 
 
 Step4: Connect USB into xshell , then build and reboot, output info</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Sep 2024 10:08:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114519/rtc0-use-rtc_shell-can-not-set-get-time" /><item><title>RE: rtc0 use "rtc_shell" can not set/get time?</title><link>https://devzone.nordicsemi.com/thread/501689?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2024 10:08:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:512a56be-d0b6-462e-b2d5-d56bc3c9f583</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello again, hope you&amp;#39;ve had a good week-end.&lt;/p&gt;
&lt;p&gt;Am I understanding it correctly in that you&amp;#39;ve solved this? If so, great! And I am glad that you&amp;#39;ve included your solution as well, in case anyone else runs into the same issue in the future.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: rtc0 use "rtc_shell" can not set/get time?</title><link>https://devzone.nordicsemi.com/thread/501628?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2024 02:42:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ec7abb8-3cc4-48ce-9772-de04d20210f9</guid><dc:creator>upupsky</dc:creator><description>&lt;p&gt;finally, there is no rtc dirver in nordic driver, because rtc is used by softdevice, so we can simulate rtc, then &amp;quot;rtc get rtc_emul&amp;quot; can work well, overaly file like:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/{
	rtc_emul{
		status =&amp;quot;okay&amp;quot;;
		compatible = &amp;quot;zephyr,rtc-emul&amp;quot;;
		label = &amp;quot;rtc_emul&amp;quot;;
		alarms-count = &amp;lt;2&amp;gt;;
	};
};&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: rtc0 use "rtc_shell" can not set/get time?</title><link>https://devzone.nordicsemi.com/thread/501543?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2024 12:47:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf2217a5-81b5-4364-af05-99f4906ffb64</guid><dc:creator>upupsky</dc:creator><description>&lt;div class="usGWQd"&gt;
&lt;div class="KkbLmb"&gt;
&lt;div class="lRu31" dir="ltr"&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;Please ignore my project B. How should project A be modified to enable RTC? This is the key to the problem. RTC is a commonly used peripheral. Do you have any other suggestions?&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: rtc0 use "rtc_shell" can not set/get time?</title><link>https://devzone.nordicsemi.com/thread/501540?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2024 12:42:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fbf8ddf-47cf-44f1-bc19-a6e01d0d1982</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Just to start off, I want to say that this is a sample from Zephyr, and not directly made by us. Therefore there might be some things that do not work that well with our boards right out of the box, it might need some additional configuration.&lt;/p&gt;
&lt;p&gt;If you find dts configurations confusing &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-2-reading-buttons-and-controlling-leds/topic/devicetree/"&gt;I would recommend having a look&amp;nbsp;at the DevAcademy course on this&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;What does project B consist of?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: rtc0 use "rtc_shell" can not set/get time?</title><link>https://devzone.nordicsemi.com/thread/501403?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2024 14:33:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12de2763-c5ca-4a19-a138-b736a1fc5a51</guid><dc:creator>upupsky</dc:creator><description>&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/pastedimage1725546796893v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>