<?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>Cannot find Zephyr-sdkConfig.cmake</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92002/cannot-find-zephyr-sdkconfig-cmake</link><description>I picked up a project that was last worked on several months ago, updated all the tools, and can&amp;#39;t get past this: 
 
 I normally use my own checkout of nRF Connect SDK, but this time I even tried using the SDK installed with the toolchain (see above)</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Sep 2022 07:57:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92002/cannot-find-zephyr-sdkconfig-cmake" /><item><title>RE: Cannot find Zephyr-sdkConfig.cmake</title><link>https://devzone.nordicsemi.com/thread/386777?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2022 07:57:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc729d9a-8c07-4a80-ad86-96f72e8e01fb</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Jan,&lt;/p&gt;
&lt;p&gt;Thanks for letting me know! The toolchain manager&amp;nbsp;is tested with zsh, which is the default shell in recent macOS versions, but not other shells. I have forwarded your comments about the missing documentation about ZEPHYR_SDK_INSTALL_DIR&amp;nbsp;so that it can be added for a future release.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot find Zephyr-sdkConfig.cmake</title><link>https://devzone.nordicsemi.com/thread/386773?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2022 07:36:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcf56875-b72f-49eb-b04c-beee68d1324e</guid><dc:creator>Jan Rychter</dc:creator><description>&lt;p&gt;Ok, so this took a while, but I did figure this out. The short answer is that what was missing in my environment was a variable called &amp;quot;ZEPHYR_SDK_INSTALL_DIR&amp;quot; which needs to be set to &amp;quot;/opt/nordic/ncs/toolchains/v2.1.0/opt/zephyr-sdk&amp;quot;.&lt;/p&gt;
&lt;p&gt;What seems to be a clear bug in the Toolchain Manager is that this variable DOES NOT get set if the user&amp;#39;s shell is &amp;quot;/bin/tcsh&amp;quot;. I suspect it was only tested with &amp;quot;/bin/bash&amp;quot; and assumes that this is the shell that everyone uses.&lt;/p&gt;
&lt;p&gt;I would also suggest that is is perhaps worth checking why this crucial variable isn&amp;#39;t mentioned in the documentation much. I checked:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Installing manually&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_installing.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_installing.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Migration notes for nRF Connect SDK v2.0.0&amp;nbsp;&lt;a id="" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.0/nrf/migration/migration_guide_1.x_to_2.x.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.0/nrf/migration/migration_guide_1.x_to_2.x.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Environment Variables&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/develop/env_vars.html#env-vars-important"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/develop/env_vars.html#env-vars-important&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Developing with Zephyr &amp;raquo; Application Development&amp;nbsp;&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/develop/application/index.html#important-build-vars"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/develop/application/index.html#important-build-vars&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;none of these contain the string &amp;quot;ZEPHYR_SDK_INSTALL_DIR&amp;quot;, which I think is a problem. I am not sure how I am supposed to discover that this variable needs to be set and what it should be set to.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot find Zephyr-sdkConfig.cmake</title><link>https://devzone.nordicsemi.com/thread/386767?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2022 07:11:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0370a067-8370-4662-8b2d-38f2c269fac6</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I am not able to reproduce, but looking et the errors there seems to still be problems with the environment variables. You can verify this by echoing the relevant environment variables and checking with what value they should have by lookin in&amp;nbsp;/opt/nordic/ncs/toolchains/v2.1.0/environment.json which lists all variables and their content (this is what is used by the toolchain manager when opening a terminal).&lt;/p&gt;
&lt;p&gt;As these are set by the toolchain manager I suspect&amp;nbsp;you change some of them after opening the terminal via the Toolchain manager (deliberately or not)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot find Zephyr-sdkConfig.cmake</title><link>https://devzone.nordicsemi.com/thread/386706?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2022 15:40:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e811c678-d5d5-4726-a1bf-3d78c1ee0241</guid><dc:creator>Jan Rychter</dc:creator><description>&lt;p&gt;So I launched&amp;nbsp;nRF Connect for Desktop, which upgraded itself to v3.12.1, which seems to be the newest released version. I then launched Toolchain Manager 1.1.3 from within it. I used &amp;quot;Open Terminal&amp;quot;, cd&amp;#39;d to the sample directory and I get the same thing:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;[17:34] jwr-macbook-pro:/opt/nordic/ncs/v2.1.0/nrf/samples/peripheral/lpuart&amp;gt;west build -b nrf52840dk_nrf52840 --pristine&lt;br /&gt;-- west build: making build dir /opt/nordic/ncs/v2.1.0/nrf/samples/peripheral/lpuart/build pristine&lt;br /&gt;-- west build: generating a build system&lt;br /&gt;Loading Zephyr default modules (Zephyr base).&lt;br /&gt;-- Application: /opt/nordic/ncs/v2.1.0/nrf/samples/peripheral/lpuart&lt;br /&gt;-- Using NCS Toolchain 2.1.0 for building. (/opt/nordic/ncs/toolchains/v2.1.0/cmake)&lt;br /&gt;-- Found Python3: /opt/nordic/ncs/toolchains/v2.1.0/bin/python3 (found suitable exact version &amp;quot;3.9.6&amp;quot;) found components: Interpreter &lt;br /&gt;-- Cache files will be written to: /Users/jwr/Library/Caches/zephyr&lt;br /&gt;-- Zephyr version: 3.1.99 (/opt/nordic/ncs/v2.1.0/zephyr)&lt;br /&gt;-- Found west (found suitable version &amp;quot;0.14.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)&lt;br /&gt;-- Board: nrf52840dk_nrf52840&lt;br /&gt;CMake Error at /opt/nordic/ncs/v2.1.0/zephyr/cmake/modules/verify-toolchain.cmake:84 (find_package):&lt;br /&gt; Could not find a package configuration file provided by &amp;quot;Zephyr-sdk&amp;quot;&lt;br /&gt; (requested version 0.13.1) with any of the following names:&lt;/p&gt;
&lt;p&gt;Zephyr-sdkConfig.cmake&lt;br /&gt; zephyr-sdk-config.cmake&lt;/p&gt;
&lt;p&gt;Add the installation prefix of &amp;quot;Zephyr-sdk&amp;quot; to CMAKE_PREFIX_PATH or set&lt;br /&gt; &amp;quot;Zephyr-sdk_DIR&amp;quot; to a directory containing one of the above files. If&lt;br /&gt; &amp;quot;Zephyr-sdk&amp;quot; provides a separate development package or SDK, be sure it has&lt;br /&gt; been installed.&lt;br /&gt;Call Stack (most recent call first):&lt;br /&gt; /opt/nordic/ncs/v2.1.0/zephyr/cmake/modules/zephyr_default.cmake:121 (include)&lt;br /&gt; /opt/nordic/ncs/v2.1.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)&lt;br /&gt; /opt/nordic/ncs/v2.1.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)&lt;br /&gt; CMakeLists.txt:9 (find_package)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;-- Configuring incomplete, errors occurred!&lt;br /&gt;FATAL ERROR: command exited with status 1: /opt/homebrew/bin/cmake -DWEST_PYTHON=/opt/homebrew/opt/python@3.10/bin/python3.10 -B/opt/nordic/ncs/v2.1.0/nrf/samples/peripheral/lpuart/build -GNinja -DBOARD=nrf52840dk_nrf52840 -S/opt/nordic/ncs/v2.1.0/nrf/samples/peripheral/lpuart&lt;br /&gt;[17:38] jwr-macbook-pro:/opt/nordic/ncs/v2.1.0/nrf/samples/peripheral/lpuart&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot find Zephyr-sdkConfig.cmake</title><link>https://devzone.nordicsemi.com/thread/386660?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2022 13:06:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b757cac9-be17-4940-9aad-bedcb8bb5e80</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Ah, now I see.&amp;nbsp;Now you are building for&amp;nbsp;nrf52840dk_nrf52840 and that&amp;nbsp;should have worked, and does when I test with SDK v2.1.0 from the toolchain manager on macOS 12.6 building from VS Code. But it seems the&amp;nbsp;environment is not properly set up here. To use the toolchain manger yo would normally open the terminal from within the toolchain manager, and that would set up the environment correctly for you. That does not work in due to a bug in toolchain manger v1.1.3, though.&lt;/p&gt;
&lt;p&gt;Until that is fixed you could either use VS Code with the nRF plugin, which will set up the toolchain automatically as long as you point to the right one, or you could configure the environment manually as you have attempted to do. The way to do this was changed in 2.0.0. We do not have a script that does it for you, but you can see everything you need in&amp;nbsp;/opt/nordic/ncs/toolchains/v2.1.0/environment.json.&lt;/p&gt;
&lt;p&gt;Update:&amp;nbsp;A new&amp;nbsp;release of nRF Connect for&amp;nbsp;Desktop launcher (v3.13.1) for mac is just out now, and that fixes the issue with opening a terminal (and VS Code) from the toolchain manager. If you do that, the example should build&amp;nbsp;as expected from the command line (does so when I test on my M1 MacBook Air).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot find Zephyr-sdkConfig.cmake</title><link>https://devzone.nordicsemi.com/thread/386657?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2022 12:51:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:006e0276-1c59-4c0c-8961-d756efde0694</guid><dc:creator>Jan Rychter</dc:creator><description>&lt;p&gt;Hmm. Not sure if this is what you mean, but:&lt;/p&gt;
&lt;p&gt;[14:47] jwr-macbook-pro:/opt/nordic/ncs/v2.1.0/nrf/samples/peripheral/lpuart&amp;gt;west build -b nrf52840dk_nrf52840 --pristine&lt;br /&gt;-- west build: making build dir /opt/nordic/ncs/v2.1.0/nrf/samples/peripheral/lpuart/build pristine&lt;br /&gt;-- west build: generating a build system&lt;br /&gt;Loading Zephyr default modules (Zephyr base).&lt;br /&gt;-- Application: /opt/nordic/ncs/v2.1.0/nrf/samples/peripheral/lpuart&lt;br /&gt;-- Using NCS Toolchain 2.1.0 for building. (/opt/nordic/ncs/toolchains/v2.1.0/cmake)&lt;br /&gt;-- Found Python3: /opt/nordic/ncs/toolchains/v2.1.0/bin/python3 (found suitable exact version &amp;quot;3.9.6&amp;quot;) found components: Interpreter &lt;br /&gt;-- Cache files will be written to: /Users/jwr/Library/Caches/zephyr&lt;br /&gt;-- Zephyr version: 3.1.99 (/opt/nordic/ncs/v2.1.0/zephyr)&lt;br /&gt;-- Found west (found suitable version &amp;quot;0.14.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)&lt;br /&gt;-- Board: nrf52840dk_nrf52840&lt;br /&gt;CMake Error at /opt/nordic/ncs/v2.1.0/zephyr/cmake/modules/verify-toolchain.cmake:84 (find_package):&lt;br /&gt; Could not find a package configuration file provided by &amp;quot;Zephyr-sdk&amp;quot;&lt;br /&gt; (requested version 0.13.1) with any of the following names:&lt;/p&gt;
&lt;p&gt;Zephyr-sdkConfig.cmake&lt;br /&gt; zephyr-sdk-config.cmake&lt;/p&gt;
&lt;p&gt;Add the installation prefix of &amp;quot;Zephyr-sdk&amp;quot; to CMAKE_PREFIX_PATH or set&lt;br /&gt; &amp;quot;Zephyr-sdk_DIR&amp;quot; to a directory containing one of the above files. If&lt;br /&gt; &amp;quot;Zephyr-sdk&amp;quot; provides a separate development package or SDK, be sure it has&lt;br /&gt; been installed.&lt;br /&gt;Call Stack (most recent call first):&lt;br /&gt; /opt/nordic/ncs/v2.1.0/zephyr/cmake/modules/zephyr_default.cmake:121 (include)&lt;br /&gt; /opt/nordic/ncs/v2.1.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)&lt;br /&gt; /opt/nordic/ncs/v2.1.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)&lt;br /&gt; CMakeLists.txt:9 (find_package)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;-- Configuring incomplete, errors occurred!&lt;br /&gt;FATAL ERROR: command exited with status 1: /opt/homebrew/bin/cmake -DWEST_PYTHON=/opt/homebrew/opt/python@3.10/bin/python3.10 -B/opt/nordic/ncs/v2.1.0/nrf/samples/peripheral/lpuart/build -GNinja -DBOARD=nrf52840dk_nrf52840 -S/opt/nordic/ncs/v2.1.0/nrf/samples/peripheral/lpuart&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot find Zephyr-sdkConfig.cmake</title><link>https://devzone.nordicsemi.com/thread/386653?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2022 12:44:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c2da365-6bcd-49d6-a6f9-45e07671cbbb</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Ah, I did not notice that you were using the lpuart sample. It also fails if I build for the nrf52840_mdk. That is not a Nordic board though, though it has a Nordic IC. So we do not test that, it is just part of Zephyr. If you try to build the sample for for intsance nrf52840dk_nrf52840, you will see that it build fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot find Zephyr-sdkConfig.cmake</title><link>https://devzone.nordicsemi.com/thread/386634?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2022 12:06:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fa5e009-cfda-4078-89fa-e7d9cf33cbbd</guid><dc:creator>Jan Rychter</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/eith"&gt;Einar Thorsrud&lt;/a&gt;&amp;nbsp;&amp;mdash; Hmm. I read the migration notes you mentioned, but they do not seem to mention any changes in my project files related to the toolchain used. But in any case, as I&amp;#39;ve shown in the example above, I reproduced the problem using your &amp;quot;samples/peripheral/lpuart&amp;quot; example, using the toolchain installed with the toolchain manager, in the directory tree which is entirely controlled by the toolchain manager. In other words, while the environment variables might have something to do with the issue, my (old) project is in no way involved in the above example.&lt;/p&gt;
&lt;p&gt;I also did try deleting and reinstalling the toolchain using the toolchain manager, which din&amp;#39;t change anything.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot find Zephyr-sdkConfig.cmake</title><link>https://devzone.nordicsemi.com/thread/386615?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2022 11:34:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cc7600a-16c8-4297-9182-acf96b69d2ba</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There were a lot of changes introduces in nRF Connect SDK 2.0.0, including a new toolchain. It seems the issue here is that you have an older project and you are using it with the latest SDK release without migrating it. Depending on the goal, you should either use the nRF Connect SDK release (and accompanying toolchain) your application was built for, or you need to migrate your application to the latest release. The &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.0/nrf/migration/migration_guide_1.x_to_2.x.html"&gt;migration notes for nRF Connect SDK v2.0.0&lt;/a&gt; will be particularily relevant here, as it seems your application was for a 1.x release.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>