<?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>[SDK11][GCC][LINUX] Error 127 for nrfjprog [closed]</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12622/sdk11-gcc-linux-error-127-for-nrfjprog-closed</link><description>Hi, 
I&amp;#39;m using GCC with SDK11 on linux. I&amp;#39;m able to build successfully. When I try to run &amp;quot;make flash&amp;quot; or &amp;quot;make flash_softdevice&amp;quot;, I get error nrfjprog command not found, error 127. I have double checked that nrfjprog is in my path, and I am able to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Jun 2016 03:50:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12622/sdk11-gcc-linux-error-127-for-nrfjprog-closed" /><item><title>RE: [SDK11][GCC][LINUX] Error 127 for nrfjprog [closed]</title><link>https://devzone.nordicsemi.com/thread/47938?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2016 03:50:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02ed4b0e-c4e2-402f-ad2a-553ded241d69</guid><dc:creator>Lalit Kumar</dc:creator><description>&lt;p&gt;In bash.rc, while changing the path, you should use absolute path like&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$PATH = $PATH:/home/&amp;lt;username/&amp;lt;your dir location&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;What I was doing was this:
&lt;code&gt;$PATH = $PATH:~/&amp;lt;your dir location&amp;gt;&lt;/code&gt;
The latter one gives the error I mentioned. Hope it is clear :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK11][GCC][LINUX] Error 127 for nrfjprog [closed]</title><link>https://devzone.nordicsemi.com/thread/47937?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2016 21:36:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:769ff698-0595-4dd5-ba8f-921b9a81005a</guid><dc:creator>Luckybug</dc:creator><description>&lt;p&gt;What do you mean by adding the path? I think I run into the same problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK11][GCC][LINUX] Error 127 for nrfjprog [closed]</title><link>https://devzone.nordicsemi.com/thread/47936?ContentTypeID=1</link><pubDate>Sat, 19 Mar 2016 08:57:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6229155-4370-4a7c-9cb4-7d696094b942</guid><dc:creator>Lalit Kumar</dc:creator><description>&lt;p&gt;Ok, it was my mistake in adding the path. I added the path using &amp;quot;~&amp;quot; as my home directory, but when I use /home in the path, everything works fine. I guess I need to brush up my linux skills. Thanks for the help anyways.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK11][GCC][LINUX] Error 127 for nrfjprog [closed]</title><link>https://devzone.nordicsemi.com/thread/47935?ContentTypeID=1</link><pubDate>Fri, 18 Mar 2016 14:56:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0af42832-2a7b-4f36-bd0a-e9dec0cc921e</guid><dc:creator>Lalit Kumar</dc:creator><description>&lt;p&gt;I&amp;#39;m able to flash the softdevice and program from terminal by typing the command as provided in the makefile, but am unable to do so using &amp;quot;make flash_softdevice&amp;quot; command. The output is&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Flashing: s130_nrf51_2.0.0_softdevice.hex
nrfjprog --program ../../../../../nordic/nRF5_SDK_11.0.0_89a8197/components/softdevice/s130/hex/s130_nrf51_2.0.0_softdevice.hex -f nrf51 --chiperase
make: nrfjprog: Command not found
make: *** [flash_softdevice] Error 127
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK11][GCC][LINUX] Error 127 for nrfjprog [closed]</title><link>https://devzone.nordicsemi.com/thread/47934?ContentTypeID=1</link><pubDate>Fri, 18 Mar 2016 09:42:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8c34cc0-2357-4125-af84-90981a1ddac3</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;When running &amp;quot;make flash&amp;quot; it should output something like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Flashing: _build/nrf52832_xxaa_s132.hex
nrfjprog --program _build/nrf52832_xxaa_s132.hex -f nrf52  --sectorerase
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If it does not properly detect the .hex file, the output would be like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Flashing: _build/.hex
nrfjprog --program _build/.hex -f nrf52  --sectorerase
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I suspect that you&amp;#39;re seeing an output where &amp;quot;make flash&amp;quot; is unable to find the .hex file properly. You can fix this by manually running nrfjprog, or altering the makefile to provide (assuming that you&amp;#39;re using nRF52832 in this scenario):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;flash: nrf52832_xxaa_s132
	@echo Flashing: $(OUTPUT_BINARY_DIRECTORY)/*.hex
	nrfjprog --program $(OUTPUT_BINARY_DIRECTORY)/*.hex -f nrf52  --sectorerase
	nrfjprog --reset -f nrf52
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Since you&amp;#39;re using linux, it will use the wildcard &amp;quot;*&amp;quot; to find the only .hex file in your _build directory.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>