<?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>nrfutil toolchain-manager launch --terminal does not work on Windows</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109723/nrfutil-toolchain-manager-launch---terminal-does-not-work-on-windows</link><description>My understanding is that the Toolchain Manager provided by the nRF Connect GUI desktop app is deprecated. I have uninstalled all toolchains and SDKs installed by that app and reinstalled them using the nRF Connect extension in VS Code. My understanding</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Apr 2024 13:57:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109723/nrfutil-toolchain-manager-launch---terminal-does-not-work-on-windows" /><item><title>RE: nrfutil toolchain-manager launch --terminal does not work on Windows</title><link>https://devzone.nordicsemi.com/thread/477158?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 13:57:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:829a0a79-9d99-4e78-8072-96569ec31bb1</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;My understanding is that nRF Connect for Desktop -&amp;gt; Toolchain manager is handling both installing the SDK and the toolchain. Therefore it knows what paths to set e.g. for the Zephyr base. The nrfutil toolchain manager, however, is only in charge of the toolchains, and it is used by the VS Code extention, which installs and activates toolchains separately. This is why it isn&amp;#39;t a &amp;quot;simple fix&amp;quot; to have nrfutil toolchain-manager to work out of tree, because it wouldn&amp;#39;t know where the location of the SDK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="Aaron F"] I suppose I could try it from the NCS folder and the cd to the repo root, but that seems a little clunky.[/quote]
&lt;p&gt;That wouldn&amp;#39;t help. The window it opens will only work inside the tree. If you cd out of it, it stops working.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil toolchain-manager launch --terminal does not work on Windows</title><link>https://devzone.nordicsemi.com/thread/477140?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 13:30:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0aa32988-2eb3-4eff-9505-5bde81498549</guid><dc:creator>Aaron F</dc:creator><description>&lt;p&gt;Yes, it is out of tree. That&amp;#39;s pretty normal, I think. The toolchain and SDK versions are selected in VS Code and VS Code is able to make all the correct references and set up the build environment properly.&lt;/p&gt;
&lt;p&gt;When using nrfutil toolchain-manager, I&amp;#39;m running it from the root of the repo. I suppose I could try it from the NCS folder and the cd to the repo root, but that seems a little clunky.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil toolchain-manager launch --terminal does not work on Windows</title><link>https://devzone.nordicsemi.com/thread/477135?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 13:27:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d469cb14-9326-4003-84c6-70f2d5300602</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;So it looks like that is not the issue then. I have discussed this a bit with some colleagues, and we figured that the nrfutil toolchain-manager tool doesn&amp;#39;t work out of tree, meaning if your application is outside the SDK root folder you can&amp;#39;t use this tool to set up the toolchain. Is that the case for your application? Is the application located outside the SDK? If so, I believe that the only way to &amp;quot;easily&amp;quot; set up the toolchain is to do so using nRF Connect for Desktop -&amp;gt; Toolchain manager. If you keep your application inside the SDK root folder, I can ask the nrfutil if they have any other ideas as to why the new window closes itself.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil toolchain-manager launch --terminal does not work on Windows</title><link>https://devzone.nordicsemi.com/thread/476930?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 14:10:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5afc0a62-f126-41cd-92d0-800221dd40d1</guid><dc:creator>Aaron F</dc:creator><description>&lt;p&gt;Additional info:&lt;/p&gt;
&lt;p&gt;If I run &amp;quot;cmd.exe /c start&amp;quot; from within Git Bash (run from Windows Terminal app) it opens a subshell in the same window. I can then &amp;quot;exit&amp;quot; back to Git Bash.&lt;/p&gt;
&lt;p&gt;If I run &amp;quot;cmd.exe /c start&amp;quot; from a cmd.exe window, it spawns a new cmd.exe window.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil toolchain-manager launch --terminal does not work on Windows</title><link>https://devzone.nordicsemi.com/thread/476928?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 14:07:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4680ce9f-c18a-497c-88db-7f711e4cb637</guid><dc:creator>Aaron F</dc:creator><description>&lt;p&gt;Executing &amp;quot;cmd.exe /c start&amp;quot; from Windows run dialog (i.e. dialog opened by Windows-x, r). This opens a cmd.exe shell that remains open.&lt;/p&gt;
&lt;p&gt;aaronf@DESKTOP-RNAG27J MINGW64 ~/Documents/Learning/NCS/ncs-low-power (ncs-v2.5.0)&lt;br /&gt;$ nrfutil toolchain-manager list&lt;br /&gt;&amp;nbsp; Version&amp;nbsp; Toolchain&lt;br /&gt;&amp;nbsp; v2.5.0&amp;nbsp;&amp;nbsp; C:\ncs\toolchains\c57af46cb7&lt;br /&gt;&amp;nbsp; v2.2.0&amp;nbsp;&amp;nbsp; C:\ncs\toolchains\v2.2.0&lt;br /&gt;* v2.6.0&amp;nbsp;&amp;nbsp; C:\ncs\toolchains\cf2149caf2&lt;/p&gt;
&lt;p&gt;Edition&amp;nbsp;&amp;nbsp; &amp;nbsp;Windows 10 Pro&lt;br /&gt;Version&amp;nbsp;&amp;nbsp; &amp;nbsp;22H2&lt;br /&gt;Installed on&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lrm;4/&amp;lrm;10/&amp;lrm;2021&lt;br /&gt;OS build&amp;nbsp;&amp;nbsp; &amp;nbsp;19045.4170&lt;br /&gt;Experience&amp;nbsp;&amp;nbsp; &amp;nbsp;Windows Feature Experience Pack 1000.19054.1000.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil toolchain-manager launch --terminal does not work on Windows</title><link>https://devzone.nordicsemi.com/thread/476927?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 14:04:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afdaf9b7-79fc-44c1-a2c7-36cce09e77f4</guid><dc:creator>Aaron F</dc:creator><description>&lt;p&gt;Yes, this works and it&amp;#39;s what I&amp;#39;ve been using already. I just wasn&amp;#39;t sure about it since it involves mixing use of the VS Code/nrfutil method of managing toolchains with the nRF Connect desktop app.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil toolchain-manager launch --terminal does not work on Windows</title><link>https://devzone.nordicsemi.com/thread/476897?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 13:10:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a890dda1-4eb3-4351-951b-bdadec28c3e9</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;1: Can you please check what nrfutil says if you enter:&lt;/p&gt;
&lt;p&gt;&amp;quot;nrfutil toolchain-manager list&amp;quot;?&lt;/p&gt;
&lt;p&gt;2: And what about if you enter:&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;span&gt;cmd.exe /c start&amp;quot;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Does it open a new terminal? Or does it open and close immediately?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;3: And finally, what windows version do you have?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Edvin&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil toolchain-manager launch --terminal does not work on Windows</title><link>https://devzone.nordicsemi.com/thread/476858?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 11:51:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ddfe4d2-e261-424b-88f1-e8f1e41c7526</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have seen the same issues that you are seeing. Is it an option to use the nRF Connect for Desktop -&amp;gt; Toolchain Manager -&amp;gt; Generate environment script ?&lt;/p&gt;
&lt;p&gt;At least until we get out the bugs in the nrfutil -&amp;gt; toolchain-manager, I think this is the way to go.&lt;/p&gt;
&lt;p&gt;After generating the environment script, you can rename and put this somewhere in your path. I use this to switch between NCS versions, and I think it is faster than using the nrfutil method for now. (although I understand that it may not be as good in a scripting environment), as it requires some clicking to set it up for each NCS version.)&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>