<?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>Visual Studio Code discovers wrong gnuarmemb folder</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82461/visual-studio-code-discovers-wrong-gnuarmemb-folder</link><description>I&amp;#39;m using Linux 20.04. I have been following the manual installation guide for setting up the nRF Connect SDK and also nRF Toolchain 
 in my .bashrc file: 
 export PATH=${HOME}/gn:&amp;quot;$PATH&amp;quot; export PATH=$PATH:$GNUARMEMB_TOOLCHAIN_PATH/bin 
 in my .zephyrrc</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Dec 2021 07:39:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82461/visual-studio-code-discovers-wrong-gnuarmemb-folder" /><item><title>RE: Visual Studio Code discovers wrong gnuarmemb folder</title><link>https://devzone.nordicsemi.com/thread/342628?ContentTypeID=1</link><pubDate>Thu, 09 Dec 2021 07:39:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6275b492-b49c-4567-bd19-3ca99a72fe34</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi again&lt;/p&gt;
&lt;p&gt;I have not been able to reproduce the issue by installing an older version of the toolchain.&lt;/p&gt;
&lt;p&gt;Where did you install the version from?&lt;/p&gt;
&lt;p&gt;Is the older version of the toolchain also in PATH?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Visual Studio Code discovers wrong gnuarmemb folder</title><link>https://devzone.nordicsemi.com/thread/342310?ContentTypeID=1</link><pubDate>Tue, 07 Dec 2021 12:13:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:865442ec-e47d-42cf-8a36-9f5c096ce252</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;I will try to install an older version of gcc-arm-none-eabi to replicate myself.&lt;/p&gt;
&lt;p&gt;In the meantime, I also noticed that you are using the 2021 version of the toolchain, while our Manual Installation documentation says:&lt;br /&gt;&amp;quot;To be able to cross-compile your applications for Arm targets, you must install version 9-2019-q4-major of the &lt;a href="https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads"&gt;GNU Arm Embedded Toolchain&lt;/a&gt;.&amp;quot;&lt;/p&gt;
&lt;p&gt;Could you try the 2019-q4 toolchain?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Visual Studio Code discovers wrong gnuarmemb folder</title><link>https://devzone.nordicsemi.com/thread/342289?ContentTypeID=1</link><pubDate>Tue, 07 Dec 2021 10:43:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd71bb50-babb-4740-bfe1-efb923f2ea87</guid><dc:creator>User1321</dc:creator><description>&lt;p&gt;Hi Sigurd, &lt;/p&gt;
&lt;p&gt;i applied your changes but they did not help much. It was always taking by default the old gnuarmemb that i had for previous nordic projects.&lt;/p&gt;
&lt;p&gt;If i delete the folder where that old version was installed, I fix the &amp;quot;Invalid Toolchain Installation&amp;quot; error on VSCode. But&amp;nbsp; then I&amp;#39;m not able to debug the previous nordic projects in eclipse getting: &lt;strong&gt;&lt;em&gt;Error while launching command: arm-none-eabi-gdb --version&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Does eclipse debug not work with the new version from arm-none-eabi-gdb or is it a configuration that i need to set? If i bring back the old arm-none-eabi-gdb version, the debug in eclipse works properly.&lt;em&gt; &lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Visual Studio Code discovers wrong gnuarmemb folder</title><link>https://devzone.nordicsemi.com/thread/342260?ContentTypeID=1</link><pubDate>Tue, 07 Dec 2021 08:41:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:303e7793-8412-48b2-b8a4-861d563f71fb</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The &amp;quot;gnuarmemb&amp;quot; folder usually looks like this:&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1638866083025v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;My guess is that you unzipped the folder into &amp;quot;gnuarmemb&amp;quot;, instead of renaming it.&lt;br /&gt;I am not sure if this should do anything, but it is worth getting it the same way as the tutorial.&lt;/p&gt;
&lt;p&gt;When installing the nRF Connect extension for VS Code on Ubuntu, I fix the &amp;quot;Invalid Toolchain Installation&amp;quot; by setting:&lt;/p&gt;
&lt;p&gt;export PATH=$PATH:$HOME/gnuarmemb/bin&lt;/p&gt;
&lt;p&gt;in .bashrc. &lt;br /&gt;This looks like the same as you have done. I also agree with you, using $GNUARMEMB_TOOLCHAIN_PATH is cleaner though.&lt;/p&gt;
&lt;p&gt;The reason why it goes in .bashrc can be seen in &amp;quot;.vscode/extensions/nordic-semiconductor.nrf-connect-2021.11.221/docs/west.md&amp;quot;:&lt;br /&gt;&amp;quot;To get around this issue, the extension will query Bash for its environment on Linux and macOS. This executes the `~/.bashrc` file&amp;quot;&lt;/p&gt;
&lt;p&gt;So the extension should run .bashrc for you, meaning that you do not need to run VS Code from the command line.&lt;/p&gt;
&lt;p&gt;Did this help you fix the problem?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>