<?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 application from main.c</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68792/build-application-from-main-c</link><description>Hi everyone! 
 I&amp;#39;m new using Nordic Semiconductor products, I have a Nordic Thingy 91 running Asset Tracker application by default. 
 I want to test only specific things first, this case I want to run this main.c file in order to toggle the NMOS pins</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Dec 2020 13:48:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68792/build-application-from-main-c" /><item><title>RE: Build application from main.c</title><link>https://devzone.nordicsemi.com/thread/282689?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 13:48:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87548925-80e8-4911-bc63-fd63eb5e39a4</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Yes, then it&amp;#39;s:&amp;nbsp;&amp;nbsp;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;west build -b thingy91_nrf9160ns&lt;/span&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Make sure to either build with the -p flag or delete the build folder between builds. And remember to run &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;west update&lt;/span&gt; in the ncs/nrf directory if you haven&amp;#39;t done this.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you confirm that the file &amp;quot;atomic.h&amp;quot; is located in /home/alejandro/ncs/zephyr/include/sys?&amp;nbsp;&lt;/p&gt;
&lt;p&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 application from main.c</title><link>https://devzone.nordicsemi.com/thread/282252?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2020 12:16:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc9cf1bb-e7bf-454d-8467-def1189e6562</guid><dc:creator>Alejandro Chavez</dc:creator><description>&lt;p&gt;I tried to build it using Segger Embedded Studio, when I try to do it using west, throws me&amp;nbsp;the same error:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1606481337134v1.png" alt=" " /&gt;&lt;/p&gt;
[quote userid="82276" url="~/f/nordic-q-a/68792/build-application-from-main-c/282219#282219"]So west build -b nrf9160dk_nrf9160ns -p.&amp;nbsp;[/quote]
&lt;p&gt;I&amp;#39;m using Nordic Thingy 91, my board should be thingy91_nrf9160, it&amp;#39;s not?&lt;/p&gt;
&lt;div style="left:338px;position:absolute;top:82px;" id="gtx-trans"&gt;
&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build application from main.c</title><link>https://devzone.nordicsemi.com/thread/282219?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2020 10:01:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ef2a67f-3e1b-4996-b816-a018e015a89c</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Are you building with the &amp;#39;pristine&amp;#39; flag&amp;nbsp;&lt;em&gt;or&lt;/em&gt; deleting the build folder between builds?&lt;/p&gt;
&lt;p&gt;So west build -b nrf9160dk_nrf9160ns -p.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build application from main.c</title><link>https://devzone.nordicsemi.com/thread/282147?ContentTypeID=1</link><pubDate>Thu, 26 Nov 2020 16:15:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27659a6f-7505-464f-95b7-a5eab5eccfae</guid><dc:creator>Alejandro Chavez</dc:creator><description>&lt;p&gt;I tried to build from Segger Embedded Studio and this is my output:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1606407297029v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;What could be the error here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build application from main.c</title><link>https://devzone.nordicsemi.com/thread/282140?ContentTypeID=1</link><pubDate>Thu, 26 Nov 2020 15:42:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75855e63-0420-40f3-b6fa-9634a713d85e</guid><dc:creator>Alejandro Chavez</dc:creator><description>&lt;p&gt;Hi Heidi! Thank you for reply!&lt;/p&gt;
&lt;p&gt;I&amp;#39;m currently working with NCS 1.4.0&lt;/p&gt;
&lt;p&gt;I&amp;#39;m gonna try to build it too and test, if you can do it and give your feedback would be great!&lt;/p&gt;
&lt;p&gt;Thanks angain,&lt;/p&gt;
&lt;p&gt;Alejandro Ch.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build application from main.c</title><link>https://devzone.nordicsemi.com/thread/282132?ContentTypeID=1</link><pubDate>Thu, 26 Nov 2020 15:10:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bae9b224-c85c-4965-8ca8-7df690159c4d</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Mainly you need to add a CMakeLists.txt file that looks like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;cmake_minimum_required(VERSION 3.13.1)

find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(case_260461_project_name)

target_sources(app PRIVATE src/main.c)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and a prj.conf file that looks like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_GPIO=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I can test and run it all for you, but which NCS tag would you like to work on?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>