<?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>SDK 14.2.0, app_uart not finding its own function?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30008/sdk-14-2-0-app_uart-not-finding-its-own-function</link><description>Hello, 
 We&amp;#39;ve been developing nRF52 software for about two years. We develop on Linux desktop machines, and build with GCC from the command line interface. 
 I&amp;#39;m starting to bring our software into compliance with SDK 14.2.0. I&amp;#39;ve encountered a strange</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 20 Oct 2018 04:13:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30008/sdk-14-2-0-app_uart-not-finding-its-own-function" /><item><title>RE: SDK 14.2.0, app_uart not finding its own function?</title><link>https://devzone.nordicsemi.com/thread/153701?ContentTypeID=1</link><pubDate>Sat, 20 Oct 2018 04:13:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c41bf662-f0cb-419c-be6e-59b38123acf3</guid><dc:creator>Ladasky</dc:creator><description>[quote userid="8037" url="~/f/nordic-q-a/30008/sdk-14-2-0-app_uart-not-finding-its-own-function/119445"]Perhaps there are some flags in other files which override what I expected.[/quote]
&lt;p&gt;Following up once again to myself:&amp;nbsp;the file in question would appear to be &lt;strong&gt;sdk_config.h&lt;/strong&gt;!&amp;nbsp; &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/39503/undefined-reference-on-the-linker-level"&gt;An incorrectly written sdk_config.h seems to be the source of&amp;nbsp;many unexpected linker errors&lt;/a&gt;.&amp;nbsp; It&amp;nbsp;can be&amp;nbsp;quite challenging to get sdk_config.h just right.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 14.2.0, app_uart not finding its own function?</title><link>https://devzone.nordicsemi.com/thread/119445?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2018 23:33:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28a36500-7c31-4d91-85fd-1d15b3c0c333</guid><dc:creator>Ladasky</dc:creator><description>&lt;p&gt;Following up to myself: whatever the problem was, it was my fault.&amp;nbsp; I started over again from scratch with the SDK 14.2 UART example, modifying both its main.c and the Makefile, and I was able to complete the build.&lt;/p&gt;
&lt;p&gt;The strange thing is that simply including and building app_uart doesn&amp;#39;t seem to be enough to&amp;nbsp;define the reference to app_uart_init(), even though I can see quite clearly that it is in fact defined there.&amp;nbsp; Perhaps there are some flags in other files which override what I expected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 14.2.0, app_uart not finding its own function?</title><link>https://devzone.nordicsemi.com/thread/119267?ContentTypeID=1</link><pubDate>Tue, 30 Jan 2018 23:39:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3fb2cee-95d1-4e1c-8dc4-080f630a1775</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;&lt;code&gt;make -n&lt;/code&gt; will print out what make is going to do without doing it
&lt;code&gt;make VERBOSE=1&lt;/code&gt; should print as it goes&lt;/p&gt;
&lt;p&gt;all else fails put a shell script called &amp;#39;ld&amp;#39; in your path which just prints its arguments and exits then make and see what it prints.&lt;/p&gt;
&lt;p&gt;you need the link line so you can run it by hand and figure out what&amp;#39;s missing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 14.2.0, app_uart not finding its own function?</title><link>https://devzone.nordicsemi.com/thread/119269?ContentTypeID=1</link><pubDate>Tue, 30 Jan 2018 23:28:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56a98883-33db-43dc-a5fc-4ea341e619a7</guid><dc:creator>Ladasky</dc:creator><description>&lt;p&gt;Message 2: I looked through the make log for the terms &amp;quot;link&amp;quot; and &amp;quot;must remake&amp;quot;.  They only appear once each, at the very end, right before the failure:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Finished prerequisites of target file &amp;#39;_build/nrf52832_xxaa.out&amp;#39;.
    Must remake target &amp;#39;_build/nrf52832_xxaa.out&amp;#39;.
Linking target: _build/nrf52832_xxaa.out
Putting child 0x55797f87e710 (_build/nrf52832_xxaa.out) PID 3537 on the chain.
Live child 0x55797f87e710 (_build/nrf52832_xxaa.out) PID 3537 
Reaping winning child 0x55797f87e710 PID 3537 
Live child 0x55797f87e710 (_build/nrf52832_xxaa.out) PID 3539 
Reaping losing child 0x55797f87e710 PID 3539 
/home/john/src/nRF5_SDK_14.2.0/components/toolchain/gcc/Makefile.common:292: recipe for target &amp;#39;_build/nrf52832_xxaa.out&amp;#39; failed
Removing child 0x55797f87e710 PID 3539 from chain.
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 14.2.0, app_uart not finding its own function?</title><link>https://devzone.nordicsemi.com/thread/119268?ContentTypeID=1</link><pubDate>Tue, 30 Jan 2018 23:23:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3abd0c18-92f1-4838-a616-627a15c59883</guid><dc:creator>Ladasky</dc:creator><description>&lt;p&gt;Hello RK, thanks for your reply.  I have modified Makefiles, but I haven&amp;#39;t had to debug a make command at this level of detail before.  For your information, I&amp;#39;m modifying the Makefile from the UART demo in the SDK 14.2 examples folder.  I am not attempting to re-use an SDK 12.3 Makefile, as I can see that quite a bit has changed.  For example, I&amp;#39;ve noticed that the _build folder that SDK 14.2 makes is organized a little differently, now there&amp;#39;s a subfolder, nrf52832_xxaa.  I directed the output of a make -d command into a log file, which ended up being 250K long.  I found 50 references in that log file to app_uart.c.o.  I&amp;#39;m not sure what error I might be looking for.  The last referenced line reads:  &lt;code&gt;No need to remake target &amp;#39;_build/nrf52832_xxaa/app_uart.c.o&amp;#39;.&lt;/code&gt; .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 14.2.0, app_uart not finding its own function?</title><link>https://devzone.nordicsemi.com/thread/119266?ContentTypeID=1</link><pubDate>Tue, 30 Jan 2018 05:15:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43a65db3-90cb-478a-97d2-70d1d30bb7fd</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;my guess would be that you don&amp;#39;t have app_uart_c.o on the link line. Can you get a verbose make output?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>