<?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>Undefine reference to &amp;quot;app_timer_start&amp;quot;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51645/undefine-reference-to-app_timer_start</link><description>Hi, 
 
 I faced a problem while building my project. Please see screenshot below 
 
 I think I have already include all the files and everything compiled. But this error shows up at the very end. Please advise. 
 
 Thank you.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 03 Sep 2019 05:47:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51645/undefine-reference-to-app_timer_start" /><item><title>RE: Undefine reference to "app_timer_start"</title><link>https://devzone.nordicsemi.com/thread/207528?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2019 05:47:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b1a90e9-c841-44b1-b25e-f741ac9b6881</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Please make sure that you download SDK 15.3 &lt;a href="https://developer.nordicsemi.com/nRF5_SDK/nRF5_SDK_v15.x.x/nRF5_SDK_15.3.0_59ac345.zip"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you have not worked much with your project, I suggest that you start a new project with a clean downloaded SDK so that you are sure that it contains the correct files.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Undefine reference to "app_timer_start"</title><link>https://devzone.nordicsemi.com/thread/207504?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2019 21:13:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2861926-723f-447b-b1f8-16fee5fec481</guid><dc:creator>lsvw1217</dc:creator><description>&lt;p&gt;Hi Andreas and awneil,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Oh I didn&amp;#39;t know that. So I tried installing a whole new SDK 15.3 and deleting nrfx_power_clock.c and also make sure app_timer is enabled in the sdk.config. But the same error still shows up.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried to search the error online and found this.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/51106/linker-issue-in-sdk15-2"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/51106/linker-issue-in-sdk15-2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;According to Amanda, it might be due to different version of app_timer.c in the SDK.&lt;/p&gt;
&lt;p&gt;But right now I&amp;#39;m using a whole new SDK 15.3, and files are not modified. So I think they should be from the same version.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is there anything else I can try? Maybe download a previous version of SDK?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, could you provide a link to download the newest version of SDK? Maybe I&amp;#39;m downloading the wrong one.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you so much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Undefine reference to "app_timer_start"</title><link>https://devzone.nordicsemi.com/thread/207346?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2019 10:05:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92644e15-10c2-4e66-8993-030d846529ea</guid><dc:creator>awneil</dc:creator><description>[quote userid="73862" url="~/f/nordic-q-a/51645/undefine-reference-to-app_timer_start/207309"]adding &lt;i&gt;[anything]&lt;/i&gt; from previous SDK[/quote]
&lt;p&gt;is never a good idea!&lt;/p&gt;
&lt;p&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f62e.svg" title="Open mouth"&gt;&amp;#x1f62e;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The whole point of going to all the effort of making a separate SDK release is (as &lt;a href="https://devzone.nordicsemi.com/members/andreasf"&gt;AndreasF&lt;/a&gt; says) that things are &lt;em&gt;&lt;strong&gt;not&lt;/strong&gt; &lt;/em&gt;the same - so you can&amp;#39;t just go taking stuff from one SDK and dropping it willy-nilly into a different SDK!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Undefine reference to "app_timer_start"</title><link>https://devzone.nordicsemi.com/thread/207345?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2019 10:00:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89f0071b-9e11-4df7-b5c4-b7265b063c03</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Not having the header #included in the &lt;em&gt;source&lt;/em&gt; where needed would give &lt;strong&gt;compiler&lt;/strong&gt; errors (or warnings) - but these are &lt;em&gt;&lt;strong&gt;Linker&lt;/strong&gt; &lt;/em&gt;errors.&lt;/p&gt;
&lt;p&gt;The header gives the necessary &lt;strong&gt;declarations&lt;/strong&gt; to the compiler - but the Linker&amp;nbsp;needs to see the &lt;em&gt;&lt;strong&gt;definitions&lt;/strong&gt;&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://c-faq.com/decl/decldef.html"&gt;http://c-faq.com/decl/decldef.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This error usually means that the header has been #included&amp;nbsp;&lt;span&gt;in the&amp;nbsp;&lt;/span&gt;&lt;em&gt;source&lt;/em&gt;&amp;nbsp;(giving the &lt;em&gt;declarations&lt;/em&gt; to the Compiler) - but the &lt;strong&gt;.c&lt;/strong&gt;&amp;nbsp;(or pre-built binary) containing the &lt;strong&gt;&lt;em&gt;definitions &lt;/em&gt;&lt;/strong&gt;is missing - hence the Linker complains about things being &amp;quot;&lt;strong&gt;un-&lt;em&gt;defined&lt;/em&gt;&lt;/strong&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;The above is standard &amp;#39;C&amp;#39; stuff - not specific to Nordic or microcontrollers.&lt;/p&gt;
&lt;p&gt;But with the Nordic SDK specifically there is an extra twist: many features have to be enabled by settings in the &lt;strong&gt;sdk_config.h;&lt;/strong&gt;&amp;nbsp; so, even with the correct headers #included, and all the correct .c files in the Project, you can still get &amp;#39;Undefined&amp;#39; Linker errors - because the content of the &amp;#39;C&amp;#39; files is disabled by conditional compilation such as:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;
#if NRF_MODULE_ENABLED(NRF_CLOCK)

&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Undefine reference to "app_timer_start"</title><link>https://devzone.nordicsemi.com/thread/207328?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2019 09:27:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57fdaf53-1a01-4da9-9b80-e4fdf3005764</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
[quote user="lsvw1217"]I made a modification and that is adding &amp;quot;nrfx_power_clock.c&amp;quot; from previous SDK since it wasn&amp;#39;t included in the newest SDK.[/quote]
&lt;p&gt;&amp;nbsp;Can you please remove &lt;strong&gt;nrfx_power_clock.c&lt;/strong&gt; from the project? This file is in SDK 15.3 split up into two different files, &lt;strong&gt;nrfx_clock.c&lt;/strong&gt; and &lt;strong&gt;nrfx_power&lt;/strong&gt;&lt;strong&gt;.c&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;And add the file you need, &lt;strong&gt;nrfx_clock.c&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Undefine reference to "app_timer_start"</title><link>https://devzone.nordicsemi.com/thread/207309?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2019 08:45:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a7b2751-881e-48b8-8b9a-025e3d1e8571</guid><dc:creator>lsvw1217</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
&lt;p&gt;I was using the newest SDK &amp;quot;nRF5_SDK_15.3.0_59ac345&amp;quot;.&lt;/p&gt;
&lt;p&gt;I made a modification and that is adding &amp;quot;nrfx_power_clock.c&amp;quot; from previous SDK since it wasn&amp;#39;t included in the newest SDK.&lt;/p&gt;
&lt;p&gt;I got the &amp;quot;nrfx_power_clock.c&amp;quot; from &amp;quot;nRF_SDK_15.2.0_9412b96&amp;quot; so I also try using this SDK but the same error showed up.&lt;/p&gt;
&lt;p&gt;Please advise. Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Undefine reference to "app_timer_start"</title><link>https://devzone.nordicsemi.com/thread/207296?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2019 08:09:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdc7af39-f3fd-4f25-805f-f60bd4e9aac9</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Which SDK are you using? Have you done any modificatiosn?&lt;/p&gt;
&lt;p&gt;Have not seen SWIAPP_TIMER_CONFIG_SWI_NUMBER_EGUAPP_TIMER_CONFIG_SWI_NUMBER_IRQn before.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Undefine reference to "app_timer_start"</title><link>https://devzone.nordicsemi.com/thread/207280?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2019 07:00:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8299d55-f4f7-4702-9468-499b35735303</guid><dc:creator>lsvw1217</dc:creator><description>&lt;p&gt;Hi guys,&lt;/p&gt;
&lt;p&gt;Thank you for the speedy reply. I&amp;#39;ve included the app_timer.h and app_timer.c.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After I enabled the app timer in sdk_config.h, I did it by change from &amp;quot;APP_TIMER_ENABLED 0&amp;quot; to &amp;quot;APP_TIMER_ENABLED 1&amp;quot;. Is this the correct way to do it?&lt;/p&gt;
&lt;p&gt;If this is the correct way, after I enable the app timer, I got another error shown in the attach picture.&amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Capture-_2800_1_2900_.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;Is this something to do with settings in sdk_config again?&lt;/p&gt;
&lt;p&gt;Thank you for helping again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Undefine reference to "app_timer_start"</title><link>https://devzone.nordicsemi.com/thread/207276?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2019 06:43:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2503f0bb-9132-4981-b1a3-3f2032bd52f0</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Have you also enabled the app timer in sdk_config.h?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Undefine reference to "app_timer_start"</title><link>https://devzone.nordicsemi.com/thread/207274?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2019 06:21:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f746b061-ea8f-4686-9d37-26edb1ee67bd</guid><dc:creator>RSA</dc:creator><description>&lt;p&gt;Did you include app_timer.h in main.c?you should also include the .h in user includes! for some files, you also need to include the .c file in the project directory tree (i get a similar error when my app_timer.c isn&amp;#39;t in the file tree) If you&amp;#39;re using the template project all this should already be set up.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>