<?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>Error: CMake Failed</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80915/error-cmake-failed</link><description>Hello i&amp;#39;m trying to run a sample from my projects but each time i&amp;#39;m getting the CMake error i tried changing project and running from another directory but the problem still persist 
 
 i&amp;#39;m trying to run the example of the BME280 but it doesn&amp;#39;t seem to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Oct 2021 08:47:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80915/error-cmake-failed" /><item><title>RE: Error: CMake Failed</title><link>https://devzone.nordicsemi.com/thread/335423?ContentTypeID=1</link><pubDate>Fri, 22 Oct 2021 08:47:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:050a2dbf-2218-4cb6-85de-4cf88e2d24e3</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Try deleting the&amp;nbsp;following:&lt;/p&gt;
&lt;p&gt;1. all build folders&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. CMakeFiles folder&lt;/p&gt;
&lt;p&gt;3. Kconfig folder&lt;/p&gt;
&lt;p&gt;4. CMakeCache text file&lt;/p&gt;
&lt;p&gt;5. zephyr_modules text file&lt;/p&gt;
&lt;p&gt;6. zephyr_setting text file&lt;/p&gt;
&lt;p&gt;Then, within prj.conf, either &lt;strong&gt;remove&amp;nbsp;&lt;/strong&gt;CONFIG_LOG_IMMEDIATE=y or replace it with&amp;nbsp;&lt;strong&gt;CONFIG_LOG_MODE_IMMEDIATE=y&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Then try re-importing into SEGGER.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This worked for me and hope it does for you too and kindly let me know.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;PK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error: CMake Failed</title><link>https://devzone.nordicsemi.com/thread/335337?ContentTypeID=1</link><pubDate>Thu, 21 Oct 2021 13:59:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92a905ed-99c6-44f7-bf00-ae2780711ae8</guid><dc:creator>Rihab</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1212.bme280.zip"&gt;devzone.nordicsemi.com/.../1212.bme280.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;that&amp;#39;s the project&lt;br /&gt;infact it runs from the zephyr samples but i want to run it from my project&lt;br /&gt;do you can help me please&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error: CMake Failed</title><link>https://devzone.nordicsemi.com/thread/335332?ContentTypeID=1</link><pubDate>Thu, 21 Oct 2021 13:44:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29860b79-9cad-438d-86ba-ff095a20e32f</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Do you get the same error when building the default bme280 sample provided by zephyr?&lt;/p&gt;
&lt;p&gt;Also, would it be possible to share the bme280 folder from your projects as a zip file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error: CMake Failed</title><link>https://devzone.nordicsemi.com/thread/335327?ContentTypeID=1</link><pubDate>Thu, 21 Oct 2021 13:28:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c694c6b3-9bba-40e5-8f55-8f573fb1d17c</guid><dc:creator>Rihab</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1634822817902v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;these are the files inside my project&amp;nbsp;&lt;br /&gt;and yes there&amp;#39;s another project called Bme280 under the zephyr samples&amp;nbsp;&lt;br /&gt;it&amp;#39;s the default sample package provided by zephyr&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error: CMake Failed</title><link>https://devzone.nordicsemi.com/thread/335325?ContentTypeID=1</link><pubDate>Thu, 21 Oct 2021 13:18:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:091c262a-7de2-49a9-95c9-550f61256298</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;I see that the location that you have is C:/Users/rzaafouri/ncs/v1.7.0/Projects/bme280. Could you share a picture of all the files within this folder?&lt;/p&gt;
&lt;p&gt;Also, Do you have a bme280 folder in the location&amp;nbsp;&lt;span&gt;&amp;nbsp;C:/Users/rzaafouri/ncs/v1.7.0/zephyr/samples/sensor/bme280 ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error: CMake Failed</title><link>https://devzone.nordicsemi.com/thread/335304?ContentTypeID=1</link><pubDate>Thu, 21 Oct 2021 12:23:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da64dbcb-4aab-4463-b335-08eb9aee6718</guid><dc:creator>Rihab</dc:creator><description>&lt;p&gt;i&amp;#39;m using nrf5340DK and i&amp;#39;m on Windows&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error: CMake Failed</title><link>https://devzone.nordicsemi.com/thread/335302?ContentTypeID=1</link><pubDate>Thu, 21 Oct 2021 12:21:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd8d8b54-c8a9-4b93-b48d-f29a00f6724c</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you tell me&amp;nbsp;whether you using an nRF5340 DK or&amp;nbsp;nRF5340 PDK? Also, what OS are you running on Windows, Linux or Mac OS?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;PK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error: CMake Failed</title><link>https://devzone.nordicsemi.com/thread/335249?ContentTypeID=1</link><pubDate>Thu, 21 Oct 2021 09:59:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75647729-1f07-490c-bb0c-36560d25e44e</guid><dc:creator>Rihab</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
C:\Users\rzaafouri\ncs\v1.7.0\Projects\bme280&amp;gt;west build -b nrf5340dk_nrf5340cpuapp
ERROR: it looks like . is a build directory: did you mean --build-dir . instead?
FATAL ERROR: refusing to proceed without --force due to above error

C:\Users\rzaafouri\ncs\v1.7.0\Projects\bme280&amp;gt;west build -b nrf5340dk_nrf5340cpuapp --force
-- west build: generating a build system
Including boilerplate (Zephyr base (cached)): C:/Users/rzaafouri/ncs/v1.7.0/zephyr/cmake/app/boilerplate.cmake
-- Application: C:/Users/rzaafouri/ncs/v1.7.0/Projects/bme280
-- Using NCS Toolchain 1.7.0 for building. (C:/Users/rzaafouri/ncs/v1.7.0/toolchain/cmake)
-- Zephyr version: 2.6.99 (C:/Users/rzaafouri/ncs/v1.7.0/zephyr), build: v2.6.99-ncs1
-- Found west (found suitable version &amp;quot;0.11.1&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
-- Board: nrf5340dk_nrf5340_cpuapp
-- Cache files will be written to: C:/Users/rzaafouri/ncs/v1.7.0/zephyr/.cache
-- Found dtc: C:/Users/rzaafouri/ncs/v1.7.0/toolchain/opt/bin/dtc.exe (found suitable version &amp;quot;1.4.7&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;)
-- Found toolchain: gnuarmemb (C:/Users/rzaafouri/ncs/v1.7.0/toolchain/opt)
-- Found BOARD.dts: C:/Users/rzaafouri/ncs/v1.7.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts
-- Found devicetree overlay: C:/Users/rzaafouri/ncs/v1.7.0/Projects/bme280/nrf5340dk_nrf5340_cpuapp.overlay
-- Generated zephyr.dts: C:/Users/rzaafouri/ncs/v1.7.0/Projects/bme280/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/Users/rzaafouri/ncs/v1.7.0/Projects/bme280/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/Users/rzaafouri/ncs/v1.7.0/Projects/bme280/build/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: C:/Users/rzaafouri/ncs/v1.7.0/Projects/bme280/build/zephyr/dts.cmake
Parsing C:/Users/rzaafouri/ncs/v1.7.0/Projects/bme280/Kconfig
C:/Users/rzaafouri/ncs/v1.7.0/zephyr/scripts/kconfig/kconfig.py: [Errno 13] Permission denied: &amp;#39;C:/Users/rzaafouri/ncs/v1.7.0/Projects/bme280/Kconfig&amp;#39;
CMake Error at C:/Users/rzaafouri/ncs/v1.7.0/zephyr/cmake/kconfig.cmake:268 (message):
  command failed with return code: 1
Call Stack (most recent call first):
  C:/Users/rzaafouri/ncs/v1.7.0/zephyr/cmake/app/boilerplate.cmake:554 (include)
  C:/Users/rzaafouri/ncs/v1.7.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
  C:/Users/rzaafouri/ncs/v1.7.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:40 (include_boilerplate)
  CMakeLists.txt:4 (find_package)


-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: &amp;#39;C:\Users\rzaafouri\ncs\v1.7.0\toolchain\opt\bin\cmake.EXE&amp;#39; &amp;#39;-DWEST_PYTHON=C:\Users\rzaafouri\ncs\v1.7.0\toolchain\opt\bin\python.exe&amp;#39; &amp;#39;-BC:\Users\rzaafouri\ncs\v1.7.0\Projects\bme280\build&amp;#39; &amp;#39;-SC:\Users\rzaafouri\ncs\v1.7.0\Projects\bme280&amp;#39; -GNinja&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;i&amp;#39;m trying to run it through the command prompt and this is the output i get everytime&amp;nbsp;&lt;br /&gt;can you help please&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>