<?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>cmake sample</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55947/cmake-sample</link><description>Hi, 
 As of now we are using SEGGER Embedded Studio for compilation and Flashing. 
 Now we would like to copile using Cmake tool, can you please provide template Cmake for any of the existing any of the example project so that I can look into it and build</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Jan 2020 06:09:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55947/cmake-sample" /><item><title>RE: cmake sample</title><link>https://devzone.nordicsemi.com/thread/228710?ContentTypeID=1</link><pubDate>Mon, 13 Jan 2020 06:09:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1e96cee-0231-4fd8-8bd7-9ca244256e1b</guid><dc:creator>skulkarni</dc:creator><description>&lt;p&gt;I&amp;#39;m using&amp;nbsp;&lt;strong&gt;Eclipse CDT4 - Unix Makefiles &lt;/strong&gt;Generator.. and issues is not resolved yet.. Does Nordic support this generator.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cmake sample</title><link>https://devzone.nordicsemi.com/thread/228326?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2020 10:45:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0b3332a-cd7a-4786-ba76-0f46179b86f0</guid><dc:creator>skulkarni</dc:creator><description>&lt;p&gt;&amp;nbsp;Building ASM object BLE/nRF52/modules/CMakeFiles/MODULES.dir/nrfx/mdk/gcc_startup_nrf52.S.obj&lt;/p&gt;
&lt;p&gt;gcc_7_2_1\tools\bin\arm-none-eabi-as.exe: &lt;strong&gt;unrecognized&lt;/strong&gt; option `-&lt;strong&gt;BOARD_PCA10040&lt;/strong&gt;&amp;#39;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know while compiling asm code getting this error.&lt;/p&gt;
&lt;p&gt;Any suggestions would be grateful!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cmake sample</title><link>https://devzone.nordicsemi.com/thread/228248?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2020 03:47:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93fa4c74-9a54-44a3-8b0e-d8ebced95d06</guid><dc:creator>skulkarni</dc:creator><description>&lt;p&gt;Looks like I need to use&amp;nbsp;&lt;strong&gt;SEGGER_RTT_Syscalls_GCC.c.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cmake sample</title><link>https://devzone.nordicsemi.com/thread/228133?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2020 12:49:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:362c124b-560b-44e5-8fe4-d0f54b7c0e75</guid><dc:creator>skulkarni</dc:creator><description>&lt;p&gt;Hi Stian,&lt;/p&gt;
&lt;p&gt;Thanks for your response.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now C and C++ compilers are identified.&lt;/p&gt;
&lt;p&gt;But getting below error&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;segger_rtt/SEGGER_RTT_Syscalls_SES.c:75:10: fatal error: __libc.h: No such file or directory&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;When I looked into Segger installation folder&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;C:\Program Files\SEGGER\SEGGER Embedded Studio for ARM 4.10\include&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;we can find __libc.h file&lt;/p&gt;
&lt;p&gt;but in the ARM tool chain installation which I am using doesn&amp;#39;t have&amp;nbsp;&lt;span&gt;__libc.h file&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;C:\Program Files (x86)\GNU Tools Arm Embedded\9 2019-q4-major\arm-none-eabi\include.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Please advice how to fix this.&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cmake sample</title><link>https://devzone.nordicsemi.com/thread/227871?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2020 11:52:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:405471bb-5853-42c1-9c45-71d37aa70b20</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi, in addition to the previous CMakeLists.txt, I&amp;#39;m including the following file to setup the toolchain:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="bat"&gt;INCLUDE(CMakeForceCompiler)
################################################################################
# cross compilation tools
find_program(CROSS_GCC_FULL_PATH &amp;quot;arm-none-eabi-gcc&amp;quot;)
get_filename_component(CROSS_COMPIL_TOOLS ${CROSS_GCC_FULL_PATH} PATH)
if (NOT EXISTS ${CROSS_COMPIL_TOOLS})
	message (FATAL_ERROR &amp;quot;Can&amp;#39;t find cross compilation tool chain&amp;quot;)
endif()

SET(CPREF				${CROSS_COMPIL_TOOLS}/arm-none-eabi)
SET(CMAKE_C_COMPILER	${CPREF}-gcc CACHE STRING &amp;quot;arm-none-eabi-gcc&amp;quot; FORCE)
SET(CMAKE_CXX_COMPILER	${CPREF}-g++ CACHE STRING &amp;quot;arm-none-eabi-g++&amp;quot; FORCE)
SET(AS					&amp;quot;${CROSS_COMPIL_TOOLS}/arm-none-eabi-gcc -x -assembler-with-cpp&amp;quot;  CACHE STRING &amp;quot;arm-none-eabi-as&amp;quot;)
SET(CMAKE_AR			${CPREF}-ar CACHE STRING &amp;quot;arm-none-eabi-ar&amp;quot; FORCE)
SET(CMAKE_LD			${CPREF}-ld CACHE STRING &amp;quot;arm-none-eabi-ld&amp;quot; FORCE)
SET(NM					${CPREF}-nm CACHE STRING &amp;quot;arm-none-eabi-nm&amp;quot; FORCE)
SET(OBJCOPY				${CPREF}-objcopy CACHE STRING &amp;quot;arm-none-eabi-objcopy&amp;quot; FORCE)
SET(OBJDUMP				${CPREF}-objdump CACHE STRING &amp;quot;arm-none-eabi-objdump&amp;quot; FORCE)
SET(READELF				${CPREF}-readelf CACHE STRING &amp;quot;arm-none-eabi-readelf&amp;quot; FORCE)
SET(CMAKE_RANLIB ${CPREF}-ranlib CACHE STRING &amp;quot;arm-none-eabi-ranlib&amp;quot; FORCE)

#Make sure this is the absolute path to your GNU compiler install folder. Remember to get the version number correct.
CMAKE_FORCE_C_COMPILER(${CPREF}-gcc GNU)
CMAKE_FORCE_CXX_COMPILER(${CPREF}-g++ GNU)
################################################################################

#fix &amp;#39;-rdynamic&amp;#39; cmake 2.8.9 bug
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS &amp;quot;&amp;quot;)
SET(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS &amp;quot;&amp;quot;)

SET(CMAKE_FIND_ROOT_PATH	${CROSS_COMPIL_TOOLS})
include_directories(${CROSS_COMPIL_TOOLS}/../arm-none-eabi/include/)
file(GLOB _CPP_INCLUDE_DIR_ ${CROSS_COMPIL_TOOLS}/../arm-none-eabi/include/c++/*)
include_directories(${_CPP_INCLUDE_DIR_})

ENABLE_LANGUAGE(ASM)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Not sure if everything is needed, but at least make sure that the arm-none-eabi include directories are included, similar to the last 5 lines above&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cmake sample</title><link>https://devzone.nordicsemi.com/thread/227333?ContentTypeID=1</link><pubDate>Fri, 03 Jan 2020 06:36:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e57d0f1-2d35-4ffc-82c7-a8e5e9d95257</guid><dc:creator>skulkarni</dc:creator><description>&lt;p&gt;Hi Heidi,&lt;/p&gt;
&lt;p&gt;Thank you for the response. Also I need&amp;nbsp;&amp;nbsp;CMAKE_CXX_FLAGS as I am&amp;nbsp;including some C++ files.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cmake sample</title><link>https://devzone.nordicsemi.com/thread/227219?ContentTypeID=1</link><pubDate>Thu, 02 Jan 2020 11:04:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c9ce41d-abc1-4a08-9679-ed9bf2455b8c</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi! Due to the holidays here in Norway, we are short on staff in the technical support department. You can expect an answer at the beginning of next week.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cmake sample</title><link>https://devzone.nordicsemi.com/thread/227178?ContentTypeID=1</link><pubDate>Thu, 02 Jan 2020 05:28:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d08e589-24ca-4b4b-8fd4-fdcbbbc34d8b</guid><dc:creator>skulkarni</dc:creator><description>&lt;p&gt;Hello Team,&lt;/p&gt;
&lt;p&gt;I am stuck on this.. Need your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cmake sample</title><link>https://devzone.nordicsemi.com/thread/227137?ContentTypeID=1</link><pubDate>Tue, 31 Dec 2019 11:22:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6a0a9b2-83c0-4f2c-9dc3-a8957152864a</guid><dc:creator>skulkarni</dc:creator><description>&lt;p&gt;Hi Heidi,&lt;/p&gt;
&lt;p&gt;Thank you for your response. I have modified the above temple for&amp;nbsp;&lt;strong&gt;ble_app_blinky&amp;nbsp;&lt;/strong&gt;in SDK-15.3 version.&lt;/p&gt;
&lt;p&gt;I have installed &lt;strong&gt;arm-none-eabi&lt;/strong&gt; on my laptop which is running on Windows 10 OS and below&amp;nbsp;variable definitions&amp;nbsp; I have added in Environment variables.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ARM_NONE_EABI_TOOLCHAIN_PATH&lt;/strong&gt; =&amp;nbsp;C:\Program Files (x86)\GNU Tools Arm Embedded\9 2019-q4-major&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;CC&lt;/strong&gt; =&amp;nbsp;C:\Program Files (x86)\GNU Tools Arm Embedded\9 2019-q4-major\bin\arm-none-eabi-gcc.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am getting the below error&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3326.cmake-error.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;Here is my modified &lt;strong&gt;CMakeLists.txt&lt;/strong&gt; file&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6038.CMakeLists.txt"&gt;devzone.nordicsemi.com/.../6038.CMakeLists.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Log files&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2337.CMakeError.log"&gt;devzone.nordicsemi.com/.../2337.CMakeError.log&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5074.CMakeOutput.log"&gt;devzone.nordicsemi.com/.../5074.CMakeOutput.log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3821.CMakeCache.txt"&gt;devzone.nordicsemi.com/.../3821.CMakeCache.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Please advice me on my running the Cmake step and how to fix the above issue.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Thanks,&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Kulkarni&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cmake sample</title><link>https://devzone.nordicsemi.com/thread/227088?ContentTypeID=1</link><pubDate>Mon, 30 Dec 2019 15:00:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:211f2517-7b6b-4f64-a0ba-44721f97ad9a</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi again! Here is a template.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-bb87fe1db1164c9db7dee588c9310796/ble_5F00_app_5F00_template_5F00_CMakeLists.txt"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_template_5F00_CMakeLists.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cmake sample</title><link>https://devzone.nordicsemi.com/thread/226942?ContentTypeID=1</link><pubDate>Fri, 27 Dec 2019 14:21:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:387ba4a8-15f3-4137-9ecc-a1a7749a2576</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Due to the holidays here in Norway, we are short on staff these days.&amp;nbsp;I know that somebody in our department has what you are looking for, but they are currently on vacation.&lt;/p&gt;
&lt;p&gt;I will have an answer for you in week two (the 6th of January)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cmake sample</title><link>https://devzone.nordicsemi.com/thread/226818?ContentTypeID=1</link><pubDate>Wed, 25 Dec 2019 06:45:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b20c9900-2714-46c0-9c33-78f8ff467d17</guid><dc:creator>skulkarni</dc:creator><description>&lt;p&gt;I am trying to compile a simple hello world program using cmake tool. Below variables I have defined in the Environment variables.&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;CC =&amp;nbsp;C:\Program Files\SEGGER\SEGGER Embedded Studio for ARM 4.10\gcc\arm-none-eabi\bin\cc1&lt;/p&gt;
&lt;p&gt;CXX = C:\Program Files\SEGGER\SEGGER Embedded Studio for ARM 4.10\gcc\arm-none-eabi\bin\cc1plus&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Below error I get when I try to compile&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/cmake-error.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;Can some help me how to resolve this issue.. I am new to Cmake..!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>