<?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>External modules with Visual Studio Code extension</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81347/external-modules-with-visual-studio-code-extension</link><description>Hello! I&amp;#39;m trying to use an external module with the VSC extension and I don&amp;#39;t think that is currently supported (or easily supported.) For reference, our module works with NCS via West: https://github.com/golioth/zephyr-sdk . 
 As a general feature request</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Nov 2021 09:26:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81347/external-modules-with-visual-studio-code-extension" /><item><title>RE: External modules with Visual Studio Code extension</title><link>https://devzone.nordicsemi.com/thread/337633?ContentTypeID=1</link><pubDate>Fri, 05 Nov 2021 09:26:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b0fc7bd-4fad-4995-83e6-7e8135adf32a</guid><dc:creator>jonathanberi</dc:creator><description>&lt;p&gt;Yes, thanks again!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External modules with Visual Studio Code extension</title><link>https://devzone.nordicsemi.com/thread/337622?ContentTypeID=1</link><pubDate>Fri, 05 Nov 2021 08:29:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84d4d3a7-5827-4881-b466-1fa65dff9003</guid><dc:creator>wbober</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/jberi"&gt;jonathanberi&lt;/a&gt; I guess we can close this ticket then?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External modules with Visual Studio Code extension</title><link>https://devzone.nordicsemi.com/thread/337556?ContentTypeID=1</link><pubDate>Thu, 04 Nov 2021 16:41:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4129d52-3ecc-485d-8747-2bc5dd800611</guid><dc:creator>jonathanberi</dc:creator><description>&lt;p&gt;Turns out there was a mistake on our end.&amp;nbsp;The naming for overlay files for nRF9160 boards changed at some point (*ns to *_ns) and our sample needed to be updated. With that adjusted, the sample builds and flashes correctly!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External modules with Visual Studio Code extension</title><link>https://devzone.nordicsemi.com/thread/337440?ContentTypeID=1</link><pubDate>Thu, 04 Nov 2021 10:43:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6a86734-a4cd-482d-8e18-3029d2a104d3</guid><dc:creator>wbober</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/jberi"&gt;jonathanberi&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Why do you need to specify the board file? This is not needed in most cases.&lt;/p&gt;
&lt;p&gt;When you select the board name from the extension UI you are esentially selecting the board name that is later provided to west (`west -b &amp;lt;board&amp;gt;`). The zephyr build system will then automatically pick up the configuration file for that board from `boards\&amp;lt;board&amp;gt;.conf`.&lt;/p&gt;
&lt;p&gt;See details here: &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/guides/build/kconfig/setting.html#the-initial-configuration"&gt;developer.nordicsemi.com/.../setting.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External modules with Visual Studio Code extension</title><link>https://devzone.nordicsemi.com/thread/337366?ContentTypeID=1</link><pubDate>Wed, 03 Nov 2021 23:16:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e24253c0-2d3e-4aaf-b1d4-0e83dee49915</guid><dc:creator>jonathanberi</dc:creator><description>&lt;p&gt;Thank you&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/wbober"&gt;wbober&lt;/a&gt;&amp;nbsp;for the thorough reply! Removing path got me 90% there. Unfortunately I still can&amp;#39;t figure out how to specify our board file. When I select &amp;quot;all boards&amp;quot; it doesn&amp;#39;t appear to be finding the board files in the sample (see&amp;nbsp;&lt;a href="https://github.com/golioth/zephyr-sdk/tree/main/samples/hello/boards"&gt;https://github.com/golioth/zephyr-sdk/tree/main/samples/hello/boards&lt;/a&gt;.) I tried renaming one to see if there was some sort of cache but that didn&amp;#39;t make a difference. Any suggestions?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External modules with Visual Studio Code extension</title><link>https://devzone.nordicsemi.com/thread/337316?ContentTypeID=1</link><pubDate>Wed, 03 Nov 2021 15:01:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1cbebca-de3d-47c3-bdaa-3b4179772224</guid><dc:creator>wbober</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/jberi"&gt;jonathanberi&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Thank you for your feedback!&lt;/p&gt;
&lt;p&gt;Ad1:&lt;/p&gt;
&lt;p&gt;You are correct that the extension looks for samples in specific folders. The convention is to look&amp;nbsp;in&amp;nbsp;&amp;lt;toplevel&amp;gt;/applications or &amp;lt;toplevel&amp;gt;/samples folder. This is a convention for extra modules in NCS such as homekit/find-my. This means that if you modify the west.yml to put your SDK in the top level, i.e., remove the path:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    # Golioth repository.
    - name: golioth
      # path: modules/lib/golioth
      revision: main
      url: https://github.com/golioth/zephyr-sdk.git&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;the samples will be picked up and build fine:&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/feedback_2D00_samples.png" /&gt;&lt;/p&gt;
&lt;p&gt;Note that there is a distinct difference between &amp;#39;Creating a new application&amp;#39; and &amp;#39;Adding existing one&amp;#39;. Creating a new application means that the sample is copied from the SDK to the destination folder as a freestanding (out-of-tree) application. Importing application means that you add an existing application (such as sample in the SDK) into the vscode workspace and application list.&lt;/p&gt;
&lt;p&gt;Ad2:&lt;/p&gt;
&lt;p&gt;Modules are a west concept and what you did, i.e, modify the west.yml file to add the module is the correct approach. A freestanding application needs a west workspace to build, in this case that is the NCS workspace initialized by the toolchain manager, that you need to modify in order to pull in the extra module.&lt;/p&gt;
&lt;p&gt;Note that our current design approach is to help&amp;nbsp;users with understanding modifications needed rather than offer a UI. This means that we will more likely introduce IntelliSense or code snippets for handling west manifest modifications that a UI.&lt;/p&gt;
&lt;p&gt;We&amp;#39;re close to releasing an update to the extension that has basic support for west operations with west init being one of them. This means that you should be able to init Golioth SDK right from the extension.&lt;/p&gt;
&lt;p&gt;Ad3:&lt;/p&gt;
&lt;p&gt;You are correct the extension parses the samples.yaml file to determine compatible boards. This is to align with the concept that the board listed in &amp;#39;Compatible&amp;#39; category is being tested by the CI thus gives some reassurance that the example will work. It&amp;#39;s up to sample maintainers to ensure that. However, it is untrue that you cannot build for the a board that is not indicated in this file.&amp;nbsp;Simply select &amp;#39;All boards&amp;#39; radio button and find the desired board. Any extra configuration you have in boards folder will be applied by zephyr build system correctly.&lt;/p&gt;
&lt;p&gt;Please let us know if this helps.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Wojtek&lt;/p&gt;
&lt;p&gt;VSC Team&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External modules with Visual Studio Code extension</title><link>https://devzone.nordicsemi.com/thread/337286?ContentTypeID=1</link><pubDate>Wed, 03 Nov 2021 13:45:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f3e86e4-0d4b-4055-a979-ef9c4cca86b0</guid><dc:creator>jonathanberi</dc:creator><description>&lt;p&gt;Thank you &lt;a href="https://devzone.nordicsemi.com/members/marte.m"&gt;Marte Myrvold&lt;/a&gt;!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External modules with Visual Studio Code extension</title><link>https://devzone.nordicsemi.com/thread/337276?ContentTypeID=1</link><pubDate>Wed, 03 Nov 2021 13:15:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0454ff1-65b0-4e8f-8887-f370827787dd</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for the feedback! Our VS Code team is working on improving the extension, so feedback and feature requests are appreciated, and these are some great suggestions! I will forward&amp;nbsp;this to the team.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>