<?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>What are the build contexts</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117785/what-are-the-build-contexts</link><description>I created project from blank, and added a build configuration. Now it showing as 1 configuration | 2 contexts, as shown in the screenshot below: 
 
 
 What are these contexts? I cannot see anything below of the sysbuild. 
 
 Also when using build and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Jan 2025 09:44:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117785/what-are-the-build-contexts" /><item><title>RE: What are the build contexts</title><link>https://devzone.nordicsemi.com/thread/517629?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2025 09:44:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:756ab6f7-134e-4f9d-a298-f608362618d5</guid><dc:creator>Ros</dc:creator><description>&lt;p&gt;Yes, I can do that, but that is not the right way.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What are the build contexts</title><link>https://devzone.nordicsemi.com/thread/517597?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2025 07:07:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3443bbc1-5bc5-44b2-8f4d-68a9af0c5b6b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The issue is the build command invoked by the extension when the application image is selected. To&amp;nbsp;avoid the problem, you can select the &amp;#39;build&amp;#39; folder before clicking the build button. Sysbuild&amp;nbsp;is required when additional applications, such as the bootloader need to be included in your project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What are the build contexts</title><link>https://devzone.nordicsemi.com/thread/517573?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2025 00:25:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edd95a5a-a458-42a4-9bc5-038edb242ef4</guid><dc:creator>Ros</dc:creator><description>&lt;p&gt;Yes, it seems like a bug. I guess, I need to avoid sysbuild, when configuring the build setup, until the bug is fixed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What are the build contexts</title><link>https://devzone.nordicsemi.com/thread/517230?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2025 13:26:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:134bac0b-760f-4cb5-8679-fdce30e00b73</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I&amp;nbsp;see the problem now. When you only build the &amp;#39;test&amp;#39; application image and don&amp;#39;t rerun &lt;a href="https://docs.zephyrproject.org/latest/build/sysbuild/index.html#sysbuild-system-build"&gt;sysbuild&lt;/a&gt;, only the zephyr.hex file for that image is generated. It is not added to the final merged.hex file, which is the file loaded&amp;nbsp;to the target device. I have reported this to the extension team.&lt;/p&gt;
[quote userid="85556" url="~/f/nordic-q-a/117785/what-are-the-build-contexts/517198"]Also when selecting lower test, the source code linting is fine[/quote]
&lt;p&gt;Intellisense is automatically configured with the correct&amp;nbsp;include paths, etc. for&amp;nbsp;the selected build context . Therefore, to browse the code for your &amp;#39;test&amp;#39; image, you&amp;nbsp;need to select it first.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What are the build contexts</title><link>https://devzone.nordicsemi.com/thread/517198?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2025 11:50:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7498182e-b52b-41b0-88c1-83b228fde212</guid><dc:creator>Ros</dc:creator><description>&lt;p&gt;Why the hex file is not updates after new builds (not pristine builds) with changes in src/main.c? &lt;br /&gt;When selecting Application-&amp;gt;test -&amp;gt; build, I can use action -&amp;gt; build to create new build and flash with action-&amp;gt; flash.&lt;/p&gt;
&lt;p&gt;However, if I select Application-&amp;gt; test -&amp;gt; build -&amp;gt; test, and makes some changes in main.c the Action-&amp;gt;Build, and flash still loads the older build, not with the new changes in main.c&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also when selecting lower test, the source code linting is fine&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1736250355452v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;But if I select the build, linter shows warning:&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1736250482573v2.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Finally, if need to select the lowest test folder to use nRF Kconfig GUI (or to get the complete options)&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1736250637520v3.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What are the build contexts</title><link>https://devzone.nordicsemi.com/thread/517180?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2025 10:48:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:917994e3-b1fe-4724-af82-538b8b88595f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;This is explained in the in the VS code extension documentation here:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/nrf-connect-vscode/page/reference/ui_sidebar_applications.html#application-contexts"&gt;https://docs.nordicsemi.com/bundle/nrf-connect-vscode/page/reference/ui_sidebar_applications.html#application-contexts&lt;/a&gt;. In short, selecting the &amp;#39;build&amp;#39; folder allows you to browse the global sysbuild configuration for your project, while if you select your application named &amp;#39;test,&amp;#39; you can access&amp;nbsp;the configuration and source files specific for that application.&amp;nbsp;This becomes&amp;nbsp;more relevant when you have&amp;nbsp;multiple FW images included in the project such as the mcuboot bootloader.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1736246371127v1.png" alt=" " /&gt;&lt;/p&gt;
[quote user=""]Also when using build and flash under the &amp;quot;Actions&amp;quot;, it is loading old hex file, not the recent build.[/quote]
&lt;p&gt;The flash action will load the current HEX file. If the HEX file is not up to date, it indicates an issue with the build. Note that certain changes, such as adding new overlay files, require a pristine build to be detected and&amp;nbsp;applied&amp;nbsp;to the build.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1736246925585v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>