<?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>Flashing using Eclipse</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22777/flashing-using-eclipse</link><description>Hi 
 I have setup and configured Eclipse using the tutorial and all seems to be good, except, I cant flash the binary to the chip. Here is my error when calling flash: 
 
 Flashing: _build/nrf52840_xxaa.hex 
 nrfjprog --program _build/nrf52840_xxaa</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Jun 2017 13:02:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22777/flashing-using-eclipse" /><item><title>RE: Flashing using Eclipse</title><link>https://devzone.nordicsemi.com/thread/89538?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2017 13:02:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bd61c47-7e68-44dd-bc7c-c53821105107</guid><dc:creator>Tielman</dc:creator><description>&lt;p&gt;The location combined with Kristins suggestion of specifying the family as UNKNOWN worked&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing using Eclipse</title><link>https://devzone.nordicsemi.com/thread/89537?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2017 13:01:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd4c1d28-35dc-4058-8191-d33ff2f7bd7e</guid><dc:creator>Tielman</dc:creator><description>&lt;p&gt;Ok...I simply deleted the old nrfjprog and now it works! Thanks a mill guys!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing using Eclipse</title><link>https://devzone.nordicsemi.com/thread/89536?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2017 12:59:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54aee454-47bf-4c74-85c4-86426ce44539</guid><dc:creator>Tielman</dc:creator><description>&lt;p&gt;Ah, thanks David...that makes sense. I did not assume that the actual nrfjprog tool version is the same as the tools package.&lt;/p&gt;
&lt;p&gt;I have no idea where in eclipse to set this. The correct path is in my Environment PATH variable, yet, when I call nrfjprog from command prompt, it still calls it from the old location?! This is probably the problem hey? How do I fix this if it is correctly specified in the PATH variable?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing using Eclipse</title><link>https://devzone.nordicsemi.com/thread/89535?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2017 12:49:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4af894c9-33b2-47d2-b79c-933dfa245d39</guid><dc:creator>David Garc&amp;#237;a Polo</dc:creator><description>&lt;p&gt;You installed 9.5.0 but your eclipse is still using the old version. Make certain you use the version of the nrfjprog that you want.&lt;/p&gt;
&lt;p&gt;It is complaining that it does not know the -f parameter, since 5.1.xxx did not know about 52 devices and there was no family parameter.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing using Eclipse</title><link>https://devzone.nordicsemi.com/thread/89541?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2017 12:39:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a063fb32-ea46-4a4e-8d3f-3a7d7fb6ff60</guid><dc:creator>Tielman</dc:creator><description>&lt;p&gt;For what its worth, I changed the &lt;code&gt;-f UNKNOWN&lt;/code&gt; to &lt;code&gt;--family UNKNOWN&lt;/code&gt; (I just thought what the heck), it then continues on to give the same error for &lt;code&gt;--sectorerase&lt;/code&gt;: &lt;code&gt;ERROR: Invalid argument provided: --sectorerase&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;As a matter of fact, simply changing &lt;code&gt;nrfjprog --program $&amp;lt; -f UNKNOWN --sectorerase&lt;/code&gt; to &lt;code&gt;nrfjprog --program $&amp;lt; --sectorerase -f UNKNOWN&lt;/code&gt; in the makefile, throws the same error from -f to --sectorerase:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfjprog --program _build/nrf52840_xxaa.hex --sectorerase -f UNKNOWN 
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;ERROR: Invalid argument provided: --sectorerase.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing using Eclipse</title><link>https://devzone.nordicsemi.com/thread/89540?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2017 12:28:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e35e3aa3-d892-4049-9c1a-bd7d3b3940a4</guid><dc:creator>Tielman</dc:creator><description>&lt;p&gt;I&amp;#39;m on Windows 10&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing using Eclipse</title><link>https://devzone.nordicsemi.com/thread/89543?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2017 12:22:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6838318e-a29d-4e54-81b5-cac378ae56f2</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Do you use Window, OSX ,or Linux?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing using Eclipse</title><link>https://devzone.nordicsemi.com/thread/89542?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2017 12:20:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5c1a0de-940f-4f4b-bfe2-0ef48925878f</guid><dc:creator>Tielman</dc:creator><description>&lt;p&gt;Hi Kristin&lt;/p&gt;
&lt;p&gt;I installed the latest command line tools 9.5.0, by when typing &lt;code&gt;nrfjprog --version&lt;/code&gt;, it returns with &lt;code&gt;5.1.4.44725&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;I made the change you suggested, but still get the error &lt;code&gt;ERROR: Invalid argument provided: -f&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing using Eclipse</title><link>https://devzone.nordicsemi.com/thread/89539?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2017 12:02:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d278ccc3-53c3-461c-8488-04d9e4811930</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Do you have version 9.5.0 of nrfjprog?  In nrfjprog 9.5.0, automatic detection of the device&amp;#39;s family has been added, for automatic detection, the family name &amp;quot;UNKNOWN&amp;quot; should be used:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfjprog --program _build/nrf52840_xxaa.hex  --sectorerase -f UNKNOWN
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Could you check if that works?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>