<?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>How to set RTC time in nRF9160DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72330/how-to-set-rtc-time-in-nrf9160dk</link><description>Hi, 
 I am new to nRF9160DK . I want to set RTC time for the nRF9160DK. 
 In the application we are getting UTC time from NTP server and we need to set RTC . 
 I have referred the example asset tracker for getting time from NTP server? 
 Could you please</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Apr 2021 18:49:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72330/how-to-set-rtc-time-in-nrf9160dk" /><item><title>RE: How to set RTC time in nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/306425?ContentTypeID=1</link><pubDate>Thu, 22 Apr 2021 18:49:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fb7679d-c114-4098-8c29-aba481dad64a</guid><dc:creator>Adrian Boc</dc:creator><description>&lt;p&gt;Hi Hakon,&lt;/p&gt;
&lt;p&gt;This example suggests to add RTC0 to spm.c to run in non-secure mode. What does it exactly mean? I&amp;#39;m looking at nrf/subsys/spm/spm.c - enabling RTC0 is behind NRF_RTC0 macro in spm_config_peripherals(). Does it mean that adding &amp;quot;-DNRF_RTC0&amp;quot; to CONFIG_COMPILER_OPT in &lt;a href="https://github.com/Rallare/fw-nrfconnect-nrf/blob/nrf9160_samples/samples/nrf9160/nrfx/rtc/prj.conf"&gt;https://github.com/Rallare/fw-nrfconnect-nrf/blob/nrf9160_samples/samples/nrf9160/nrfx/rtc/prj.conf&lt;/a&gt; is enough?&lt;/p&gt;
&lt;p&gt;--EDIT--&lt;/p&gt;
&lt;p&gt;It seems the following parameters should be added to prj.conf to build the example:&lt;/p&gt;
&lt;pre&gt;CONFIG_SPM_NRF_RTC0_NS=y&lt;br /&gt;CONFIG_NRFX_RTC=y&lt;br /&gt;CONFIG_NRFX_RTC0=y&lt;/pre&gt;
&lt;p&gt;With above parameters, the following line is not required:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;CONFIG_COMPILER_OPT=&amp;quot;-DNRFX_RTC_ENABLED=1 -DNRFX_RTC0_ENABLED=1&amp;quot;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Adrian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set RTC time in nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/298026?ContentTypeID=1</link><pubDate>Fri, 05 Mar 2021 11:13:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24128cf0-639c-4070-b78d-a1e93e83a047</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;there is this &amp;quot;unofficial&amp;quot; &lt;a href="https://github.com/Rallare/fw-nrfconnect-nrf/tree/nrf9160_samples/samples/nrf9160/nrfx/rtc"&gt;RTC sample&lt;/a&gt; that you can look at.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>