<?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>Segger overlay corrupted?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54707/segger-overlay-corrupted</link><description>I have to folders with different versions of the nrf library installed (1.0.0 and 1.1.0-rcsomething) The dts and overlay files are identical in the 2 folders (nrf9160_pca10090ns.dts, common.dts and my project overlay file). In one project the overlaying</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 25 Nov 2019 15:20:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54707/segger-overlay-corrupted" /><item><title>RE: Segger overlay corrupted?</title><link>https://devzone.nordicsemi.com/thread/221910?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2019 15:20:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7a54f35-127c-43d9-9316-5ec775d46ab7</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;You should never modify the files in the folder &lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-zephyr/tree/master/boards/arm/nrf9160_pca10090"&gt;ncs/zephyr/boards/arm/nrf9160_pca10090&lt;/a&gt;, did somebody tell you to do this? Instead, you should create a new folder in &lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-zephyr/tree/master/boards/arm"&gt;ncs/zephyr/boards/arm/nrf9160_pca10090&lt;/a&gt;&amp;nbsp;and follow&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/getting-started-cellular/posts/nrf-connect-sdk-tutorial---part-2#h9sk1upsjjr1gzbnlo1v2zvxs1c7c2pw"&gt;this guide&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;A suggestion to find the modifications you have done to the folder&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-zephyr/tree/master/boards/arm/nrf9160_pca10090"&gt;ncs/zephyr/boards/arm/nrf9160_pca10090&lt;/a&gt; is to check out the differences between your Zephyr&amp;nbsp;repo and the original Zephyr repo (&lt;span&gt;NCS downstream&lt;/span&gt;). Check out &lt;a href="https://stackoverflow.com/questions/1968512/getting-the-difference-between-two-repositories"&gt;this link&lt;/a&gt;&amp;nbsp;on how to do it.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Segger overlay corrupted?</title><link>https://devzone.nordicsemi.com/thread/221792?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2019 09:57:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3344afd2-4cce-45f6-b07d-e45a5413864f</guid><dc:creator>Tron</dc:creator><description>&lt;p&gt;I already have my custom board. The recommended approach from your colleagues was to edit the files in the board folder, and now I don&amp;#39;t remember which ffiles I edited. Using the existing project folder is now out of the question,it is fubar after checking out branches in all directions, with files modified by me&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Segger overlay corrupted?</title><link>https://devzone.nordicsemi.com/thread/221790?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2019 09:48:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3205e0df-b4d8-4d8e-bcf3-cd30d4dd63b2</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;If you are planning to use a custom board, then you could follow &lt;a href="https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/getting-started-cellular/posts/nrf-connect-sdk-tutorial---part-2#h9sk1upsjjr1gzbnlo1v2zvxs1c7c2pw"&gt;this guide&lt;/a&gt; to modify the board folder. I appreciate the feedback, but do you know other ways of going about this (using a custom board)?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Segger overlay corrupted?</title><link>https://devzone.nordicsemi.com/thread/221750?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2019 08:25:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34feef27-635f-4a80-9862-e559ad58e104</guid><dc:creator>Tron</dc:creator><description>&lt;p&gt;It works using cli, and then I&amp;#39;m able to open the project in Segger. Thanks a lot. Your article help me understand the toolchain much better.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A bit of critisism, though. The dts and overlay files are hardware specific, and very few will use the DK for developing, other than for demo and educational purposes. Modifying the overlay files in the ncs folders to suit custom hardware makes the whole thing very brittle.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Segger overlay corrupted?</title><link>https://devzone.nordicsemi.com/thread/221724?ContentTypeID=1</link><pubDate>Sun, 24 Nov 2019 22:31:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb0af15a-7d72-404f-b4a3-f1fb4f1971d1</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I manage to build the GPS sample with NCS v1.1.0 and v1.0.0.&amp;nbsp;What version of NCS are you using? Did you remember the ns extension when building the project?&amp;nbsp;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;west build -b nrf9160_pca10090&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;ns&lt;/strong&gt;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;If that doesn&amp;#39;t solve your issues,&amp;nbsp;try running these commands:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;cd &amp;lt;sourcecode_root&amp;gt;\ncs\nrf
git checkout master
git pull
git checkout v1.0.0
west update

cd &amp;lt;sourcecode_root&amp;gt;\ncs
pip3 install -r zephyr\scripts\requirements.txt
pip3 install -r nrf\scripts\requirements.txt
pip3 install -r mcuboot\scripts\requirements.txt&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then try to build the GPS project&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you provide the error log you got?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;
&lt;div style="left:69px;top:209px;"&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="left:419px;top:46px;"&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Segger overlay corrupted?</title><link>https://devzone.nordicsemi.com/thread/221720?ContentTypeID=1</link><pubDate>Sun, 24 Nov 2019 20:51:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86f74a01-e960-412b-93eb-f1fb8a7af792</guid><dc:creator>Tron</dc:creator><description>&lt;p&gt;I did&lt;/p&gt;
&lt;p&gt;C:\gnuarmemb\bin\arm-none-eabi-gcc.exe --version&lt;/p&gt;
&lt;p&gt;, and got the same response as you did. No big surprise there. My toolchain in segger is also identical to yours:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1574628325783v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I read your article with great interest, though, and found it very useful in order to make me understand the entire build process and the tool chain.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Building the gps project with west build gave me a totally different result than the one I got in segger, though. It passed the compiler test, but complained about a non-exixtent include file (do make sure your samples compile before you release!)&lt;/p&gt;
&lt;p&gt;I&amp;#39;m still at loss on how to proceed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Segger overlay corrupted?</title><link>https://devzone.nordicsemi.com/thread/221699?ContentTypeID=1</link><pubDate>Sat, 23 Nov 2019 23:38:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eaa52490-b5d4-483d-a2e1-7d9ce57c4c17</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I&amp;nbsp;can see that the &lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-zephyr/blob/v2.0.99-ncs1/cmake/compiler/gcc/generic.cmake#L24"&gt;following line&lt;/a&gt; fails for you, and I can see that&amp;nbsp;&lt;span&gt;CMAKE_C_COMPILER is set to&amp;nbsp;C:/Program&lt;br /&gt;Files/segger/arm_segger_embedded_studio_v420a_win_x64_nordic/bin/cc.exe.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I tried to build an example and&amp;nbsp;print out CMAKE_C_COMPILER and I noticed that it was equal to&amp;nbsp;&lt;em&gt;C:/gnuarmemb/bin/arm-none-eabi-gcc.exe &lt;/em&gt;in my case.&amp;nbsp;&lt;em&gt;&amp;nbsp;&lt;/em&gt;I also tried to run the command, and it gave the following output:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:\gnuarmemb\bin&amp;gt;arm-none-eabi-gcc.exe --version
arm-none-eabi-gcc.exe (GNU Tools for Arm Embedded Processors 7-2018-q2-update) 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907]
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Have you set the GNU ARM Embedded Toolchain Directory in SES? Check out &lt;a href="https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/getting-started-cellular/posts/nrf-connect-sdk-tutorial#h155sjwm56iy71nftthh5gikrw9b2thl"&gt;this link&lt;/a&gt; for instructions on how to do it. I think that might solve your issues.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/600x400/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-bf791462ffa449fb8521ddc0fa0e12ba/pastedimage1574552595579v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Segger overlay corrupted?</title><link>https://devzone.nordicsemi.com/thread/221560?ContentTypeID=1</link><pubDate>Fri, 22 Nov 2019 13:04:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95fe6547-5bfd-445a-b185-90a992d63ca0</guid><dc:creator>Tron</dc:creator><description>&lt;p&gt;I still get the gcc compiler error when opening the GPS project in the samples/nrf9160 folder when checking out the v1.1.0 tag&lt;/p&gt;
&lt;p&gt;CMake Error at C:/nrfTest-1.1/ncs/zephyr/cmake/compiler/gcc/generic.cmake:24 (message):&lt;br /&gt; Executing the below command failed. Are permissions set correctly?&lt;/p&gt;
&lt;p&gt;&amp;#39;C:/Program&lt;br /&gt; Files/segger/arm_segger_embedded_studio_v420a_win_x64_nordic/bin/cc.exe&lt;br /&gt; --version&amp;#39;&lt;/p&gt;
&lt;p&gt;Call Stack (most recent call first):&lt;br /&gt; C:/nrfTest-1.1/ncs/zephyr/cmake/generic_toolchain.cmake:68 (include)&lt;br /&gt; C:/nrfTest-1.1/ncs/zephyr/cmake/app/boilerplate.cmake:507 (include)&lt;br /&gt; CMakeLists.txt:10 (include)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Segger overlay corrupted?</title><link>https://devzone.nordicsemi.com/thread/221551?ContentTypeID=1</link><pubDate>Fri, 22 Nov 2019 12:45:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a70e84ca-2521-4a8d-8b62-cefe9c399bc3</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;In the&amp;nbsp;project where it fails, what tag/commit of the nrf repository are you using? You mentioned &lt;em&gt;&amp;quot;1.1.0-rcsomething&amp;quot;&lt;/em&gt;, could you try the latest stable tag v1.1.0 (which was just released) and see if you get the error then.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Segger overlay corrupted?</title><link>https://devzone.nordicsemi.com/thread/221528?ContentTypeID=1</link><pubDate>Fri, 22 Nov 2019 10:43:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5ab23bf-61b8-4525-8774-b1b249c52090</guid><dc:creator>Tron</dc:creator><description>&lt;p&gt;I&amp;#39;ve also tried to create a totally new folder, following the getting started assistant in the NRFConnect app. Then, opening a project from the samples/nrf folder (gps), initializing the project fails ,and I get the message&lt;/p&gt;
&lt;p&gt;Executing the below command failed. Are permissions set correctly?&lt;/p&gt;
&lt;p&gt;&amp;#39;C:/Program Files/segger/arm_segger_embedded_studio_v420a_win_x64_nordic/bin/cc.exe --version&amp;#39;&lt;/p&gt;
&lt;p&gt;When I try to execute the given command in a cli, i get the reply&amp;nbsp;&lt;br /&gt;cc.exe: error: unrecognised option --version&lt;br /&gt;cc.exe: error: -o option required&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>