<?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>autoconf.h shows wrong precompiler values?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68155/autoconf-h-shows-wrong-precompiler-values</link><description>I&amp;#39;m trying to modify the asset tracker for the Thingy91 to read the actual values of the ADXL362 and BME680 sensors. By default for some reason the project uses simulated values. So I updated my proj.conf with the following updates as per the zephyr sample</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Nov 2020 12:56:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68155/autoconf-h-shows-wrong-precompiler-values" /><item><title>RE: autoconf.h shows wrong precompiler values?</title><link>https://devzone.nordicsemi.com/thread/279488?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2020 12:56:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:552988bb-ca26-416c-8d93-49e5357218a8</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Most projects will just have a prj.conf. But, if a project has different configurations for different boards, they can add a prj_&amp;lt;board name&amp;gt;.conf file that will be used instead of the prj.conf file when the project is built for &amp;lt;board name&amp;gt;.&lt;/p&gt;
&lt;p&gt;This is the case with the asset_tracker. Because the Thingy:91 has external sensors that the DK does not have, the Thingy:91 has its own configuration file that makes the asset_tracker use the external sensors.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Dave_couling"]Am I write in assuming all I need to do is update the proj.conf file?&amp;nbsp; &amp;nbsp;As opposed to the using the menuconfig SES application?&amp;nbsp; or the ninja menuconfig?&amp;nbsp; Its jus a little confusing&amp;nbsp;which is the required method[/quote]
&lt;p&gt;&amp;nbsp;Menuconfig is originally a tool to configure a &lt;em&gt;single build&lt;/em&gt; and not a project. My recommendation is to use menuconfig (I prefer the one in the command line, but the one in SES works too) for searching for options, debugging why an option is not set correctly, etc. Then, if you want to just affect a single build (e.g. to turn on logging), you can also set the options in menuconfig.&lt;/p&gt;
&lt;p&gt;But if you want to make &amp;quot;permanent&amp;quot; changes (i.e. not just for a single build, they can of course be changed later) you should set them in the prj.conf (or prj_&amp;lt;board_name&amp;gt;.conf) file. The reason for this is that changes done in menuconfig is written directly to the .config file in your buildfolder. Therefore if you delete your build folder, or use a version control system where you have not checked in the build folder, the changes done in menuconfig will be lost. This makes it much easier to accidentaly remove configs set earlier, and it makes it harder to share your project with others.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: autoconf.h shows wrong precompiler values?</title><link>https://devzone.nordicsemi.com/thread/279368?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2020 23:05:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d8a4669-dc5c-4cd8-8286-83992b1afd51</guid><dc:creator>Dave_couling</dc:creator><description>&lt;p&gt;Why must I create&amp;nbsp;&lt;span&gt;prj_thingy91_nrf9160ns.conf?&amp;nbsp; This seem in conflict with the documentation where it state it should only use prof.conf unless there&amp;#39;s a specific board deviate for this project.&amp;nbsp; But since this project will only use the Thingy91 I should need another *.conf file?&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Am I write in assuming all I need to do is update the proj.conf file?&amp;nbsp; &amp;nbsp;As opposed to the using the menuconfig SES application?&amp;nbsp; or the ninja menuconfig?&amp;nbsp; Its jus a little confusing&amp;nbsp;which is the required method&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: autoconf.h shows wrong precompiler values?</title><link>https://devzone.nordicsemi.com/thread/279169?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2020 09:51:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edb1932a-dddf-4495-a362-7f3122042b38</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I assume you are using a Thingy:91?&lt;br /&gt;If so, you must use the prj_thingy91_nrf9160ns.conf file, and not prj.conf.&lt;/p&gt;
&lt;p&gt;In addition, if you are using SES, you must re-open the project afterwards for the changes to take effect.&lt;/p&gt;
[quote user="Dave_couling"]However this fails to load the &lt;strong&gt;menuconfig&lt;/strong&gt;.&amp;nbsp; I just get the non descript error &lt;em&gt;&lt;strong&gt;create_nordic_project.py failed (1)&lt;/strong&gt;&lt;/em&gt;[/quote]
&lt;p&gt;&amp;nbsp;Did you get any output in the output window?&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1651.pastedimage1605001885805v1.png" alt=" " /&gt;&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><item><title>RE: autoconf.h shows wrong precompiler values?</title><link>https://devzone.nordicsemi.com/thread/279109?ContentTypeID=1</link><pubDate>Mon, 09 Nov 2020 23:59:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fd9af8b-4e5d-4eb2-92bb-efcc567571d9</guid><dc:creator>Dave_couling</dc:creator><description>&lt;p&gt;I tried to update the proj.conf file through Segger&amp;#39;s Configure nRF Connect SDK Project window in SES.&amp;nbsp; However this fails to load the &lt;strong&gt;menuconfig&lt;/strong&gt;.&amp;nbsp; I just get the non descript error &lt;em&gt;&lt;strong&gt;create_nordic_project.py failed (1)&lt;/strong&gt;&lt;/em&gt;. Struggle to figure out how to proceed.&amp;nbsp; &amp;nbsp;The project loads and builds fine.&amp;nbsp; But I can&amp;#39;t seem to alter any of these&amp;nbsp;project settings to get it to work properly.&amp;nbsp; &amp;nbsp;I&amp;#39;ve reinstalled nRF Connect SDK 1.4, and SES, but no luck getting past this point.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>