<?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>VS Code custom board in external module not showing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95689/vs-code-custom-board-in-external-module-not-showing</link><description>Hello, 
 We have a workspace in the T3 topology (Forest). 
 Our own module is then in &amp;lt;zephyr_topdir&amp;gt;/our_module and this folder has a boards folder. But when I want to add a new build config, I don&amp;#39;t see my custom board on the list. 
 For testing purpose</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 20 Jan 2023 11:17:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95689/vs-code-custom-board-in-external-module-not-showing" /><item><title>RE: VS Code custom board in external module not showing</title><link>https://devzone.nordicsemi.com/thread/405814?ContentTypeID=1</link><pubDate>Fri, 20 Jan 2023 11:17:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:721ecb95-afc6-44bf-b0f3-9aa357d6d237</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello, I&amp;#39;ve got some feedback from our developers. The answer is simple:&lt;/p&gt;
&lt;blockquote&gt;
&lt;div&gt;Currently, the extension only looks for boards in the nrf and zephyr directories, as well as the open VS Code workspace folders and whatever is added to the board roots setting.&amp;nbsp;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;They have added this as a feature request but do not have a timeline.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: VS Code custom board in external module not showing</title><link>https://devzone.nordicsemi.com/thread/405083?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2023 14:46:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d57e6182-7957-43d2-9422-38cf3f8310f5</guid><dc:creator>AndrewSafehear</dc:creator><description>&lt;p&gt;Like this it work yes, but I don&amp;#39;t understand why my boards are not showing without this. My module is correctly added to west so it should be able to locate the boards folder without manually adding it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: VS Code custom board in external module not showing</title><link>https://devzone.nordicsemi.com/thread/405080?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2023 14:39:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:408cca54-8491-4898-8491-7e33ca2f1852</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Have you tried adding this to the nRF Connect extension settings?&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/pastedimage1673879942598v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;CTRL+SHIFT+P --&amp;gt; Preferences: Open Settings --&amp;gt; Extensions --&amp;gt; nRF Connect&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: VS Code custom board in external module not showing</title><link>https://devzone.nordicsemi.com/thread/405067?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2023 14:12:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50e107d7-3f9a-4550-be09-e310789a10c8</guid><dc:creator>AndrewSafehear</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes I have followed the documentation. I will explain better, when I use directly west on a terminal, I can build my project with my custom board with no problem.&lt;br /&gt;&lt;br /&gt;The problem is that I also want to be able to select this custom board on the UI of your extension for VSCode when adding a new build configuration for my project.&lt;/p&gt;
&lt;p&gt;My custom board is in a module at the root of the workspace folder (like the nrf, nrfxlib, zephyr, bootloader, mbedtls, etc folders). This custom module is correctly put inside my west.yml file.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve used a module and didn&amp;#39;t put my board insid my project folder because I reuse it on several projects with other customs drivers.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f4e6.svg" title="Package"&gt;&amp;#x1f4e6;&lt;/span&gt;workspace&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;┣&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f4c2.svg" title="Open file folder"&gt;&amp;#x1f4c2;&lt;/span&gt;applications&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;┃ ┗&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f4c2.svg" title="Open file folder"&gt;&amp;#x1f4c2;&lt;/span&gt;custom_app &amp;lt;= my projects are here&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;┣&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f4c2.svg" title="Open file folder"&gt;&amp;#x1f4c2;&lt;/span&gt;bootloader&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;┣&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f4c2.svg" title="Open file folder"&gt;&amp;#x1f4c2;&lt;/span&gt;mbedtls&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;┣&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f4c2.svg" title="Open file folder"&gt;&amp;#x1f4c2;&lt;/span&gt;modules&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;┣&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f4c2.svg" title="Open file folder"&gt;&amp;#x1f4c2;&lt;/span&gt;nrf&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;┣&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f4c2.svg" title="Open file folder"&gt;&amp;#x1f4c2;&lt;/span&gt;nrfxlib&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;┣&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f4c2.svg" title="Open file folder"&gt;&amp;#x1f4c2;&lt;/span&gt;custom_modules &amp;lt;= the west.yml to init my workspace with west is here&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;┃ ┗&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f4c2.svg" title="Open file folder"&gt;&amp;#x1f4c2;&lt;/span&gt;boards &amp;lt;= custom boards are here&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;┣&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f4c2.svg" title="Open file folder"&gt;&amp;#x1f4c2;&lt;/span&gt;test&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;┣&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f4c2.svg" title="Open file folder"&gt;&amp;#x1f4c2;&lt;/span&gt;tools&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;┗&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f4c2.svg" title="Open file folder"&gt;&amp;#x1f4c2;&lt;/span&gt;zephyr&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Andrew&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: VS Code custom board in external module not showing</title><link>https://devzone.nordicsemi.com/thread/405063?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2023 13:50:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b711a4c-818c-4467-b20f-713b8024725e</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello Andrew, have you followed the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/zephyr/develop/application/index.html#custom-board-devicetree-and-soc-definitions"&gt;Custom Board, Devicetree and SOC Definitions&lt;/a&gt;&amp;nbsp;chapter in the Zephyr documentation?&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span&gt;The structure needed to support out-of-tree board and SOC development is similar to how boards and SOCs are maintained in the Zephyr tree.&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
[quote user=""]In the build/zephyr_settings.txt of our application I see our module in BOARD_ROOT but not on the UI to create a new build config.[/quote]
&lt;p&gt;&lt;span&gt;What does BOARD_ROOT point to? Where have you configured BOARD_ROOT?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;From:&amp;nbsp;zephyr/cmake/modules/boards.cmake it states&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;blockquote&gt;
&lt;div&gt;&lt;span&gt;Hints:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; - if your board directory is &amp;#39;/foo/bar/boards/&amp;lt;ARCH&amp;gt;/my_board&amp;#39; then add &amp;#39;/foo/bar&amp;#39; to BOARD_ROOT, not the entire board directory&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; - if in doubt, use absolute paths&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;More information is found in &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/develop/application/index.html#boards"&gt;Boards sub-chapter in Custom Board, Devicetree and SOC Definitions chapter&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;When specifyingBOARD_ROOTin a CMakeLists.txt, then an absolute path must be provided, for examplelist(APPENDBOARD_ROOT${CMAKE_CURRENT_SOURCE_DIR}/&amp;lt;extra-board-root&amp;gt;). When using-DBOARD_ROOT=&amp;lt;board-root&amp;gt;both absolute and relative paths can be used. Relative paths are treated relatively to the application directory.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>