<?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>How to install nRF5x Command Line Tools on macOS?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27884/how-to-install-nrf5x-command-line-tools-on-macos</link><description>Hello,
I want to install nRF5x Command Line Tools on macOS, I found this user guide, infocenter.nordicsemi.com/.../nRF5x_Command_Line_Tools_v1.3.pdf and on page 5, it lists that:
&amp;quot;On Linux and Mac OS X, extract the .tar archive anywhere on your filesystem</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Oct 2019 01:12:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27884/how-to-install-nrf5x-command-line-tools-on-macos" /><item><title>RE: How to install nRF5x Command Line Tools on macOS?</title><link>https://devzone.nordicsemi.com/thread/214243?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2019 01:12:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01ab157a-81f4-4bb1-b5f5-06e8c56f1265</guid><dc:creator>Tumati</dc:creator><description>&lt;p&gt;Fantastic. I found this very helpful. You, my friend, are true blue!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to install nRF5x Command Line Tools on macOS?</title><link>https://devzone.nordicsemi.com/thread/110010?ContentTypeID=1</link><pubDate>Thu, 07 Dec 2017 19:40:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32238702-7d1c-49dc-beed-7a12cc24349f</guid><dc:creator>pranavsk1994</dc:creator><description>&lt;p&gt;Hi I followed the procedure from your answer and it seems nrfjprog works only in folder where I did export PATH in terminal. Its not working every where&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to install nRF5x Command Line Tools on macOS?</title><link>https://devzone.nordicsemi.com/thread/110008?ContentTypeID=1</link><pubDate>Fri, 01 Dec 2017 13:11:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f9e2306-ff79-4c90-8abd-fb4ab0f4b607</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Yeah, will mention it to my boss.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to install nRF5x Command Line Tools on macOS?</title><link>https://devzone.nordicsemi.com/thread/110007?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2017 08:32:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebf9ec9e-7ff3-4ee9-b5cd-35aa5a6c3557</guid><dc:creator>kren</dc:creator><description>&lt;p&gt;I hope so, I suggest adding this piece into &lt;a href="http://infocenter.nordicsemi.com/pdf/nRF5x_Command_Line_Tools_v1.3.pdf"&gt;infocenter.nordicsemi.com/.../nRF5x_Command_Line_Tools_v1.3.pdf&lt;/a&gt; in next release, just my humble opinion.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to install nRF5x Command Line Tools on macOS?</title><link>https://devzone.nordicsemi.com/thread/110009?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2017 08:08:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ef09589-b87c-43db-9d75-bd0b3343a0ed</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Thanks! Hopefully it will also be helpful for other people that encounter the same issue on macOS. :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to install nRF5x Command Line Tools on macOS?</title><link>https://devzone.nordicsemi.com/thread/110011?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2017 00:01:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc487de8-c5b0-430b-84b5-e73ad7d1b05b</guid><dc:creator>kren</dc:creator><description>&lt;p&gt;Thank you so much!!! The answer is extremely clear, I&amp;#39;ve already solved this problem. Thank you again for the help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to install nRF5x Command Line Tools on macOS?</title><link>https://devzone.nordicsemi.com/thread/110006?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2017 12:35:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4aae8e27-8327-40a1-8a32-a16494392a15</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Hey kren! I understand your confusion. I will see if someone in Nordic can update this pdf and include a few lines for how you can add the &lt;code&gt;mergehex&lt;/code&gt; and &lt;code&gt;nrfjprog&lt;/code&gt; commands to the path.&lt;/p&gt;
&lt;p&gt;The &amp;quot;define the path to the extracted directory to access the commands from anywhere in the command line.&amp;quot; basically means that when you open a terminal on your Mac (i.e. press &amp;#39;Command + Space&amp;#39; to open spotlight &amp;amp; then enter &amp;#39;terminal&amp;#39; &amp;amp; press Enter), you are able to use the commands present in nrf5x command line tools (i.e. &lt;code&gt;mergehex&lt;/code&gt; &amp;amp; &lt;code&gt;nrfjprog&lt;/code&gt;). At present, you are unable to use these commands in your terminal instance because they have not been added to the path yet. You can try this out by opening a terminal instance and typing in &lt;code&gt;mergehex&lt;/code&gt;. You will then get an error message saying that this command is not defined.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How to add &lt;code&gt;mergehex&lt;/code&gt; &amp;amp; &lt;code&gt;nrfjprog&lt;/code&gt; to the path:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;What you need to do is extract the tar file to a location where you want the folder to be located. I chose the Desktop folder as an example. Then, you can open up a terminal instance (as mentioned above) &amp;amp; navigate to where you extracted the file. If you chose the Desktop, this would mean entering the &lt;code&gt;cd&lt;/code&gt; command (i.e. stands for change directory): &lt;code&gt;cd Desktop/nRF5x-Command-Line-Tools_9_7_1_OSX/mergehex/&lt;/code&gt;. You can press the Tab button to auto complete (i.e. you can type &lt;code&gt;cd Desk&lt;/code&gt; + press Tab, this should then autocomplete and give you &lt;code&gt;cd Desktop/&lt;/code&gt;). Your nrf5x command line tools folder might be worded slightly differently, depending on which version you downloaded. Make sure to stick with the wording on your Mac, not what I wrote here.&lt;/p&gt;
&lt;p&gt;Once you are in that folder, you can use the &lt;code&gt;pwd&lt;/code&gt; command to find the path to the mergehex executable file. This should then give you something similar to this: &lt;code&gt;/Users/your_username/Desktop/nRF5x-Command-Line-Tools_9_7_1_OSX/mergehex&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Then, you want to add the &lt;code&gt;mergehex&lt;/code&gt; executable to the path. This can be done by typing this command into the Terminal instance: &lt;code&gt;export PATH=&amp;quot;executable_path_location:$PATH&amp;quot;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;where executable_path_location refers to &lt;code&gt;/Users/your_username/Desktop/nRF5x-Command-Line-Tools_9_7_1_OSX/mergehex/&lt;/code&gt;. Remember to add the &lt;code&gt;/&lt;/code&gt; at the end. Then, press Enter.&lt;/p&gt;
&lt;p&gt;Also remember to add the &lt;code&gt;$PATH&lt;/code&gt; at the end of the command too. This is very important!&lt;/p&gt;
&lt;p&gt;If you then type the command &lt;code&gt;echo $PATH&lt;/code&gt; into the terminal instance, you should get the executable_path_location as the output, along with other bin folders, etc.&lt;/p&gt;
&lt;p&gt;You can repeat the same process for the &lt;code&gt;nrfjprog&lt;/code&gt; command, just by adding the nrfjprog folder (i.e. and thereby the nrfjprog executable) to the path instead of the &lt;code&gt;mergehex&lt;/code&gt; executable.&lt;/p&gt;
&lt;p&gt;If successful, you should be able to enter the command &lt;code&gt;mergehex&lt;/code&gt; into a Terminal instance &amp;amp; not receive an error, but instead it should output a list of all of the possible uses of the command. The same applies to the &lt;code&gt;nrjprog&lt;/code&gt; command.&lt;/p&gt;
&lt;p&gt;That was a long answer! Hope that helps! Let me know if you figured it out or need more help. :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>