<?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>Toolchain bash prompt in NCS v2.0.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89097/toolchain-bash-prompt-in-ncs-v2-0-0</link><description>I would like to be able to open a bash prompt with the nRF Connect SDK (NCS) v2.0.0 toolchain environment loaded without going through Toolchain Manager (&amp;quot;open bash&amp;quot; option). 
 Using NCS v1.9.1, I would run &amp;quot;git-bash.exe&amp;quot; located in the &amp;quot;v1.9.1/toolchain</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 18 Jan 2025 07:02:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89097/toolchain-bash-prompt-in-ncs-v2-0-0" /><item><title>RE: Toolchain bash prompt in NCS v2.0.0</title><link>https://devzone.nordicsemi.com/thread/518936?ContentTypeID=1</link><pubDate>Sat, 18 Jan 2025 07:02:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4dab4fd0-0d6f-4ed5-9614-bf2ad8c6dcfa</guid><dc:creator>Spector</dc:creator><description>&lt;p&gt;Any follow up on this? I&amp;#39;m suffering the same issue&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toolchain bash prompt in NCS v2.0.0</title><link>https://devzone.nordicsemi.com/thread/373528?ContentTypeID=1</link><pubDate>Tue, 21 Jun 2022 16:45:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a74ebeb-2b2b-440d-8475-9fe0567059de</guid><dc:creator>abkirchhoff</dc:creator><description>&lt;p&gt;Thanks for pointing me to the environment.json file. I was able to add that list of paths and create the other two environment variables with my own script that I can source after opening a bash prompt. I also source the &amp;quot;zephyr/zephyr-env.sh&amp;quot; file to create additional variables. Thanks again!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toolchain bash prompt in NCS v2.0.0</title><link>https://devzone.nordicsemi.com/thread/373358?ContentTypeID=1</link><pubDate>Tue, 21 Jun 2022 07:17:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a2db8f1-58b5-47f7-8a7e-46b92865e998</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Ah, sorry. It seems I only skimmed the original post before replying (as there is a known issue with building out of tree projects even when opening from&amp;nbsp;Toolchain Manager that came to mind).&lt;/p&gt;
&lt;p&gt;As you write, opening the correct environment without going through the Toolchain Manager GUI was straightforward earlier, but not in 2.0.0. There has been a couple of complaints about this but we do not have any other method at the time being. That said,&amp;nbsp;most of what you need should be in &amp;lt;Toolchain manager install location&amp;gt;&lt;span&gt;\&lt;/span&gt;toolchains\v2.0.0&lt;span&gt;\&lt;/span&gt;environment.json, so it should be possible to extract that info and put it into your own script, setting those environment variables.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toolchain bash prompt in NCS v2.0.0</title><link>https://devzone.nordicsemi.com/thread/373293?ContentTypeID=1</link><pubDate>Mon, 20 Jun 2022 14:47:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6714b030-1e3b-4a8f-bb75-3a1e3cda233c</guid><dc:creator>abkirchhoff</dc:creator><description>&lt;p&gt;Einar,&lt;/p&gt;
&lt;p&gt;The point of my original post was that I would like to start a bash prompt that loads the correct Zephyr/west environment WITHOUT using Toolchain Manager. This was possible in NCS v1.9.1 by running &amp;quot;git-bash.exe&amp;quot;, but this does not work in v2.0.0.&lt;/p&gt;
&lt;p&gt;After running &amp;quot;git-bash.exe in NCS v1.9.1:&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;abkirchhoff@xxxxIND MINGW64 ~/NordicSdk/v1.9.1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;$ west -V&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;West version: v0.12.0&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;After running &amp;quot;git-bash.exe in NCS v2.0.0:&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;abkirchhoff@xxxxIND MINGW64 /&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;$ west -V&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;bash: west: command not found&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Hopefully, that clarifies the issue. If an update to NCS and/or Toolchain Manager is required, that is fine, but if you have a workaround, that would be great! Using Toolchain Manager to open the bash prompt works fine, but I don&amp;#39;t know how to re-create what it is doing to load the correct environment for the bash prompt.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toolchain bash prompt in NCS v2.0.0</title><link>https://devzone.nordicsemi.com/thread/373284?ContentTypeID=1</link><pubDate>Mon, 20 Jun 2022 14:23:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91aa3325-b7a3-44f4-94ba-5abc81edaac1</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I did not specify, but did you start the terminal from the toolchain manager? That is always required, and is a pre-requisite for what I described in my previous post:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/open_5F00_terminal_5F00_from_5F00_tcm.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toolchain bash prompt in NCS v2.0.0</title><link>https://devzone.nordicsemi.com/thread/373283?ContentTypeID=1</link><pubDate>Mon, 20 Jun 2022 14:22:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:271e7e7f-973d-4cd1-8945-30f717ba92a7</guid><dc:creator>sread</dc:creator><description>&lt;p&gt;I&amp;#39;m not 100% sure this is still the case, but with previous versions I had a build set up where I used a custom ZEPHYR_BASE,&amp;nbsp;ZEPHYR_TOOLCHAIN_VARIANT and GNUARMEMB_TOOLCHAIN_PATH. The only way this worked was if I also appended the following to the end of the west build command. Worth a try?&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;-- -DNCS_TOOLCHAIN_VERSION=NONE&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toolchain bash prompt in NCS v2.0.0</title><link>https://devzone.nordicsemi.com/thread/373281?ContentTypeID=1</link><pubDate>Mon, 20 Jun 2022 14:14:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8eac3369-fc3f-43c1-85bc-373f2eab8e2d</guid><dc:creator>abkirchhoff</dc:creator><description>&lt;p&gt;Unfortunately that did not work either. I opened a prompt using &amp;quot;git-bash.exe&amp;quot; and then ran&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;export ZEPHYR_BASE=/c/Users/abkirchhoff/NordicSdk/v2.0.0/zephyr/&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I also ran&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;source /c/Users/abkirchhoff/NordicSdk/v2.0.0/zephyr/zephyr-env.sh&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;After both steps, attempting to run west resulted in a &amp;quot;command not found&amp;quot; error.&lt;/p&gt;
&lt;p&gt;I believe there may be PATH or other environment variables not being set up correctly. These may be hard to chase down and may have a more complicated workaround than just using Toolchain Manager to launch the bash prompt. So I&amp;#39;ll just wait for that next release of Toolchain Manager. :-)&lt;/p&gt;
&lt;p&gt;Thanks for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toolchain bash prompt in NCS v2.0.0</title><link>https://devzone.nordicsemi.com/thread/373276?ContentTypeID=1</link><pubDate>Mon, 20 Jun 2022 13:52:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9904d2bc-a79e-4dca-8498-e68942e486e3</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Ah, sorry - I forgot that you were using bash before writing the answer. For cmd you can do as I suggested. With bash, you just need to set the path to&amp;nbsp;ZEPHYR_BASE. For instance, on my PC that would be:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;export ZEPHYR_BASE=/c/Users/eith/src/tcm_ncs/v2.0.0/zephyr/&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toolchain bash prompt in NCS v2.0.0</title><link>https://devzone.nordicsemi.com/thread/373261?ContentTypeID=1</link><pubDate>Mon, 20 Jun 2022 13:19:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2f2e5c0-5ba7-4dc7-a1a1-ad170957f134</guid><dc:creator>abkirchhoff</dc:creator><description>&lt;p&gt;Thanks for the update!&lt;/p&gt;
&lt;p&gt;Unfortunately, the work around you suggested did not work for me. I&amp;#39;m trying to open a bash prompt, so I did the following:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Ran &amp;quot;git-bash.exe&amp;quot; from &amp;quot;toolchains/v2.0.0&amp;quot; to open a bash prompt.&lt;/li&gt;
&lt;li&gt;Navigated to the &amp;quot;v2.0.0/zephyr&amp;quot; folder.&lt;/li&gt;
&lt;li&gt;Ran &amp;quot;source zephyr-env.sh&amp;quot;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Then I tried to run west and received the &amp;quot;command not found&amp;quot; error.&lt;/p&gt;
&lt;p&gt;What am I missing to get the workaround to work?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toolchain bash prompt in NCS v2.0.0</title><link>https://devzone.nordicsemi.com/thread/373252?ContentTypeID=1</link><pubDate>Mon, 20 Jun 2022 13:03:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15ba8305-834e-4514-826f-2eac63710318</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This is an issue in 2.0.0 that has been reported. We plan to fix this in the next release of the Toolchain manager. For now, you can work around it by running&amp;nbsp;zephyr\zephyr-env.cmd.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>