<?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>Unable to use cMAKE on Windows to compile for nRF52840 target</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32663/unable-to-use-cmake-on-windows-to-compile-for-nrf52840-target</link><description>Hi. I am going down a rabbit hole. Wish to work with the SDK for Mesh using ideally the PCA10040 (nRF52832) and PCA10056 (nRF52840) kits. 
 
 1) Is this possible to mix the testing for the Nordic Light switch demo for server / client boards? It is that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 25 Mar 2018 19:56:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32663/unable-to-use-cmake-on-windows-to-compile-for-nrf52840-target" /><item><title>RE: Unable to use cMAKE on Windows to compile for nRF52840 target</title><link>https://devzone.nordicsemi.com/thread/125880?ContentTypeID=1</link><pubDate>Sun, 25 Mar 2018 19:56:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:037529b5-ffdf-47af-9939-d03ad6e48117</guid><dc:creator>mon2</dc:creator><description>&lt;p&gt;OMG Hadi - YES!! Your download compiles perfectly &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;On Monday, was planning to install VMWARE and then a true Ubuntu platform so we can stop with this Linux emulation and work in the real environment. My work PC is bloated now with CygWin, MingW and who knows what else in an attempt to get the compiler and the cMAKE tools installed. As stated before, confident we went down the wrong path here but many of these names including the Python installation is new to us. Respectively, we did not use the cmake but before leaving work on Friday, we started to use cmake and then found we are missing the gcc for arm embedded compiler. That started another lost journey of how to install that tool. I think a complete guide on how to perform the installation will help out a great deal for others (including us). The savior here is your post with the complete folder structure. As soon as we have some time, will revisit this again from scratch.&lt;/p&gt;
&lt;p&gt;Immediately, wish to test the mesh using a mix of nRF52832 &amp;amp; nRF52840 targets. Many many thanks for your assistance!! Bye for now.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to use cMAKE on Windows to compile for nRF52840 target</title><link>https://devzone.nordicsemi.com/thread/125878?ContentTypeID=1</link><pubDate>Sun, 25 Mar 2018 19:16:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:860ffa65-c705-471b-a6fe-b04fad10f2b1</guid><dc:creator>Hadi Deknache</dc:creator><description>&lt;p&gt;Hello, I downloaded the attached zip file and there seem to be missing files during the compile when doing:&amp;nbsp;&lt;em&gt;cmake -G Ninja -DGENERATE_SES_PROJECTS=ON -DPLATFORM=nrf52840_xxAA ..&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Did you do this step, and if so did you get something like this during the compilation?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/bild1.png" /&gt;&lt;/p&gt;
&lt;p&gt;I ran the Segger project and got same errors as show in your post, after compiling the mesh sdk the errors disappeared. I&amp;#39;ll attached your project here have a check,&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3108.nrf5_5F00_SDK_5F00_for_5F00_Mesh_5F00_v1.0.1_5F00_src.zip"&gt;devzone.nordicsemi.com/.../3108.nrf5_5F00_SDK_5F00_for_5F00_Mesh_5F00_v1.0.1_5F00_src.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regarding the nRF52810 dev kits they aren&amp;#39;t compatible with mesh yet, have a look at this post:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/29586/nrf52810"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/29586/nrf52810&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to use cMAKE on Windows to compile for nRF52840 target</title><link>https://devzone.nordicsemi.com/thread/125801?ContentTypeID=1</link><pubDate>Fri, 23 Mar 2018 16:30:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55f83485-2e4e-4af6-a64e-32ac358d6d84</guid><dc:creator>mon2</dc:creator><description>&lt;p&gt;Hello. Still raising errors so attaching my complete folder.&lt;/p&gt;
&lt;p&gt;Some comments:&lt;/p&gt;
&lt;p&gt;1) Took the compiled Segger supporting project folder and attempted to compile. This was our first error as then there is no link to the SDK 1.0.1. Learned this the hard way. Upon each raised missing header file error, copied the required files from the SDK folder. Anyways, we should have instead copied your updated Light Switch example into the SDK 1.0.1 folder. We basically did this in reverse and consumed many hours. For the future reader, it will be best to show this detail step by step.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Download the SDK 1.0.1 -&amp;gt; replace the Light Switch example with the updated version that does offer Segger support for the PCA10056.&lt;/p&gt;
&lt;p&gt;2) Even with following the above procedure that we just made aware of -&amp;gt; still raising an error of missing:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1521822582158v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;From what we can see, this missing nrf_error.h file is inside the S132 softdevice folder. However the S132 softdevice is not valid for PCA10056 target or is it ok?&lt;/p&gt;
&lt;p&gt;The Segger include path does not offer searches for the S132 folder. Urghhh!!!!&lt;/p&gt;
&lt;p&gt;Our path structure does not include any reference to the S132 folder hence the raised error.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf5_5F00_SDK_5F00_for_5F00_Mesh_5F00_v1.0.1_5F00_src.zip"&gt;devzone.nordicsemi.com/.../nrf5_5F00_SDK_5F00_for_5F00_Mesh_5F00_v1.0.1_5F00_src.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;include&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;../include&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;../..&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;../../common/include&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;../../../external/nRF5_SDK_14.2.0_17b948a/components/drivers_nrf/delay&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;../../../models/simple_on_off/include&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;../../../models/config/include&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;../../../models/health/include&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;../../../mesh/access/api&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;../../../mesh/access/include&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;../../../mesh/prov/api&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;../../../mesh/prov/include&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;../../../external/nRF5_SDK_14.2.0_17b948a/components/boards&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;../../../external/nRF5_SDK_14.2.0_17b948a/components/drivers_nrf/hal&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;../../../external/nRF5_SDK_14.2.0_17b948a/components/libraries/util&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;../../../external/softdevice/s140_5.0.0-3.alpha/s140_nrf52840_5.0.0-3.alpha_API/include&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;../../../external/softdevice/s140_5.0.0-3.alpha/s140_nrf52840_5.0.0-3.alpha_API/include/nrf52&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;../../../mesh/core/api&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;../../../external/nRF5_SDK_14.2.0_17b948a/components/device&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;../../../external/nRF5_SDK_14.2.0_17b948a/components/toolchain&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;../../../external/nRF5_SDK_14.2.0_17b948a/components/toolchain/cmsis/include&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;../../../external/nRF5_SDK_14.2.0_17b948a/components/toolchain/gcc&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;../../../external/nRF5_SDK_14.2.0_17b948a/components/toolchain/dsp/GCC&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;../../../external/rtt/include&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;../../../mesh/core/include&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;../../../mesh/dfu/api&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;../../../mesh/dfu/include&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;../../../mesh/prov/api&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;../../../mesh/prov/include&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;../../../mesh/bearer/api&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;../../../mesh/bearer/include&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;../../../external/micro-ecc&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;../../../mesh/core/include&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;3) We also own a Thing52 so perhaps we can use the Thing52 like the PCA10040 target to get moving on this testing with a server and client for the Light Switch demo? We did bring in the 0.05&amp;quot; pitch ribbon cable to use one of the Nordic PCBs to reflash the Thingy52.&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;4) Would you please confirm if the nRF52810 is NOT able to support mesh? If true then the documentation needs to be updated to reflect this detail as we purchased some tools to evaluate this target.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to use cMAKE on Windows to compile for nRF52840 target</title><link>https://devzone.nordicsemi.com/thread/125781?ContentTypeID=1</link><pubDate>Fri, 23 Mar 2018 15:26:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3aa6148-9051-46f9-aa01-0345aa5d9d0c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Kumar,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There must be an issue with the path, in my case the project worked out of the box. I suggest you to try with a fresh copy of the SDK. Make sure you use v1.0.1&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If it still doesn&amp;#39;t work, please zip your example folder and we can test here.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to use cMAKE on Windows to compile for nRF52840 target</title><link>https://devzone.nordicsemi.com/thread/125715?ContentTypeID=1</link><pubDate>Fri, 23 Mar 2018 11:38:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:998f9dec-2230-4051-beaa-618ef65c29d9</guid><dc:creator>Hadi Deknache</dc:creator><description>&lt;p&gt;Hello, I suggest that you download the mesh sdk v1.0.1 from the beginning, extract it. When this is done then navigate&amp;nbsp;into the sdk root through the terminal, do&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;mkdir build &amp;amp;&amp;amp; cd build&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;span&gt;cmake -G Ninja -DGENERATE_SES_PROJECTS=ON -DPLATFORM=nrf52840_xxAA ..&lt;/span&gt;&lt;/p&gt;
&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;This will generate the Segger project for pca10056 nRF52840. Just to mention you will need python and pip installed in order to generate Segger project. Also you will need to install jinja2 by doing&amp;nbsp;&lt;/span&gt;&lt;strong&gt;pip install Jinja2&amp;nbsp;&lt;/strong&gt;in the terminal. Afterwards you should see Segger project in the examples/light-switch/client or server example.&lt;/p&gt;
&lt;p&gt;Hope it helps!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to use cMAKE on Windows to compile for nRF52840 target</title><link>https://devzone.nordicsemi.com/thread/125704?ContentTypeID=1</link><pubDate>Fri, 23 Mar 2018 10:32:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0acbbc82-a47d-42ee-9d6b-a7f3e27e3cfe</guid><dc:creator>mon2</dc:creator><description>&lt;p&gt;Hello and thank you Hadi for your post. Still facing some issues but working with Segger toolchain.&lt;/p&gt;
&lt;p&gt;1) Downloaded the referenced project file to generate the Mesh Light example on the PCA10056 target as posted by Hung Bui.&lt;/p&gt;
&lt;p&gt;2) The compiler raised many errors due to missing header files (.h) so reviewed the Include Paths and then cut &amp;amp; past the folders that should have been there to compile this example.&lt;/p&gt;
&lt;p&gt;My folder structure is as follows:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/mesh_5F00_light_5F00_folder.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;3) It has taken many hours of toying with this project to get this far and now the raised error is:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/segger_5F00_error.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Any ideas on how to resolve this error? From our limited knowledge, this define is for older SoftDevices (ie. S132 - according to the Nordic keyword search results) but we are on S140?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;There has to be something we are doing wrong for this to be taking so many hours and still unable to compile for the PCA10056 target (Mesh Light Example). Perhaps wiser to just order a few of the PCA10040 kits for testing. With regret, we thought we could run the mesh stack on the nRF52810 (read that somewhere in the docs) but that is not supported and is not on the roadmap? So the kits we just brought in from Fanstel will not allow us to be used for mesh networking. Also brought in the PPK which is apparently not working in low power mode - we wish to validate that the PCA10040 / PCA10056 can indeed enter low power mode to deploy with a CR2032 coin cell battery for a long period of time.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Welcome any comments and really appreciate your assistance. Thanks again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to use cMAKE on Windows to compile for nRF52840 target</title><link>https://devzone.nordicsemi.com/thread/125615?ContentTypeID=1</link><pubDate>Thu, 22 Mar 2018 22:16:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fadb8885-e316-44fb-b8a8-49df5323b7d2</guid><dc:creator>mon2</dc:creator><description>&lt;p&gt;Thank you. Let me review with a strong cup of coffee. Believe I am missing the gcc and Ninja installation. The last Ninja I can recall is &lt;span&gt;Michael Dudikoff&lt;/span&gt;. I think this installation procedure needs more hand holding, at least for me :) Will try again on a different PC. Thanks again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to use cMAKE on Windows to compile for nRF52840 target</title><link>https://devzone.nordicsemi.com/thread/125612?ContentTypeID=1</link><pubDate>Thu, 22 Mar 2018 20:56:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fa889be-8b87-49e4-951d-0c98062239c3</guid><dc:creator>Hadi Deknache</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/mon2"&gt;mon2&lt;/a&gt;, I was in the same situation as you some days ago when discovering the mesh sdk, so no need to worry...&lt;/p&gt;
&lt;p&gt;Just to clarify, you can either use Segger embedded studio&amp;nbsp;for flashing the program, or use cmake and make to compile the program and later flash it to the device.&lt;/p&gt;
&lt;p&gt;1. That should not be any problem I assume, since a node is a node no matter what development kit is used&lt;/p&gt;
&lt;p&gt;2. Right now in the mesh sdk 1.0.1 light switch example there is only &amp;quot;support&amp;quot;&amp;nbsp;for&amp;nbsp;the&amp;nbsp;&lt;span&gt;PCA10040 board, but&amp;nbsp;in&amp;nbsp;the mesh sdk 1.0 there is support for&amp;nbsp;PCA10040 and&amp;nbsp;PCA10056 board. I assume that&amp;nbsp;PCA10040 should only be used with the PCA10040 board.&amp;nbsp;Correct me if I am wrong..&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3. Have you followed the guide for setting up the toolchain for cmake in the mesh sdk root--&amp;gt;doc--&amp;gt;getting started? For compiling the files you will need to:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;mkdir build &amp;amp;&amp;amp; cd build in the mesh sdk root folder&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;span&gt;then do&amp;nbsp;&lt;/span&gt;&lt;/span&gt;cmake -G Ninja -DTOOLCHAIN=gccarmemb -DPLATFORM=nrf52840_xxAA .. (for nRF52840 board)&lt;/li&gt;
&lt;li&gt;And lastly do a make to compile the examples for flashing to the dev kit boards after&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;EDIT:&lt;/strong&gt; After answering your questions I found a post for generating a Segger project for desired dev kit board, please check this post:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/30035/segger-embedded-studio-project-files-missing-in-mesh-sdk-v1-0-1"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/30035/segger-embedded-studio-project-files-missing-in-mesh-sdk-v1-0-1&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>