<?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>Build nrf project using Cmd</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65779/build-nrf-project-using-cmd</link><description>Hi , 
 I am working on nrf based project . I m trying to build my project using Cmd . I followed the steps given in link - 
 https://devzone.nordicsemi.com/nordic/nrf-connect-sdk-guides/b/getting-started/posts/ncs-tutorial---temporary#h155sjwm56iy71nftthh5gikrw9b2thl</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Sep 2020 09:22:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65779/build-nrf-project-using-cmd" /><item><title>RE: Build nrf project using Cmd</title><link>https://devzone.nordicsemi.com/thread/269112?ContentTypeID=1</link><pubDate>Fri, 11 Sep 2020 09:22:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bf35aae-b3b3-4271-b31e-af827befaa05</guid><dc:creator>shruti mishra</dc:creator><description>&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;Thanks for the response&amp;nbsp; i am using the version v.1.3.0 , i mistakenly added v.1.2.0&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build nrf project using Cmd</title><link>https://devzone.nordicsemi.com/thread/269095?ContentTypeID=1</link><pubDate>Fri, 11 Sep 2020 08:22:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e6839f8-ecaa-48f4-a712-42db59d2ccb2</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Are you using NCS v1.3.0, or v1.2.0?&lt;br /&gt;Because you seem to be using code from v1.3.0, but want to use the toolchain from v1.2.0. Those are not compatible.&lt;/p&gt;
&lt;p&gt;As you have now gotten your code to NCS v1.3.0, and that is the newest verions, I rocommend you use NCS v1.3.0.&lt;/p&gt;
&lt;p&gt;I am not familiar with coverity, but the compiler used is v1.3.0/toolchain/bin/arm-none-eabi-gcc.exe.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;[quote user="shruti mishra"][/quote]&lt;/p&gt;
&lt;p&gt;Also without opening toolchain is it possible to build the project through the cmd&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please tell me ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I guess you mean if you can build NCS from a cmd window not opened from the Toolchain Manager, when NCS is installed from the Toolchain Manager?&lt;/p&gt;
&lt;p&gt;Then the answer is no, there is no simple way of doing that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build nrf project using Cmd</title><link>https://devzone.nordicsemi.com/thread/269078?ContentTypeID=1</link><pubDate>Fri, 11 Sep 2020 06:27:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52671fee-81f1-42f0-bc4d-4044ea19ac40</guid><dc:creator>shruti mishra</dc:creator><description>&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;i need to set coverity Which compiler shall i use ?&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/compiler_5F00_path.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;Also without opening toolchain is it possible to build the project through the cmd&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please tell me ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build nrf project using Cmd</title><link>https://devzone.nordicsemi.com/thread/269074?ContentTypeID=1</link><pubDate>Fri, 11 Sep 2020 06:09:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2e06c86-b54b-45b5-b31a-59eaacb5ac94</guid><dc:creator>shruti mishra</dc:creator><description>&lt;p&gt;Hi Didrik ,&lt;/p&gt;
&lt;p&gt;I can able to build through cmd . It was not building previously because module folder was missing .Thanks for the help .&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build nrf project using Cmd</title><link>https://devzone.nordicsemi.com/thread/268937?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2020 11:25:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec2ae903-5a44-47e0-bd5b-a8e4ba9ef5d7</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;That is some progress at least.&lt;/p&gt;
&lt;p&gt;That file, and include directory, should have been added automatically by the build system.&lt;/p&gt;
&lt;p&gt;In your build/zephyr folder, there should be a file called &amp;#39;.config&amp;#39;. Can you send it to me?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build nrf project using Cmd</title><link>https://devzone.nordicsemi.com/thread/268911?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2020 10:02:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a91d1f01-6a9c-46ba-b130-0f625a527b23</guid><dc:creator>shruti mishra</dc:creator><description>&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;I replaced it ,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/build10.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build nrf project using Cmd</title><link>https://devzone.nordicsemi.com/thread/268900?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2020 09:31:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:539108c8-d76c-489d-ac14-70e074128789</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;What does your CMakeLists.txt file look like?&lt;/p&gt;
&lt;p&gt;Another change between NCS v1.2.0 and v1.3.0 is how the Zephyr build system is included.&lt;/p&gt;
&lt;p&gt;If your CMakeLists.txt file has two lines similar to these&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;include($ENV{ZEPHYR_BASE}/../nrf/cmake/boilerplate.cmake)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Try to replace them with:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build nrf project using Cmd</title><link>https://devzone.nordicsemi.com/thread/268898?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2020 09:27:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab1ea0e7-9412-4f18-a5fa-be069c0a1a93</guid><dc:creator>shruti mishra</dc:creator><description>&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;I tried without quotes , yes i setting&amp;nbsp;&lt;span&gt;CONFIG_UART_0_NRF_UARTE=y&amp;nbsp;but when i remove it ,&lt;/span&gt; few more build steps got added but inside build folder ninja file is not generated .&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/build6.PNG" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/build7.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;Before doing the build using cmd is it required to do configuration ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Shruti&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build nrf project using Cmd</title><link>https://devzone.nordicsemi.com/thread/268890?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2020 09:04:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55419eda-7f1e-429e-ac60-7c245efa3292</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Could you try without qoutes around the board name?&lt;/p&gt;
&lt;p&gt;Also, are you setting CONFIG_UART_0_NRF_UARTE=y in your prj.conf?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build nrf project using Cmd</title><link>https://devzone.nordicsemi.com/thread/268888?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2020 09:01:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edc6d90f-ce81-4ba3-bbc9-72b86757f460</guid><dc:creator>shruti mishra</dc:creator><description>&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;I added the -p at the end of west command ,still getting same error&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/build4.PNG" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/build5.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;shruti&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build nrf project using Cmd</title><link>https://devzone.nordicsemi.com/thread/268884?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2020 08:49:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21c1e8f5-04e0-41de-9c97-96a34fc290d2</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;OK, this is probably because there are some build artefacts in the build folder, so West thinks that it finished the configuration step last time, which it didn&amp;#39;t.&lt;/p&gt;
&lt;p&gt;try deleting the build folder, or add &amp;#39;-p&amp;#39; to the end of the west command to do a &amp;quot;pristine build&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build nrf project using Cmd</title><link>https://devzone.nordicsemi.com/thread/268881?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2020 08:44:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:701fc7e9-0499-4173-b955-bf3c8cb7afc2</guid><dc:creator>shruti mishra</dc:creator><description>&lt;p&gt;Hi , i have given the path&amp;nbsp;west build -b &amp;quot;nrf9160dk_nrf9160ns&amp;quot; , i got the following&amp;nbsp; error&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/build3.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;shruti&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build nrf project using Cmd</title><link>https://devzone.nordicsemi.com/thread/268874?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2020 08:28:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:821a53d1-4ef7-4da5-b231-3528002b6fe8</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;In NCS v1.3.0, the boards changed name to &amp;#39;nrf9160dk_nrf9160ns&amp;#39;.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.3.0/nrf/doc/release-notes-1.3.0.html#boards"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.3.0/nrf/doc/release-notes-1.3.0.html#boards&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Try using the new name, and see if that solves your problem.&lt;/p&gt;
&lt;p&gt;If that doesn&amp;#39;t work, I need to know a bit more about what project your are trying to build, and your prj.conf file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build nrf project using Cmd</title><link>https://devzone.nordicsemi.com/thread/268867?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2020 08:03:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6536ff2-7c1f-43b6-9486-9f91c36596f5</guid><dc:creator>shruti mishra</dc:creator><description>&lt;p&gt;Hi Didrik ,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t open the cmd not from toolchain manager , i opened cmd.exe there i was trying to build my project . i tried to open cmd through toolchain&amp;nbsp; -&lt;/p&gt;
&lt;p&gt;1 .open my test project&lt;/p&gt;
&lt;p&gt;2. then i have given command&amp;nbsp; -west build -b &amp;quot;nrf9160_pca10090ns&amp;quot;&lt;/p&gt;
&lt;p&gt;but still following error came -&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/build-details.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/build2.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please let me know which configuration i am missing&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build nrf project using Cmd</title><link>https://devzone.nordicsemi.com/thread/268864?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2020 07:45:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1505de15-db5a-4e19-86af-87b2d034a602</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Based on the path you used, I assume you installed NCS using the Toolchain Manager?&lt;/p&gt;
&lt;p&gt;Did you open CMD from the Toolchain Manager?&lt;/p&gt;
&lt;p&gt;If you did, it should work without any problems, and you should not need to provide the full path to the executible, &amp;#39;west build -b &amp;lt;board name&amp;gt;&amp;#39; should work.&lt;/p&gt;
&lt;p&gt;Finally, the board name you wrote is wrong, for the nRF91DK, you should use &amp;quot;nrf9160_pca10090ns&amp;quot;, though I assume this is just a typo in your ticket, and not related to the issue.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>