<?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 and command prompt initialization.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84092/toolchain-bash-and-command-prompt-initialization</link><description>Hello, 
 I need to run &amp;quot;west build&amp;quot; and &amp;quot;west flash&amp;quot; commands from my custom IDE/Editor. If I open up Toolchain Manager and then do &amp;quot;Open bash&amp;quot; or &amp;quot;Open Command Prompt&amp;quot;, 
 all works fine. But now I need to do it from regular bash and command prompt without</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Jan 2022 15:38:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84092/toolchain-bash-and-command-prompt-initialization" /><item><title>RE: Toolchain bash and command prompt initialization.</title><link>https://devzone.nordicsemi.com/thread/350265?ContentTypeID=1</link><pubDate>Fri, 28 Jan 2022 15:38:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cc82dfb-5fc3-4f9f-b5b1-3a5636b51bc8</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;OK thanks for the explanation.&lt;br /&gt;&lt;br /&gt;When using NRF connect for Desktop the &amp;quot;Open bash&amp;quot; or &amp;quot;Open Command Promt&amp;quot; is running the .exe/.cmd in the toolchain directory&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/5327.pastedimage1643384115239v1.png" alt=" " /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3264.pastedimage1643384154455v2.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;You can do the manual install guide, then the west command can be sett as global so you will not have the &amp;quot;west command not found&amp;quot; issue, but then it is not as clean to rund different&amp;nbsp;versions of NCS if that is something you do a lot.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toolchain bash and command prompt initialization.</title><link>https://devzone.nordicsemi.com/thread/350246?ContentTypeID=1</link><pubDate>Fri, 28 Jan 2022 14:48:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3b70eb4-8238-455e-8d5c-581f45994f79</guid><dc:creator>ealtan</dc:creator><description>&lt;p&gt;Thank you for clarification.&amp;nbsp; Unfortunately I was not able to explain clearly what my problem was.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My problem is not about how to use &amp;quot;west&amp;quot;.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;If I open a bash window or command prompt via nRF Connect Desktop and then toolchain manager,&amp;nbsp; I don&amp;#39;t have any issues.&amp;nbsp; If I open a bash window or command prompt via Windows run menu and run west command,&amp;nbsp; it displays &amp;quot;west: command not found&amp;quot;.&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;As I&amp;#39;ve mentioned before,&amp;nbsp; I need to trigger a build/flash/run cycle via external tools, such as another IDE or Jenkins.&amp;nbsp; Therefore, my question is,&amp;nbsp; just like when you startup bash/command-line via Toolchain Manager,&amp;nbsp; I need to do it from my tools and therefore my questions are,&amp;nbsp; 1. is there an initialization script that I should run ? 2. How does your Toolchain Manager&amp;nbsp;run &amp;quot;Open bash&amp;quot; or &amp;quot;Open Command Prompt&amp;quot; commands so I can do the same thing from my tools.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best.&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toolchain bash and command prompt initialization.</title><link>https://devzone.nordicsemi.com/thread/350165?ContentTypeID=1</link><pubDate>Fri, 28 Jan 2022 10:36:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c350961-ea11-47c1-82a6-d762e9dd2b53</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;No, that is not needed, was just adding the guide as additional material, it shows a bit more of prosess. Sorry for the confusion, the additional specifiers in the commands you intend to run should suffice.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toolchain bash and command prompt initialization.</title><link>https://devzone.nordicsemi.com/thread/350077?ContentTypeID=1</link><pubDate>Thu, 27 Jan 2022 19:37:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acd55b04-9119-4594-8820-09cb0b58b8ff</guid><dc:creator>ealtan</dc:creator><description>&lt;p&gt;Hi Jonathan,&amp;nbsp; thank you.&amp;nbsp; Just a aclarification, are you recommending me to uninstall&amp;nbsp; my SDK and toolchain that I&amp;#39;ve installed via &amp;quot;nRF Connect Desktop&amp;quot; and reinstall it via manual installation ?&amp;nbsp; &amp;nbsp;Thanks ...&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toolchain bash and command prompt initialization.</title><link>https://devzone.nordicsemi.com/thread/349971?ContentTypeID=1</link><pubDate>Thu, 27 Jan 2022 12:35:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67ac15d7-4f8f-4706-8c72-95388edc1d67</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;You need to be in the folder if you are to just run the command &lt;em&gt;west build&lt;/em&gt; or &lt;em&gt;west flash&lt;/em&gt;.&amp;nbsp;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.4.0/zephyr/guides/west/build-flash-debug.html"&gt;Building, Flashing and Debugging — Zephyr Project Documentation (nordicsemi.com)&lt;br /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;west&lt;/span&gt; &lt;span&gt;build&lt;/span&gt; &lt;span&gt;-&lt;/span&gt;&lt;span&gt;b&lt;/span&gt; &lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;BOARD&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt; &lt;span&gt;path&lt;/span&gt;&lt;span&gt;/&lt;/span&gt;&lt;span&gt;to&lt;/span&gt;&lt;span&gt;/&lt;/span&gt;&lt;span&gt;source&lt;/span&gt;&lt;span&gt;/&lt;/span&gt;&lt;span&gt;directory&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span&gt;west&lt;/span&gt; &lt;span&gt;flash&lt;/span&gt; &lt;span&gt;--&lt;/span&gt;&lt;span&gt;build&lt;/span&gt;&lt;span&gt;-&lt;/span&gt;&lt;span&gt;dir&lt;/span&gt; &lt;span&gt;path&lt;/span&gt;&lt;span&gt;/&lt;/span&gt;&lt;span&gt;to&lt;/span&gt;&lt;span&gt;/&lt;/span&gt;&lt;span&gt;build&lt;/span&gt;&lt;span&gt;/&lt;/span&gt;&lt;span&gt;directory&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.4.0/zephyr/guides/west/build-flash-debug.html"&gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;Linking to manual installation&amp;nbsp;guide.&amp;nbsp;&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_installing.html"&gt;Installing manually — nRF Connect SDK 1.8.99 documentation (nordicsemi.com)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>