<?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>Using VScode with my own projects and boards</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80318/using-vscode-with-my-own-projects-and-boards</link><description>I have a number of custom projects and boards that were created using SES. 
 How do I get nRF Connect to see my projects and boars. I have a separate directly structure where all my projects and custom boards reside.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Oct 2021 11:55:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80318/using-vscode-with-my-own-projects-and-boards" /><item><title>RE: Using VScode with my own projects and boards</title><link>https://devzone.nordicsemi.com/thread/332824?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 11:55:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6078a60c-4aa9-4fd4-a033-5a6bd336a5fe</guid><dc:creator>fgeldenh</dc:creator><description>&lt;p&gt;&lt;span&gt;H&amp;aring;kon&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;That did the trick. Everything is working for me now.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using VScode with my own projects and boards</title><link>https://devzone.nordicsemi.com/thread/332746?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 08:05:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6f8e30d-b6fe-4e98-839f-563426fd0c10</guid><dc:creator>fgeldenh</dc:creator><description>&lt;p&gt;That looks like what I need. Thank you. I will only get back to this in a couple of days, but I will certainly feed back.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using VScode with my own projects and boards</title><link>https://devzone.nordicsemi.com/thread/332745?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 08:03:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16259c0b-9a85-4b55-a9e4-840e76eb7d19</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="fgeldenh"]&lt;p&gt;Hi - There is another issue that is quite serious.It is not possible to create a new project unless one first uses SES to create the project and then only if it falls within the directory tree of the SDK can one clone it using create new application from sample. Then, only if the board is in the SDK tree can one configure the application.&lt;/p&gt;
&lt;p&gt;This means that each time one has to update the SDK, then one would have to first back up own projects as they may get overwritten.&lt;/p&gt;
&lt;p&gt;As it is now, I believe that the tool, although great is only useful for experimenting with SDK samples using boards supported by the SDK.&lt;/p&gt;
&lt;p&gt;I would give more feedback if it was possible to actually run one of my projects.&lt;/p&gt;[/quote]
&lt;p&gt;This does not sound good!&lt;/p&gt;
&lt;p&gt;Can you elaborate on the steps that you performed and what was overwritten at this stage?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using VScode with my own projects and boards</title><link>https://devzone.nordicsemi.com/thread/332744?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 08:01:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2d4f33c-5a5d-4a8c-a73d-d6d0243bc67d</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Quick update. In settings (CTRL+, or File-&amp;gt; Preferences-&amp;gt; Settings), you can search for &amp;quot;nrf-connect&amp;quot;, you can define the BOARD_ROOT manually:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1633507113399v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Where you then can edit your settings.json and add the path to your project (where folder structure boards/arm/my_custom_board is present):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;quot;nrf-connect.boardRoots&amp;quot;: [
&amp;quot;c:\\Users\\myuser\\ncs\\my_out_of_tree_project&amp;quot;,
]&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using VScode with my own projects and boards</title><link>https://devzone.nordicsemi.com/thread/332713?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 02:24:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc9fdcec-9bfe-495e-bf91-fc9b7e548586</guid><dc:creator>fgeldenh</dc:creator><description>&lt;p&gt;Hi - There is another issue that is quite serious.It is not possible to create a new project unless one first uses SES to create the project and then only if it falls within the directory tree of the SDK can one clone it using create new application from sample. Then, only if the board is in the SDK tree can one configure the application.&lt;/p&gt;
&lt;p&gt;This means that each time one has to update the SDK, then one would have to first back up own projects as they may get overwritten.&lt;/p&gt;
&lt;p&gt;As it is now, I believe that the tool, although great is only useful for experimenting with SDK samples using boards supported by the SDK.&lt;/p&gt;
&lt;p&gt;I would give more feedback if it was possible to actually run one of my projects.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using VScode with my own projects and boards</title><link>https://devzone.nordicsemi.com/thread/332662?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 13:59:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a2d2195-6b98-403a-954b-e4c36d23fbbe</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="fgeldenh"]&lt;p&gt;I also have not been able to get the JLINK listing my custom boards for debugging, but I will spend more time on this and let you have feedback.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Even if you hit the &amp;quot;refresh&amp;quot; button?&lt;/p&gt;
&lt;p&gt;Is the&amp;nbsp;debugger recognized by nrfjprog? Can you post the output of &amp;quot;nrfjprog --ids&amp;quot;?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="fgeldenh"]&lt;p&gt;Thank you. I have tried this and it did not work. VSCODE ignored the &lt;span&gt;out-of-tree&amp;nbsp;&lt;/span&gt;settings. I will look again.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;My apologies, it seems that my local test setup fooled me. You are 100 % correct, it does not pick up the BOARD_ROOT defined in CMakeLists.txt. Clear bug from our side! Will report this internally.&lt;/p&gt;
[quote user="fgeldenh"]This is a great product and will make life a lot simpler.[/quote]
&lt;p&gt;I&amp;#39;m really glad to hear that you like it, and also want to thank you for taking the time to report short-comings back to us, so that we can improve our delivery!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using VScode with my own projects and boards</title><link>https://devzone.nordicsemi.com/thread/332655?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 13:50:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd6f8bdb-9486-4a81-84c3-498d2387b469</guid><dc:creator>fgeldenh</dc:creator><description>&lt;p&gt;Thank you. I have tried this and it did not work. VSCODE ignored the &lt;span&gt;out-of-tree&amp;nbsp;&lt;/span&gt;settings. I will look again.&lt;/p&gt;
&lt;p&gt;I was hoping there would be a hidden setting for this. SES has no issue.&lt;/p&gt;
&lt;p&gt;I also have not been able to get the JLINK listing my custom boards for debugging, but I will spend more time on this and let you have feedback.&lt;/p&gt;
&lt;p&gt;This is a great product and will make life a lot simpler.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using VScode with my own projects and boards</title><link>https://devzone.nordicsemi.com/thread/332650?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 13:33:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a3484ed-fa66-4f47-8ded-bfedaf385586</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As I see it, you want a new option, to browse directly to your own board folder? This is good feedback to us!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In its current form, there&amp;#39;s two options for&amp;nbsp;a custom board to pop up in the list:&lt;/p&gt;
&lt;p&gt;1. Copy the board into ncs/zephyr/boards/arm directory and reload VSCode (regenerate the project)&lt;/p&gt;
&lt;p&gt;2. Use out-of-tree board definitions in your CMakeLists.txt file, as shown here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.6.99-ncs1/samples/application_development/out_of_tree_board/CMakeLists.txt#L6-L11"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/v2.6.99-ncs1/samples/application_development/out_of_tree_board/CMakeLists.txt#L6-L11&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please let me know if you still run into any issues.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>