<?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>How to have board-specific prf.conf files</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113955/how-to-have-board-specific-prf-conf-files</link><description>I developed a project using nRF Connect 2.6.1 in VSCode. I created a custom board for the development board I was using (the SparkFun Pro nRF52840 Mini - Bluetooth Development Board https://www.sparkfun.com/products/15025 ). Now the final board has been</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Aug 2024 16:40:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113955/how-to-have-board-specific-prf-conf-files" /><item><title>RE: How to have board-specific prf.conf files</title><link>https://devzone.nordicsemi.com/thread/498904?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2024 16:40:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac530152-2e6e-4ef3-b404-4356538fe727</guid><dc:creator>Amanda Hsieh</dc:creator><description>[quote user="mkjones"]My &amp;lt;board&amp;gt;.cong file was in the boards directory, and had the same name as the board.&amp;nbsp; It does not get loaded automatically.[/quote]
&lt;p&gt;It has to add&amp;nbsp;&lt;span&gt;&amp;lt;board&amp;gt;.cong manually in the VS Code. West build would load it automatically.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user="mkjones"]setting CONF_FILE also worked, but the setting never got saved when I closed the build setting window.&amp;nbsp;[/quote]
&lt;p&gt;VS Code would not save it. You have to check the build configuration of VS Code every time.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to have board-specific prf.conf files</title><link>https://devzone.nordicsemi.com/thread/498893?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2024 14:38:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13949f34-7bb1-4d57-8b14-5bf06931b0d4</guid><dc:creator>mkjones</dc:creator><description>&lt;p&gt;My &amp;lt;board&amp;gt;.cong file was in the boards directory, and had the same name as the board.&amp;nbsp; It does not get loaded automatically.&lt;/p&gt;
&lt;p&gt;I was able to get it to load my modifying the CACHED_CONF_FILE build settings and adding the board.conf after the prj.conf.&lt;/p&gt;
&lt;p&gt;BTW, setting CONF_FILE also worked, but the setting never got saved when I closed the build setting window.&amp;nbsp; So I guess I&amp;#39;ll stick with adding it to CACHED_CONF_FILE.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to have board-specific prf.conf files</title><link>https://devzone.nordicsemi.com/thread/498633?ContentTypeID=1</link><pubDate>Fri, 16 Aug 2024 12:46:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8721ff0-0bcf-46fd-8212-fbda3f72b1fa</guid><dc:creator>Amanda Hsieh</dc:creator><description>[quote user="mkjones"]I tried putting &amp;lt;board&amp;gt;.conf file in the boards directory, but it still only seemed to pick up the prj.conf (it did not appread to read in the board.conf file).[/quote]
&lt;p&gt;The &lt;span&gt;&amp;lt;board&amp;gt;&lt;/span&gt;&amp;nbsp;name should be the same as the board for the building. Could you provide the completed build log via toolbar -&amp;gt; insert -&amp;gt; code?&lt;/p&gt;
[quote user="mkjones"](I set that in the build config, right?)[/quote]
&lt;p&gt;Yes, with &amp;quot;-DCONF_FILE=YourExtraConfig.conf&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to have board-specific prf.conf files</title><link>https://devzone.nordicsemi.com/thread/498522?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2024 22:40:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2b5666d-ccce-4bbb-981b-5e7d71790dc0</guid><dc:creator>PjGlasso</dc:creator><description>&lt;p&gt;Nice,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Ok that seems pretty good board wise, You made a folder called boards and named two (board).conf files in there? I saw that in a video webinar I think describing that very scenario.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My situation is the same/similar, I have two boards , One is the DEV board and the other my production board. Same MCU&amp;#39;s additional Flash memory an RTC and I2C on board IMU as well as the PDM microphone. optional OLED display also I2C. One push button and one Buzzer , one SPI SD-card &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f609.svg" title="Wink"&gt;&amp;#x1f609;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Your close you&amp;#39;ll get it.&lt;/p&gt;
&lt;p&gt;GL :-) PJ&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to have board-specific prf.conf files</title><link>https://devzone.nordicsemi.com/thread/498498?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2024 16:51:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7becbfd-e640-4980-be03-3ac26d180c79</guid><dc:creator>mkjones</dc:creator><description>&lt;p&gt;I tried putting &amp;lt;board&amp;gt;.conf file in the boards directory, but it still only seemed to pick up the prj.conf (it did not appread to read in the board.conf file).&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll try out the CONF_FILE setting (I set that in the build config, right?).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to have board-specific prf.conf files</title><link>https://devzone.nordicsemi.com/thread/498497?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2024 16:49:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:096ae539-bb1f-4446-980d-2a4140113a4a</guid><dc:creator>mkjones</dc:creator><description>&lt;p&gt;I&amp;#39;ve got the two build configs (the existing one for the dev. board), and a new one for the new custom board.&amp;nbsp; What I&amp;#39;m trying to do is have a common prj.conf file which is shared with both build configs, plus a board-specific prj.conf file (one for each of the build configs).&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure an overlay is the right way to go; the dev board has peripherals on it that I only use during development, and I&amp;#39;ve already got KConfig options for them (which I can enable or disable in the prj.conf file).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to have board-specific prf.conf files</title><link>https://devzone.nordicsemi.com/thread/498473?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2024 13:29:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0a15afe-48c5-43c7-bd3b-2be63315d939</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When the configs are board-specific, you can place them in the&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;boards&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;folder, are named&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;&amp;lt;board&amp;gt;.conf&lt;/span&gt;&lt;/code&gt;&lt;span&gt;, and they are applied on top of the default Kconfig file for the specified board.&amp;nbsp;Check out the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/config_and_build/kconfig/index.html"&gt;Configuring Kconfig&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You also could use&amp;nbsp;CONF_FILE to pass extra configs. See &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/zephyr/build/kconfig/setting.html#the_initial_configuration"&gt;The Initial Configuration&lt;/a&gt;&lt;/span&gt;&amp;nbsp;doc.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to have board-specific prf.conf files</title><link>https://devzone.nordicsemi.com/thread/498355?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2024 19:26:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d322727-3810-4049-94cc-92da96fcc766</guid><dc:creator>PjGlasso</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;so If I create a build in NRF_SDK in VScode using the Nrf52840DK board. after it make the build from a sample Blinky that runs I Know on both the DK device and my Xiao Nrf52840 Sense device. I then create a build below it (add Build conf.) and After it completes I can choose the Build All configurations and I have same src built for both boards. Is that what you are asking or did I miss it.?&lt;/p&gt;
&lt;p&gt;HTH&lt;/p&gt;
&lt;p&gt;GL :-) PJ&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I wonder if an overlay is a better way to go because they are similar?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>