<?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>Help with error: cmake:2891 (message):BOARD is not being defined on the CMake command-line,</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114027/help-with-error-cmake-2891-message-board-is-not-being-defined-on-the-cmake-command-line</link><description>Hi, 
 I am getting the following error: CMake Error at C:/ncs/v2.6.1/zephyr/cmake/modules/extensions.cmake:2891 (message):BOARD is not being defined on the CMake command-line, in the environment or by the app. I have explicitly added &amp;quot; set (board nrf5340dk_nrf5340</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Aug 2024 07:01:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114027/help-with-error-cmake-2891-message-board-is-not-being-defined-on-the-cmake-command-line" /><item><title>RE: Help with error: cmake:2891 (message):BOARD is not being defined on the CMake command-line,</title><link>https://devzone.nordicsemi.com/thread/499889?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2024 07:01:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb5487d2-84e8-4286-8ad6-73d07404f0ce</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello, I&amp;#39;m glad you found a solution to the problem! I will report back to our developers.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with error: cmake:2891 (message):BOARD is not being defined on the CMake command-line,</title><link>https://devzone.nordicsemi.com/thread/499641?ContentTypeID=1</link><pubDate>Sat, 24 Aug 2024 18:41:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:552d9426-79eb-4687-b721-c65fb1608228</guid><dc:creator>ChiBit</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Looks like it is solved.&lt;/p&gt;
&lt;p&gt;I found the following:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/95702/west-is-not-recognized-with-vscode"&gt;(+) &amp;#39;west&amp;#39; is not recognized with VScode - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone (nordicsemi.com)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I disabled CMake and CMake Tools.&amp;nbsp; Problem went away.&amp;nbsp; Then I enabled CMake again and there was no problem.&amp;nbsp; Seems like there is a problem with CMake Tools.&lt;/p&gt;
&lt;p&gt;So, now I have CMake enabled and CMake Tools disabled, and I don&amp;#39;t get any more problems with blinky_pwm.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thx!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with error: cmake:2891 (message):BOARD is not being defined on the CMake command-line,</title><link>https://devzone.nordicsemi.com/thread/499590?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2024 13:52:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a029f419-7d5c-4251-8fd4-5ec67d6b6a27</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello again, I&amp;#39;ve been trying to find a solution to this. Our developers want to know the reason for setting this in the CmakeFile? There seems to be an issue with west but unfortunately there is no work around at the moment.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;If you remove&amp;nbsp;&lt;span&gt;&lt;code&gt;set(board&amp;nbsp;nrf5340dk_nrf5340_cpuapp)&lt;/code&gt; from CmakeLists.txt and build using &lt;code&gt;west build -b&amp;nbsp;nrf5340dk_nrf5340_cpuapp -d build&lt;/code&gt;, do you have any issues?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with error: cmake:2891 (message):BOARD is not being defined on the CMake command-line,</title><link>https://devzone.nordicsemi.com/thread/499338?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2024 09:18:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbdf3d91-0ac8-40ea-b619-b5b697593025</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Thanks for clarifying. I&amp;#39;m investigating internally and getting back to you within tomorrow.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with error: cmake:2891 (message):BOARD is not being defined on the CMake command-line,</title><link>https://devzone.nordicsemi.com/thread/499129?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2024 01:41:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:836a6eb4-93f8-4fe4-9528-7b5c6c91671a</guid><dc:creator>ChiBit</dc:creator><description>&lt;p&gt;The file name is CMakeLists.txt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with error: cmake:2891 (message):BOARD is not being defined on the CMake command-line,</title><link>https://devzone.nordicsemi.com/thread/498978?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2024 08:20:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:883417c6-540d-4730-bba9-6025cbb54a54</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Is your file named cmake.txt and not cmakelists.txt ?&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;CMakeLists.txt&lt;/strong&gt;: This file tells the build system where to find the other application files, and links the application directory with Zephyr’s CMake build system. This link provides features supported by Zephyr’s build system, such as board-specific configuration files, the ability to run and debug compiled binaries on real or emulated hardware, and more.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Please see &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/zephyr/develop/application/index.html#application_cmakeliststxt"&gt;Application CMakeLists.txt in the nRF Connect SDK documentation&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with error: cmake:2891 (message):BOARD is not being defined on the CMake command-line,</title><link>https://devzone.nordicsemi.com/thread/498936?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2024 02:47:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18159574-a67c-45fe-af7d-7ee02c499dd6</guid><dc:creator>ChiBit</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tried it and there is no difference.&amp;nbsp; The error is still there.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;//-----------------------------------cmake.txt--------------------------------------------------------&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;# SPDX-License-Identifier: Apache-2.0&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;cmake_minimum_required&lt;/span&gt;&lt;span&gt;(VERSION 3.20.0)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;set&lt;/span&gt;&lt;span&gt;(board nrf5340dk_nrf5340_cpuapp)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;find_package&lt;/span&gt;&lt;span&gt;(Zephyr REQUIRED HINTS &lt;/span&gt;&lt;span&gt;$ENV{ZEPHYR_BASE}&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;project&lt;/span&gt;&lt;span&gt;(blinky_pwm)&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;target_sources&lt;/span&gt;&lt;span&gt;(app PRIVATE src/main.c)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;//---------------------------------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Thx&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with error: cmake:2891 (message):BOARD is not being defined on the CMake command-line,</title><link>https://devzone.nordicsemi.com/thread/498777?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2024 09:41:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:629822a3-3ac0-49e6-9a58-69bff4854456</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Looking at the documentation for &amp;quot;Working with the nRF53 series&amp;quot; there does seem to be a documentation bug, which states nrf5340dk_nrf5340 as build target. This is not correct. There are three build targets described under &amp;quot;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/nrf/device_guides/working_with_nrf/nrf53/nrf5340.html#introduction"&gt;Developing for nRF5340DK&lt;/a&gt;&amp;quot;&amp;nbsp;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span&gt;nRF5340 is a wireless ultra-low-power multicore System on Chip (SoC) with two fully programmable Arm Cortex-M33 processors: a network core and an application core.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The build target for the network core in Zephyr is&amp;nbsp;&lt;code&gt;&lt;span&gt;nrf5340dk_nrf5340_cpunet&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The build target for application core is&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;nrf5340dk_nrf5340_cpuapp&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;for build targets with CMSE disabled.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;nrf5340dk_nrf5340_cpuapp_ns&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;for build targets that have CMSE enabled and have the SPE firmware alongside the NSPE firmware.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Can you please use&amp;nbsp;&lt;span&gt;nrf5340dk_nrf5340_cpuapp instead i.e. &lt;code&gt;set(board&amp;nbsp;nrf5340dk_nrf5340_cpuapp)&lt;/code&gt;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>