<?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>Makefile not including files from Makefile.common</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1403/makefile-not-including-files-from-makefile-common</link><description>I can&amp;#39;t figure out why but my build cannot locate files that are included in the makefile.common
I&amp;#39;m using SDK 5.1.0 and the ble_app_hrs project. It seems it can&amp;#39;t find one of the files in the source directory. 
 Here&amp;#39;s the Error: 
 Description	Resource</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 23 Feb 2014 12:40:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1403/makefile-not-including-files-from-makefile-common" /><item><title>RE: Makefile not including files from Makefile.common</title><link>https://devzone.nordicsemi.com/thread/6298?ContentTypeID=1</link><pubDate>Sun, 23 Feb 2014 12:40:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fea6f5b-2eb3-41cb-a93c-f72f3dd34fbc</guid><dc:creator>Anton Maes</dc:creator><description>&lt;p&gt;Unfortunately when I try to run the flash download the same error causes it to launch a popup saying a problem has occured. Should this also be ignored?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Makefile not including files from Makefile.common</title><link>https://devzone.nordicsemi.com/thread/6297?ContentTypeID=1</link><pubDate>Sun, 23 Feb 2014 12:27:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6d5266d-c816-4839-9100-3f67a91d1ba5</guid><dc:creator>Anton Maes</dc:creator><description>&lt;p&gt;Yep that looks familiar.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m down to this error:
undefined reference to `softdevice_ble_evt_handler_set&amp;#39;	&lt;/p&gt;
&lt;p&gt;So i guess it should be ok. I there any other check i can do to make sure the build was ok? I do see that the build folder has been populated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Makefile not including files from Makefile.common</title><link>https://devzone.nordicsemi.com/thread/6296?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2014 19:12:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a89fe63-8a91-49c9-938d-e44d813495cb</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;Are you really talking about a gcc error or an error in eclipse. For the eclipse error check this: &lt;a target="_blank" href="https://devzone.nordicsemi.com/index.php/eclipse-kepler-as-ide-for-nordic-sdk-stucks-on-__inline#respond" rel="nofollow"&gt;https://devzone.nordicsemi.com/index.php/eclipse-kepler-as-ide-for-nordic-sdk-stucks-on-__inline#respond&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Makefile not including files from Makefile.common</title><link>https://devzone.nordicsemi.com/thread/6300?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2014 09:20:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e91af45-8c67-4caa-8ef9-cf5ca3804f92</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Have you verified that the path C:/Program Files (x86)/GNU Tools ARM Embedded/4.8 2013q4/lib/gcc/arm-none-eabi/4.8/armv6-m actually exists? This version number will usually be on the format x.y.z, not just x.y, and on my computer only the folder with 4.8.3 exists. I&amp;#39;d hence recommend you to try setting GNU_VERSION to 4.8.3.&lt;/p&gt;
&lt;p&gt;Based on your build output, you should also include app_button.c, app_gpiote.c and set the define BLE_STACK_SUPPORT_REQD.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Makefile not including files from Makefile.common</title><link>https://devzone.nordicsemi.com/thread/6299?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2014 22:08:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22d198bd-dda2-4d3b-9670-407cdcc1221b</guid><dc:creator>Anton Maes</dc:creator><description>&lt;p&gt;Makefile.windows looks ok. I also tried it with 4.7 2013q1 but no difference.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;ifeq ($(findstring 86, $(ProgramFiles)), )
PROGFILES := C:/Program Files
else
PROGFILES := C:/Program Files (x86)
endif&lt;/p&gt;
&lt;p&gt;GNU_INSTALL_ROOT := $(PROGFILES)/GNU Tools ARM Embedded/4.8 2013q4
GNU_VERSION := 4.8
GNU_PREFIX := arm-none-eabi&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/build_5F00_console_5F00_output.txt"&gt;build_console_output.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Makefile not including files from Makefile.common</title><link>https://devzone.nordicsemi.com/thread/6295?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2014 15:58:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9564a03e-caac-46d3-b4ac-bed3f3275568</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Can you please make sure that the GCC version is set correctly in Makefile.windows? If it isn&amp;#39;t, it won&amp;#39;t find the toolchain includes, which seems to be what you&amp;#39;re describing.&lt;/p&gt;
&lt;p&gt;If you still have trouble, can you please try uploading the entire build output as a text file, so I can see exactly what it does?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Makefile not including files from Makefile.common</title><link>https://devzone.nordicsemi.com/thread/6294?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2014 20:31:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:262b983c-3502-485a-91f9-eb4519103419</guid><dc:creator>Anton Maes</dc:creator><description>&lt;p&gt;Ok I included all the c_source files and now it seems to get trough building battery.c  but I still have tons of undefined symbols in main.c&lt;/p&gt;
&lt;p&gt;eg:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Symbol &amp;#39;PSTORAGE_FLASH_PAGE_END&amp;#39; could not be resolved	main.c	/ble_app_hrs_PCA10001	line 514
Symbol &amp;#39;PSTORAGE_FLASH_PAGE_END&amp;#39; could not be resolved	main.c	/ble_app_hrs_PCA10001	line 515
Symbol &amp;#39;NULL&amp;#39; could not be resolved	main.c	/ble_app_hrs_PCA10001	line 383
Symbol &amp;#39;RADIO_CRCCNF_LEN_Msk&amp;#39; could not be resolved	radio_config.c	/LED	line 57	&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;These seem to all be in pstorage_platform.h which is in the project.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Looking in the file I see &amp;lt;stdint.h&amp;gt; is listed as an unresolved inclusion. Could this be a toolchain problem? I also see uint32_t cannot be resolved.&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Makefile not including files from Makefile.common</title><link>https://devzone.nordicsemi.com/thread/6292?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2014 20:12:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13381191-d402-47f8-8b4b-53a1bc6d19db</guid><dc:creator>Anton Maes</dc:creator><description>&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Yes it&amp;#39;s in the gcc subdirectory&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;It seems to find app_error.h but now app_error is looking for nrf_error which is in the Include/s110/ folder. I&amp;#39;ve added that as well to the makefile but it still can&amp;#39;t seem to find it.
[code type=&amp;quot;xml&amp;quot;]In file included from ../battery.c:29:0:
../../../../../Include/app_common/app_error.h:27:23: fatal error: nrf_error.h: No such file or directory
#include &amp;quot;nrf_error.h&amp;quot;[/code]&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Makefile not including files from Makefile.common</title><link>https://devzone.nordicsemi.com/thread/6293?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2014 09:11:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47fb6210-b90c-4dc4-9d46-ba3b4f9fc33e</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;I think that David are correct in that Makefile.common is missing an include path. If you take a look at the default Makefile for ble_app_hrs for nrf6310, you can see that it adds several includepaths:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
TARGET_CHIP := NRF51822_QFAA_CA
BOARD := BOARD_NRF6310
CFLAGS += -DNRF51822_QFAA_CA -DBLE_STACK_SUPPORT_REQD -DBOARD_NRF6310

C_SOURCE_FILES += main.c
C_SOURCE_FILES += ../../../../../Source/ble/ble_services/ble_bas.c
C_SOURCE_FILES += ../../../../../Source/ble/ble_services/ble_dis.c
C_SOURCE_FILES += ../../../../../Source/ble/ble_services/ble_hrs.c
C_SOURCE_FILES += ../../../../../Source/ble/ble_services/ble_srv_common.c
C_SOURCE_FILES += ../../../../../Source/ble/ble_error_log.c
C_SOURCE_FILES += ../../../../../Source/ble/ble_advdata.c
C_SOURCE_FILES += ../../../../../Source/ble/ble_sensorsim.c
C_SOURCE_FILES += ../../../../../Source/sd_common/softdevice_handler.c
C_SOURCE_FILES += ../../../../../Source/ble/ble_conn_params.c
C_SOURCE_FILES += ../../../../../Source/ble/ble_bondmngr.c
C_SOURCE_FILES += ../../../../../Source/app_common/pstorage.c
C_SOURCE_FILES += ../../../../../Source/app_common/crc16.c
C_SOURCE_FILES += ../../../../../Source/ble/ble_radio_notification.c
C_SOURCE_FILES += ../../../../../Source/ble/ble_debug_assert_handler.c
C_SOURCE_FILES += ../../../../../Source/app_common/app_timer.c

INCLUDEPATHS += -I&amp;quot;../../../../../Include/ble&amp;quot;
INCLUDEPATHS += -I&amp;quot;../../../../../Include/s110&amp;quot;
INCLUDEPATHS += -I&amp;quot;../../../../../Include/app_common&amp;quot;
INCLUDEPATHS += -I&amp;quot;../../../../../Include/ble/ble_services&amp;quot;
INCLUDEPATHS += -I&amp;quot;../../../../../Include/sd_common&amp;quot;
SDK_PATH = ../../../../../
OUTPUT_FILENAME := ble_hrs_gcc

DEVICE_VARIANT := xxaa
#DEVICE_VARIANT := xxab

USE_SOFTDEVICE := S110
#USE_SOFTDEVICE := s210

include $(SDK_PATH)Source/templates/gcc/Makefile.common

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Also, I see that you in your Makefile does not set the USE_SOFTDEVICE variable. If you compile ble_app_hrs, you most likely want to set this, if not, things won&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;Finally, you may want to have a look at the GCC setup available &lt;a href="https://github.com/hlnd/nrf51-pure-gcc-setup"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Makefile not including files from Makefile.common</title><link>https://devzone.nordicsemi.com/thread/6291?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2014 22:43:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c59e567-477c-41a4-b0e1-98cacf470f09</guid><dc:creator>David Smoot</dc:creator><description>&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Is your makefile in a sub-directory of ble_app_hrs_gcc?  If you followed the pattern from the blinky example, it should be.  One possible problem is your relative path is wrong.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;More likely is you are facing the same issue I was in that the common make file does not include all the paths you need.  Try adding the line &lt;code&gt;INCLUDEPATHS += -I&amp;quot;../../../../../../Include/app_common&amp;quot;&lt;/code&gt; and see if you get a different error.  If so, you just need to add all the necessary include paths either in your local makefile or in makefile.common.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>