<?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>nRF Connect SDK child image per-board configuration discards associated prj.conf in 2.6.1</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114271/nrf-connect-sdk-child-image-per-board-configuration-discards-associated-prj-conf-in-2-6-1</link><description>When building a project using a custom board, as well as both the b0 and mcuboot bootloaders enabled, board-specific child image configuration causes the build system to ignore the project-specific configuration. 
 I&amp;#39;m using the following directory structure</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Sep 2024 23:43:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114271/nrf-connect-sdk-child-image-per-board-configuration-discards-associated-prj-conf-in-2-6-1" /><item><title>RE: nRF Connect SDK child image per-board configuration discards associated prj.conf in 2.6.1</title><link>https://devzone.nordicsemi.com/thread/501249?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2024 23:43:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ad286b0-f1a5-4306-a759-10a544a548cd</guid><dc:creator>Kelso</dc:creator><description>&lt;p&gt;At this point, since forcing the build configuration to use prj.conf instead of the cache, I haven&amp;#39;t been able to reproduce the problem I was running into.&amp;nbsp; On the other hand, I&amp;#39;ve run into 3 blue screen of deaths plugging in and removing the USB cable, as well as apparently permanently locking the access port on an nRF52DK during one of those BSODs.&amp;nbsp; I think we can close this issue for now, but I need to open tickets for the other things that have cropped up.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK child image per-board configuration discards associated prj.conf in 2.6.1</title><link>https://devzone.nordicsemi.com/thread/500735?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2024 10:18:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2629b581-ee4c-4de7-a030-e8d946fcc60f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;If you open the terminal in VS Code, you can&amp;nbsp;compare the west build command when it works and when it fails. I&amp;#39;m wondering if the extension might be appending some arguments to the build command that override the default behavior when it fails.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK child image per-board configuration discards associated prj.conf in 2.6.1</title><link>https://devzone.nordicsemi.com/thread/500629?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2024 18:19:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:755d83d1-e845-4a29-812e-21384fb0b98f</guid><dc:creator>Kelso</dc:creator><description>&lt;p&gt;I&amp;#39;ll clarify... the behavior implies I do not fully understand where things are being cached because the places I&amp;#39;m looking appear to be a symptom, not a cause.&lt;/p&gt;
&lt;p&gt;In vscode, if I&amp;#39;ve built and I try to adjust .conf files, I find extra cmake arguments populated under &amp;quot;edit build configuration&amp;quot; that I often need to clear out. Failing to do so causes the build to fail because the conf files have been intentionally removed.&lt;/p&gt;
&lt;p&gt;If there is another place where the cache is editable, I&amp;#39;m not aware of it.&lt;/p&gt;
&lt;p&gt;Saving the build config as a preset shows mismatches from expectation with both the failing and the updated workspace.&lt;/p&gt;
&lt;p&gt;&amp;lt;wk failing&amp;gt; is missing child_image/b0/prj.conf under b0_CONF_FILE&lt;/p&gt;
&lt;p&gt;&amp;lt;wk working&amp;gt; is missing boards/&amp;lt;example&amp;gt;.conf under CACHED_CONF_FILE&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK child image per-board configuration discards associated prj.conf in 2.6.1</title><link>https://devzone.nordicsemi.com/thread/500573?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2024 12:01:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:114213b9-5a3e-46b8-8bea-abdf58af8293</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;That&amp;#39;s strange. I don&amp;#39;t recall seeing or hearing about this before. Do you notice any differences in the cached configuration when it fails versus when it works?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK child image per-board configuration discards associated prj.conf in 2.6.1</title><link>https://devzone.nordicsemi.com/thread/500506?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2024 06:07:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be58d8eb-b81e-410d-ac1d-08b4c1e4b483</guid><dc:creator>Kelso</dc:creator><description>&lt;p&gt;This appears to be a caching issue with vscode.&amp;nbsp; I was able to get a workspace that was failing to pick prj.conf up to pick it up by changing the setting for Configuration to &amp;quot;prj.conf&amp;quot; instead of &amp;quot;Use build system default&amp;quot; when adding a build configuration.&lt;/p&gt;
&lt;p&gt;This was after cloning into a new workspace and everything.&amp;nbsp; The way vscode caches configuration it has detected is surprising.&amp;nbsp; Clearing out the automatically generated cmake arguments isn&amp;#39;t always sufficient, and deleting a configuration file can break a build.&amp;nbsp; Seems like this is related to that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK child image per-board configuration discards associated prj.conf in 2.6.1</title><link>https://devzone.nordicsemi.com/thread/500489?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2024 22:13:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c78125e1-3a0f-49b9-ac59-e8a5841de0a6</guid><dc:creator>Kelso</dc:creator><description>&lt;p&gt;Copying my board files into your project in the new workspace picks things up correctly... I&amp;#39;m able to build for my board.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s gotta be something about the workspace itself.&amp;nbsp; I&amp;#39;m going to see if reconstructing things from scratch again helps...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK child image per-board configuration discards associated prj.conf in 2.6.1</title><link>https://devzone.nordicsemi.com/thread/500486?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2024 21:29:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ad617cb-df3f-43b2-a85c-89374f8614a7</guid><dc:creator>Kelso</dc:creator><description>&lt;p&gt;This is bizarre.... I made a new workspace to test.&amp;nbsp; Quick answer is yours works and I have no idea why.&lt;/p&gt;
&lt;p&gt;....&lt;/p&gt;
&lt;p&gt;You don&amp;#39;t have a west.yml... so I created the following one:&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;manifest:&lt;br /&gt;&amp;nbsp; remotes:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - name: ncs&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url-base: &lt;a href="https://github.com/nrfconnect"&gt;https://github.com/nrfconnect&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; projects:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - name: nrf&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; import: true&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; remote: ncs&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; repo-path: sdk-nrf&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; revision: v2.6.1&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Setup a fresh workspace with &lt;span style="background-color:#ccffff;"&gt;west update --narrow -o=--depth=1&lt;/span&gt; to keep things small&lt;br /&gt;&lt;br /&gt;Build targeting nrf5340dk_nrf5340_cpuapp_ns worked and picked up things correctly.&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Merged configuration &amp;#39;&amp;lt;wk3&amp;gt;/peripheral_lbs_w_dfu/child_image/b0/prj.conf&amp;#39;&lt;br /&gt;Merged configuration &amp;#39;&amp;lt;wk3&amp;gt;/peripheral_lbs_w_dfu/child_image/b0/boards/nrf5340dk_nrf5340_cpuapp.conf&amp;#39;&lt;br /&gt;Merged configuration &amp;#39;&amp;lt;wk3&amp;gt;/nrf/subsys/partition_manager/partition_manager_enabled.conf&amp;#39;&lt;br /&gt;Merged configuration &amp;#39;&amp;lt;wk3&amp;gt;/peripheral_lbs_w_dfu/build/b0/zephyr/misc/generated/extra_kconfig_options.conf&amp;#39;&lt;br /&gt;Configuration saved to &amp;#39;&amp;lt;wk3&amp;gt;/peripheral_lbs_w_dfu/build/b0/zephyr/.config&amp;#39;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Trying with&amp;nbsp;&amp;lt;wk3&amp;gt;/peripheral_lbs_w_dfu and custom_* works fine&lt;/p&gt;
&lt;p&gt;Trying with &amp;lt;wk3&amp;gt;/example/peripheral_lbs_w_dfu2 and custom_* works fine.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So far I have no idea why there&amp;#39;s a difference...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK child image per-board configuration discards associated prj.conf in 2.6.1</title><link>https://devzone.nordicsemi.com/thread/500339?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2024 06:25:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cb744ca-3f9f-4cc5-8d61-7b0cfc059493</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I&amp;#39;m also using VS Code, and I was building the project with SDK version 2.6.1. And to be sure, I also&amp;nbsp;tried changing the&amp;nbsp;compatible property in *.dts to&amp;nbsp;&lt;span&gt;&amp;quot;nordic,custom-nrf5340-cpuapp&amp;quot;&lt;/span&gt;&lt;span&gt;; but it didn&amp;#39;t seem to make any difference.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;From the build log for b0:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;Merged configuration &amp;#39;&amp;lt;project&amp;gt;/child_image/b0/prj.conf&amp;#39;
Merged configuration &amp;#39;&amp;lt;project&amp;gt;/child_image/b0/boards/custom_nrf5340_cpuapp.conf&amp;#39;&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Did you try building the sample I uploaded as well?&amp;nbsp;&lt;/span&gt;&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: nRF Connect SDK child image per-board configuration discards associated prj.conf in 2.6.1</title><link>https://devzone.nordicsemi.com/thread/500323?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2024 04:42:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31e6bb12-802f-4220-b558-0eed4c8cea4e</guid><dc:creator>Kelso</dc:creator><description>&lt;p&gt;Cleaning the build folder, rebooting vscode, and combining the two do not address this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been trying to rule out other causes.&amp;nbsp; I&amp;#39;m currently using 2.6.1 build tools and my west workspace is dependent on 2.6.1.&amp;nbsp; I&amp;#39;m attempting to build via vscode.&lt;/p&gt;
&lt;p&gt;Are any of these different in your workspace?&lt;/p&gt;
&lt;p&gt;I would be surprised, but the dts files you sent list compatibility with the nrf5340dk.&amp;nbsp; Is it possible this line suppresses something?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK child image per-board configuration discards associated prj.conf in 2.6.1</title><link>https://devzone.nordicsemi.com/thread/500277?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2024 18:00:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1a9552a-ecb9-40b7-9626-1d39dcecd349</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;It should not be necessary, but could you please also try deleting the build folder when you do a clean build? I was not able to reproduce the issue here. As you say, the build log should show that the&amp;nbsp;&lt;span&gt;prj.conf got merged.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Here is the project I tested with:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/peripheral_5F00_lbs_5F00_w_5F00_dfu.zip"&gt;devzone.nordicsemi.com/.../peripheral_5F00_lbs_5F00_w_5F00_dfu.zip&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK child image per-board configuration discards associated prj.conf in 2.6.1</title><link>https://devzone.nordicsemi.com/thread/500273?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2024 17:38:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c06cd7f-a7fa-4317-b370-0ab75a74978c</guid><dc:creator>Kelso</dc:creator><description>&lt;p&gt;While that sounds like it should fix it, I don&amp;#39;t see the new file being picked up on a clean build:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;=== child image b0 -&amp;nbsp; begin ===&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;Parsing &amp;lt;wk&amp;gt;/zephyr/Kconfig&lt;br /&gt;Loaded configuration &amp;#39;&amp;lt;wk&amp;gt;/&amp;lt;prj&amp;gt;/boards/arm/&amp;lt;example&amp;gt;/&amp;lt;example&amp;gt;_cpuapp_defconfig&amp;#39;&lt;br /&gt;Merged configuration &amp;#39;&amp;lt;wk&amp;gt;/&amp;lt;prj&amp;gt;/child_image/b0/boards/&amp;lt;example&amp;gt;_cpuapp.conf&amp;#39;&lt;br /&gt;Merged configuration &amp;#39;&amp;lt;wk&amp;gt;/nrf/subsys/partition_manager/partition_manager_enabled.conf&amp;#39;&lt;br /&gt;Merged configuration &amp;#39;&amp;lt;wk&amp;gt;/&amp;lt;prj&amp;gt;/build_mb/b0/zephyr/misc/generated/extra_kconfig_options.conf&amp;#39;&lt;br /&gt;Configuration saved to &amp;#39;&amp;lt;wk&amp;gt;/&amp;lt;prj&amp;gt;/build_mb/b0/zephyr/.config&amp;#39;&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;=== child image b0 -&amp;nbsp; end ===&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I should see a line in there that reads&lt;br /&gt;Merged configuration &amp;#39;&amp;lt;wk&amp;gt;/&amp;lt;prj&amp;gt;/child_image/b0/prj.conf&amp;#39;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK child image per-board configuration discards associated prj.conf in 2.6.1</title><link>https://devzone.nordicsemi.com/thread/500231?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2024 13:39:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acd9557c-3589-461f-b372-246893469385</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;When the board specific configuration is added, you also need to include the prj.conf (copy of the&amp;nbsp;&lt;span&gt;nrf/samples/bootloader/prj.conf) for the child-image:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1724852289608v1.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;child_image/&lt;br /&gt;├── b0&lt;br /&gt;│&amp;nbsp;&amp;nbsp; ├── boards&lt;br /&gt;│&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp; └── &lt;span&gt;&amp;lt;example&amp;gt;&lt;/span&gt;_cpuapp.conf&lt;br /&gt;│&amp;nbsp;&amp;nbsp; └── prj.conf&lt;br /&gt;├── mcuboot.conf&lt;br /&gt;└── mcuboot.overlay&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>