<?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>Getting started with blinky doesn&amp;#39;t work</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93906/getting-started-with-blinky-doesn-t-work</link><description>I followed all the steps from the website: https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/develop/getting_started/index.html 
 But I get the following error message: 
 ~/zephyrproject/zephyr$ west build -p always -b nrf52840dk_nrf52840</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Feb 2023 09:57:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93906/getting-started-with-blinky-doesn-t-work" /><item><title>RE: Getting started with blinky doesn't work</title><link>https://devzone.nordicsemi.com/thread/409309?ContentTypeID=1</link><pubDate>Fri, 10 Feb 2023 09:57:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2684b64e-0024-482f-bb1e-4977bdb5b018</guid><dc:creator>ephimee</dc:creator><description>&lt;p&gt;Sorry for the late reply. My problem is solved with the following commands:&lt;/p&gt;
&lt;p&gt;cd $HOME/ncs2/v2.1.2/zephyr&lt;br /&gt;source zephyr-env.sh&lt;br /&gt;west build -p always -b nrf52840dk_nrf52840 samples/basic/blinky&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting started with blinky doesn't work</title><link>https://devzone.nordicsemi.com/thread/397399?ContentTypeID=1</link><pubDate>Thu, 24 Nov 2022 12:12:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f16c107c-7ebe-437c-a820-df7bf4e30bb8</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry for the delay. I had a few days off.&lt;/p&gt;
[quote user="ephimee"]Can you tell me which environment settings I need to set including value?[/quote]
&lt;p&gt;The following is the case for setting up the environment variables for building with the command line.&lt;/p&gt;
&lt;p&gt;In both versions of NCS you need&lt;code&gt; ZEPHYR_BASE=&amp;lt;path to ncs-version&amp;gt;.&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;For NCS v1.6.1, you need&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;code&gt;ZEPHYR_TOOLCHAIN_VARIANT=&amp;quot;gnuarmemb&amp;quot;&lt;br /&gt;GNUARMEMB_TOOLCHAIN_PATH=&amp;lt;path to installation of toolchain&amp;gt;
&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;For NCS v2.0.2 you need&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;code&gt;
ZEPHYR_TOOLCHAIN_VARIANT=&amp;quot;zephyr&amp;quot;
&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;You can either set these variables when switching between the versions, or make a script for setting them for ease of use.&lt;/p&gt;
&lt;p&gt;use &lt;code&gt;export &amp;lt;VARIABLE_NAME&amp;gt;=value &lt;/code&gt;to set the variables.&lt;/p&gt;
[quote user="ephimee"]It&amp;#39;s a long time ago I installed SES with NCS 1.6.1, but I use it daily and is necessary to support the code base until we&amp;#39;ve completely moved to NCS2 so yes I still need it.[/quote]
&lt;p&gt;Ok, thank you for clarifying. Setting up the environment variables in SES is done by following the instructions &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.1/nrf/gs_installing.html#set-up-the-build-environment-in-ses"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Starting with NCS v2.0.0 SES is no longer supported as an IDE. The recommended IDE for NCS v2.x.y is VS Code and using the &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-for-VS-Code"&gt;nRF Connect for VS Code&lt;/a&gt; Extension.&lt;/p&gt;
[quote user="ephimee"]I ran the script zephyr/zephyr-env.sh before west build, and it compiles. And with west flash I was able to load it onto the DK board.[/quote]
&lt;p&gt;Ok, good that you were able to build and flash. When building, make sure to pay attention to the toolchain variant and the Zephyr version when building. When building with NCS v1.6.1, the Zephyr version should be 2.6.0-rc1 and the toolchain found should be &lt;code&gt;gnuarmemb&lt;/code&gt;. When building with NCS v2.0.2, the Zephyr version should be 3.0.99 and the toolchain found should be &lt;code&gt;zephyr 0.14.1&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;br /&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting started with blinky doesn't work</title><link>https://devzone.nordicsemi.com/thread/396554?ContentTypeID=1</link><pubDate>Mon, 21 Nov 2022 07:33:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7608c59d-ca6b-44ee-9d62-f9120e31c79a</guid><dc:creator>ephimee</dc:creator><description>[quote userid="116814" url="~/f/nordic-q-a/93906/getting-started-with-blinky-doesn-t-work/396477"]It is possible to have several instances of NCS installed. But you need to make sure that all the environment variables are set to the version you are using for each session.[/quote]
&lt;p&gt;Can you tell me which environment settings I need to set including value?&lt;/p&gt;
[quote userid="116814" url="~/f/nordic-q-a/93906/getting-started-with-blinky-doesn-t-work/396477"]I do not know how SEGGER Embedded Studio (SES) sets up the building environment and if it is compatible with another version of NCS being installed. Let me know if you want to continue to use SES for NCS v1.6.1 and I can find out what to consider when having multiple versions of NCS installed.[/quote]
&lt;p&gt;It&amp;#39;s a long time ago I installed SES with NCS 1.6.1, but I use it daily and is necessary to support the code base until we&amp;#39;ve completely moved to NCS2 so yes I still need it.&lt;/p&gt;
[quote userid="116814" url="~/f/nordic-q-a/93906/getting-started-with-blinky-doesn-t-work/396477"]A configuration that should work is to build from the command line. To use switch between the versions you can run the zephyr-env.sh script before building with the version you choose. Instructions are found &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.2/nrf/gs_installing.html#set-up-the-command-line-build-environment"&gt;here&lt;/a&gt;. The script is within &amp;lt;ncs-installation&amp;gt;/zephyr.[/quote]
&lt;p&gt;I ran the script zephyr/zephyr-env.sh before west build, and it compiles. And with west flash I was able to load it onto the DK board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting started with blinky doesn't work</title><link>https://devzone.nordicsemi.com/thread/396477?ContentTypeID=1</link><pubDate>Fri, 18 Nov 2022 16:54:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98e516d6-ebb0-472d-98f7-cd77c98f106d</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="ephimee"]Yes, you are right. I&amp;#39;m using NCS 1.6.1 with Nordic Segger.[/quote]
&lt;p&gt;Aha, the mismatch makes sense then.&lt;/p&gt;
[quote user="ephimee"]Is there a way to setup the environment for a specific NCS version? So I can go back and forth?[/quote]
&lt;p&gt;It is possible to have several instances of NCS installed. But you need to make sure that all the environment variables are set to the version you are using for each session.&lt;/p&gt;
&lt;p&gt;Note that you do not have NCS v2.0.2 installed by following the guide you linked in your original ticket. To install NCS v2.0.2, follow &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.2/nrf/gs_installing.html"&gt;this guide&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I do not know how SEGGER Embedded Studio (SES) sets up the building environment and if it is compatible with another version of NCS being installed. Let me know if you want to continue to use SES for NCS v1.6.1 and I can find out what to consider when having multiple versions of NCS installed.&lt;/p&gt;
&lt;p&gt;A configuration that should work is to build from the command line. To use switch between the versions you can run the zephyr-env.sh script before building with the version you choose. Instructions are found &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.2/nrf/gs_installing.html#set-up-the-command-line-build-environment"&gt;here&lt;/a&gt;. The script is within &amp;lt;ncs-installation&amp;gt;/zephyr.&lt;/p&gt;
&lt;p&gt;I have not tested this configuration yet, but I can do so after the weekend.&lt;/p&gt;
&lt;p&gt;An extra bit of information about NCS v1.6.1 and v2.0.2 is that they use different toolchains. v1.6.1 uses GNU Arm Embedded toolchain, while v2.0.2 uses Zephyr SDK toolchain. The switch was made with the release of NCS 2.0.0.&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting started with blinky doesn't work</title><link>https://devzone.nordicsemi.com/thread/396211?ContentTypeID=1</link><pubDate>Thu, 17 Nov 2022 12:56:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:558d3103-6d3a-4922-8899-30cc542ce128</guid><dc:creator>ephimee</dc:creator><description>&lt;p&gt;Yes, you are right. I&amp;#39;m using NCS 1.6.1 with Nordic Segger.&lt;/p&gt;
&lt;p&gt;Because NCS 1.6.1 will be phased out in the future, I&amp;#39;m already preparing for NCS 2.x&lt;/p&gt;
&lt;p&gt;So basically I want to run both versions because I want to develop new things on NCS 2x while maintaining the older versions on NCS 1.6.1&lt;/p&gt;
&lt;p&gt;Is there a way to setup the environment for a specific NCS version? So I can go back and forth?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting started with blinky doesn't work</title><link>https://devzone.nordicsemi.com/thread/396203?ContentTypeID=1</link><pubDate>Thu, 17 Nov 2022 12:43:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d3111aa-273e-4afb-a862-6b0db0e5409a</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;I am continuing to study the build log you have provided. &lt;/p&gt;
[quote user=""]-- Zephyr version: 2.4.99 (/home/ephimee/zephyrproject/zephyr)[/quote]
&lt;p&gt;This version of Zephyr was tagged over two years ago. The newest tagged release is v3.2.0. The two versions of the Zephyr project uses different toolchains. If your SDK version and your toolchain version does not match, this could be the cause of your error. &lt;/p&gt;
[quote user=""]-- Found toolchain: zephyr (/home/ephimee/ncs_v2.0.2/toolchains/v2.0.2/opt/zephyr-sdk)[/quote]
&lt;p&gt;Zephyr Project v3.0.99 is used with NCS v2.0.2. The toolchain version is zephyr-sdk-0.14.1. &lt;/p&gt;
&lt;p&gt;Since you are using Zephyr Project, I am not sure why you have a folder referring to NCS. Have you got a previous install of NCS on your computer? This could be the reason for any version incompatibilities.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting started with blinky doesn't work</title><link>https://devzone.nordicsemi.com/thread/396155?ContentTypeID=1</link><pubDate>Thu, 17 Nov 2022 09:41:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b39de6b-17b5-45d5-a8ea-7cd151b69d5c</guid><dc:creator>ephimee</dc:creator><description>&lt;p&gt;I use the global install.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting started with blinky doesn't work</title><link>https://devzone.nordicsemi.com/thread/396144?ContentTypeID=1</link><pubDate>Thu, 17 Nov 2022 09:14:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c2d5fa8-fdb1-4315-9e84-2d118b288f3d</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I was not able to reproduce the error on Windows subsystem for Linux running Ubuntu 20.04 LTS. I used the virtual environment install. Did you use the virtual environment or the global install?&lt;/p&gt;
&lt;p&gt;Sorry for the back and forth here, I am trying to understand what goes wrong on your end.&lt;/p&gt;
[quote user="ephimee"]According to the Nordic website, they use this Zephyr project example. So if this is incorrect, the website needs to be updated.[/quote]
&lt;p&gt;Yes, Zephyr samples are used for Nordic devices, but usually by installing nRF Connect SDK, and not only Zephyr project. The install guide for NCS is found &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_installing.html"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;br /&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting started with blinky doesn't work</title><link>https://devzone.nordicsemi.com/thread/396063?ContentTypeID=1</link><pubDate>Wed, 16 Nov 2022 16:39:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66d82ed0-6c0d-4c72-969f-c04b7f68ee44</guid><dc:creator>ephimee</dc:creator><description>&lt;p&gt;I&amp;#39;m on Ubuntu 20.04.5 LTS.&lt;/p&gt;
&lt;p&gt;According to the Nordic website, they use this Zephyr project example. So if this is incorrect, the website needs to be updated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting started with blinky doesn't work</title><link>https://devzone.nordicsemi.com/thread/396037?ContentTypeID=1</link><pubDate>Wed, 16 Nov 2022 15:00:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9036c8db-838f-4bfc-a07e-8740c612b181</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have started to look at this, but was not able to reproduce the error on a Windows device. It seems you are using a Linux device, so I will try to reproduce the issue on a Linux device as well.&lt;/p&gt;
&lt;p&gt;In the meantime, you can help by providing some additonal information about your setup:&lt;/p&gt;
&lt;p&gt;1. What OS and which version of it are you using?&lt;/p&gt;
&lt;p&gt;2. Is there a particular reason you are using Zephyr project and not nRF Connect SDK?&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;br /&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>