<?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>Zephyr undefined reference to `nrfx_rtc_init&amp;#39;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99737/zephyr-undefined-reference-to-nrfx_rtc_init</link><description>west build -b custom_nrf52832 : in function `rtcInit&amp;#39;: D:\ncs\v2.3.0\nrf\samples\minimal_log_rtc\build/../src/rtc.c:21: undefined reference to `nrfx_rtc_init&amp;#39; collect2.exe: error: ld returned 1 exit status ninja: build stopped: subcommand failed.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 May 2023 03:36:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99737/zephyr-undefined-reference-to-nrfx_rtc_init" /><item><title>RE: Zephyr undefined reference to `nrfx_rtc_init'</title><link>https://devzone.nordicsemi.com/thread/425742?ContentTypeID=1</link><pubDate>Tue, 16 May 2023 03:36:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9df3f4f5-221c-4968-a171-acb28e21ca2c</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;Thanks for your reply! Could you also suggest sample code for using the Zephyr RTC lib?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr undefined reference to `nrfx_rtc_init'</title><link>https://devzone.nordicsemi.com/thread/425593?ContentTypeID=1</link><pubDate>Mon, 15 May 2023 11:45:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00fb58c5-da40-4d4c-9a14-c923ce3d858c</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You need to enable the RTC in the prj.conf with the following line: CONFIG_NRFX_RTC&amp;lt;instance number&amp;gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In your case CONFIG_RTFX_RTC0&lt;/p&gt;
&lt;p&gt;However I would recommend using the Zephyr RTC lib since I not sure how thread safe it would be to use the nrfx RTC with zephyr. I have added two helpful links below&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/kernel/services/timing/timers.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/kernel/services/timing/timers.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/hardware/peripherals/rtc.html"&gt;developer.nordicsemi.com/.../rtc.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr undefined reference to `nrfx_rtc_init'</title><link>https://devzone.nordicsemi.com/thread/425549?ContentTypeID=1</link><pubDate>Mon, 15 May 2023 09:54:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c35365e7-bdae-418d-a76f-e98ba79eaf1a</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/minimal_5F00_log_5F00_rtc.zip"&gt;devzone.nordicsemi.com/.../minimal_5F00_log_5F00_rtc.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr undefined reference to `nrfx_rtc_init'</title><link>https://devzone.nordicsemi.com/thread/425531?ContentTypeID=1</link><pubDate>Mon, 15 May 2023 08:46:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1ddead8-2036-497d-94bf-c91fcf376e84</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi, I recommend creating your own ticket as your code may differ&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr undefined reference to `nrfx_rtc_init'</title><link>https://devzone.nordicsemi.com/thread/425502?ContentTypeID=1</link><pubDate>Mon, 15 May 2023 07:35:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acbc24b1-45df-4470-990c-fcf827e36211</guid><dc:creator>thang47</dc:creator><description>&lt;p&gt;Hello, Is that problem solved, I&amp;#39;m having it too&lt;/p&gt;
&lt;div id="gtx-anchor" style="height:13.6px;left:42.0125px;position:absolute;top:8px;width:91.0375px;"&gt;&lt;/div&gt;
&lt;div class="jfk-bubble gtx-bubble" style="left:73px;top:32px;"&gt;
&lt;div id="bubble-2" class="jfk-bubble-content-id"&gt;
&lt;div id="gtx-host" style="max-width:400px;"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="jfk-bubble-closebtn-id jfk-bubble-closebtn"&gt;&lt;/div&gt;
&lt;div class="jfk-bubble-arrow-id jfk-bubble-arrow jfk-bubble-arrowup" style="left:79.5125px;"&gt;
&lt;div class="jfk-bubble-arrowimplbefore"&gt;&lt;/div&gt;
&lt;div class="jfk-bubble-arrowimplafter"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr undefined reference to `nrfx_rtc_init'</title><link>https://devzone.nordicsemi.com/thread/425494?ContentTypeID=1</link><pubDate>Mon, 15 May 2023 06:37:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1b69275-2935-49bc-8201-7c0488fdc2e6</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi and thanks for the custom board files&lt;/p&gt;
&lt;p&gt;I tried to build the example with the files you provided and it worked both with and without debug. Can you upload the project you are having trouble with? From your error it has a different name than the one provided.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr undefined reference to `nrfx_rtc_init'</title><link>https://devzone.nordicsemi.com/thread/425473?ContentTypeID=1</link><pubDate>Mon, 15 May 2023 03:35:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad0fb71c-f7de-4f2d-a39b-346f56665a4d</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1346.custom_5F00_nrf52832.zip"&gt;devzone.nordicsemi.com/.../1346.custom_5F00_nrf52832.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr undefined reference to `nrfx_rtc_init'</title><link>https://devzone.nordicsemi.com/thread/425472?ContentTypeID=1</link><pubDate>Mon, 15 May 2023 03:34:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b01ead44-c58c-414b-a6cb-a0bdffa2fda8</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2330.minimal_5F00_log_5F00_nus.zip"&gt;devzone.nordicsemi.com/.../2330.minimal_5F00_log_5F00_nus.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>