<?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>Regression in nRF Connect VS Code extension re overlay files</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101501/regression-in-nrf-connect-vs-code-extension-re-overlay-files</link><description>The latest version of the nRF Connect VS Code extension (v2023.6.6) introduced a regression: 
 * In previous versions, specifying -DEXTRA_DTC_OVERLAY_FILE was correctly used (i.e. overlays placed in the code tree with well-known names, e.g. in a boards</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Jul 2023 22:51:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101501/regression-in-nrf-connect-vs-code-extension-re-overlay-files" /><item><title>RE: Regression in nRF Connect VS Code extension re overlay files</title><link>https://devzone.nordicsemi.com/thread/436107?ContentTypeID=1</link><pubDate>Wed, 12 Jul 2023 22:51:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f32ccb7-960a-405a-924a-aca32b2ec723</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Thanks for clarifying, that does explain the situation. I&amp;#39;ll convey what you said to the developers and leave it up to them whether they want to implement a change now, or in coordination with NCS v2.5.0. Again, I personally thought that all flags were simply passed on to West, but apparently it&amp;#39;s not that simple.&lt;/p&gt;
&lt;p&gt;Especially with the summer vacations nowadays, I think you&amp;#39;ll have to wait a while for a fix. Use West in the mean time. But thank you again for reporting.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regression in nRF Connect VS Code extension re overlay files</title><link>https://devzone.nordicsemi.com/thread/436104?ContentTypeID=1</link><pubDate>Wed, 12 Jul 2023 22:43:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd6c8677-213e-4e0a-9f18-e4ad0838c115</guid><dc:creator>Florian</dc:creator><description>&lt;p&gt;Hi Raoul,&lt;/p&gt;
&lt;p&gt;thanks for all the work that you&amp;#39;re putting in and for digging deeper.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m actually running on latest OSS Zephyr mainline (not the nRF Connect SDK). So formally you could probably&amp;nbsp;say that this setup is not supported. But then it worked flawlessly in the prior release of the extension...&lt;/p&gt;
&lt;p&gt;If it&amp;#39;s an easy fix it&amp;#39;s probably worth doing even if not strictly supported - just to not break people&amp;#39;s setup. But if it&amp;#39;s complicated I&amp;#39;d understand if you won&amp;#39;t fix it if it&amp;#39;s not in nRF SDK.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Florian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regression in nRF Connect VS Code extension re overlay files</title><link>https://devzone.nordicsemi.com/thread/436101?ContentTypeID=1</link><pubDate>Wed, 12 Jul 2023 22:31:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2d660df-6fa4-46f4-a7d9-38dd723b396d</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Florian,&lt;/p&gt;
&lt;p&gt;I suspect you&amp;#39;re completely right on all points. I can confirm too that the extra flag is added upon a second build.&lt;/p&gt;
&lt;p&gt;One of the issues here is the unclear status of EXTRA_DTC_OVERLAY_FILE in NCS. Is it currently actually doing what you want it to? And are you running an updated v2.4.99?&lt;/p&gt;
&lt;p&gt;If the VS Code extension team is working under the assumption that the -DEXTRA_DTC_OVERLAY file is not in use before v2.5.0, perhaps the continued use of a &amp;quot;synthesized&amp;quot; -DDTC_OVERLAY_FILE is the &amp;quot;conscious decision&amp;quot; they refer to. It makes sense that they would coordinate an extension change with the release of v.2.5.0 in that case. I&amp;#39;ll see if I can find out more.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regression in nRF Connect VS Code extension re overlay files</title><link>https://devzone.nordicsemi.com/thread/435936?ContentTypeID=1</link><pubDate>Wed, 12 Jul 2023 10:39:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8476b7ca-202b-401b-887c-62528b3d4e98</guid><dc:creator>Florian</dc:creator><description>&lt;p&gt;Hi Raoul,&lt;/p&gt;
&lt;p&gt;this is probably a misunderstanding. -DEXTRA_DTC_OVERLAY_FILE is correctly passed to the build tool.&lt;/p&gt;
&lt;p&gt;The problem is that starting with the most recent version an additional/redundant -DDTC_OVERLAY_FILE argument is automatically generated after the first build that takes precedence and overrides the -DEXTRA_DTC_OVERLAY_FILE addition that is still present. The west command then has both options present at the same time.&lt;/p&gt;
&lt;p&gt;I guess that the new version somehow extracts overlay files from the build directory and synthesizes a -DDTC_OVERLAY_FILE option from it which it didn&amp;#39;t do before.&lt;/p&gt;
&lt;p&gt;After the first build when opening the build configuration with &amp;quot;Edit Build Configuration...&amp;quot; the additional -DDTC_OVERLAY_FILE will be visible.&lt;/p&gt;
&lt;p&gt;You&amp;#39;re right, my version is 2023.6.345 - sorry for providing the wrong version number above.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Florian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regression in nRF Connect VS Code extension re overlay files</title><link>https://devzone.nordicsemi.com/thread/435934?ContentTypeID=1</link><pubDate>Wed, 12 Jul 2023 10:30:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf8442c2-4f9d-42a9-ac09-ead9087aaa26</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Florian, I got word from one of the developers:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;It was a conscious decision that we don&amp;#39;t yet set EXTRA_DTC_OVERLAY_FILE, because it doesn&amp;#39;t exists yet in 2.4.x, it will only be present in NCS 2.5.0.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Checking the release notes, I see that indeed the first mention of &lt;code&gt;&lt;span&gt;EXTRA_DTC_OVERLAY_FILE&lt;/span&gt;&lt;/code&gt; is in v2.4.99. However I see &lt;code&gt;&lt;span&gt;EXTRA_DTC_OVERLAY_FILE&lt;/span&gt;&lt;/code&gt; mentioned in some docs before that, for example &lt;a title="https://developer.nordicsemi.com/nrf_connect_sdk/doc/2.4.0/zephyr/build/dts/howtos.html" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.0/zephyr/build/dts/howtos.html" rel="noopener noreferrer" target="_blank"&gt;this NCS 2.4.0 page&lt;/a&gt;. This might have caused the confusion.&lt;/p&gt;
&lt;p&gt;Still, I&amp;#39;m surprised that the extension doesn&amp;#39;t just pass all the -D arguments directly to West.&lt;/p&gt;
&lt;p&gt;Could you please confirm your extension version for me?&amp;nbsp; I might like to do some testing of my own. You mentioned&amp;nbsp;v2023.6.6, but as far as I know the newest version is &lt;a href="https://nrfconnect.github.io/vscode-nrf-connect/release_notes/connect/2023.6.345.html"&gt;2023.6.345&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I should mention, many developers are now starting their summer vacation. Are you okay with just sticking with West for the near future?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regression in nRF Connect VS Code extension re overlay files</title><link>https://devzone.nordicsemi.com/thread/434768?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 15:21:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be93593c-667c-4047-9999-6d029a7693bd</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Got it, thanks! I&amp;#39;ll pass this on immediately and if needed I&amp;#39;ll try to reproduce it tomorrow.&lt;/p&gt;
&lt;p&gt;If I hear anything useful from the developers I&amp;#39;ll let you know.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regression in nRF Connect VS Code extension re overlay files</title><link>https://devzone.nordicsemi.com/thread/434761?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 15:00:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25ede418-c879-4747-83cd-d7d4ee9a453e</guid><dc:creator>Florian</dc:creator><description>&lt;p&gt;Hi Raoul,&lt;/p&gt;
&lt;p&gt;no, no sysbuild or anything other special involved. We&amp;#39;re&amp;nbsp;building a single binary with devicetree overlays, some of which are passed in via -DEXTRA_DTC_OVERLAY_FILE and others should be discovered by naming convention ({$sourceDir}/boards/[board-name].overlay). The west build command does it right and older versions of the extension also do it right. Should be easy to reproduce.&lt;/p&gt;
&lt;p&gt;Florian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regression in nRF Connect VS Code extension re overlay files</title><link>https://devzone.nordicsemi.com/thread/434726?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 13:30:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3f62ac0-1406-4bf9-8735-ef4c35b3a8db</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;One of the developers is asking if you are trying to do a &lt;a href="https://docs.zephyrproject.org/latest/build/sysbuild/index.html"&gt;sysbuild&lt;/a&gt;. Are you? Since the extension introduced some changes in this area: &lt;a href="https://nrfconnect.github.io/vscode-nrf-connect/release_notes/connect/2023.6.345.html#other-changes-related-to-sysbuild"&gt;https://nrfconnect.github.io/vscode-nrf-connect/release_notes/connect/2023.6.345.html#other-changes-related-to-sysbuild&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks again.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regression in nRF Connect VS Code extension re overlay files</title><link>https://devzone.nordicsemi.com/thread/434715?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 13:13:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:607dce7b-2723-4380-8a2e-6b18f9cde885</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Florian, thanks for the (clear) bug report. I&amp;#39;ve passed this on to the extension developers.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>