<?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>[SOLVED] nrfjprog.exe &amp;quot;ERROR: Two arguments were provided that cannot be combined.&amp;quot;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10514/solved-nrfjprog-exe-error-two-arguments-were-provided-that-cannot-be-combined</link><description>nrfjprog is reporting known errors while I&amp;#39;m trying to burn the pca10028 dual_bank_ble_s110 bootloader to the nRF51-DK. 
 &amp;quot;.\_build\nrf51422_xxac.axf&amp;quot; - 0 Error(s), 0 Warning(s).
Build Time Elapsed: 00:00:06
nrfjprog.exe --reset --program &amp;quot;C:\Development</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Dec 2015 19:43:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10514/solved-nrfjprog-exe-error-two-arguments-were-provided-that-cannot-be-combined" /><item><title>RE: [SOLVED] nrfjprog.exe "ERROR: Two arguments were provided that cannot be combined."</title><link>https://devzone.nordicsemi.com/thread/39097?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2015 19:43:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:029b59a9-b6c6-43da-be34-8f7b1184ff79</guid><dc:creator>Nate</dc:creator><description>&lt;p&gt;Ah! okay. That is much less critical than I initially thought. Thanks for your help, Vidar :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SOLVED] nrfjprog.exe "ERROR: Two arguments were provided that cannot be combined."</title><link>https://devzone.nordicsemi.com/thread/39098?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2015 10:07:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:355804a4-a6fa-42a2-bfc9-1c9ec44ab633</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Reset is required after programming the device to start program execution the first time (pin reset or power-cycle). However, it will not be needed for subsequent uploads using DFU.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SOLVED] nrfjprog.exe "ERROR: Two arguments were provided that cannot be combined."</title><link>https://devzone.nordicsemi.com/thread/39099?ContentTypeID=1</link><pubDate>Sun, 29 Nov 2015 14:52:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47d5a14c-bde5-442b-b35a-8157ffbed4a4</guid><dc:creator>Nate</dc:creator><description>&lt;p&gt;While trying to wrap my head around this, I think I misunderstood the severity of the issue. If I understand correctly, the nRF51-DK will only need to be manually power-cycled after the bootloader is programmed to flash. Subsequently, every time a new firmware upgrade is delivered via DFU, it is NOT necessary to manually power-cycle the board. Is that right? We are not including a power switch in our final design. So you can imagine it is a critical issue for our use case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SOLVED] nrfjprog.exe "ERROR: Two arguments were provided that cannot be combined."</title><link>https://devzone.nordicsemi.com/thread/39096?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2015 10:20:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66f93a8d-f457-4550-b436-262761fdaf57</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;First some background on why we use nrjprog with the bootloader examples; the &amp;quot;target driver&amp;quot;(JLINK) (true for nRF51) doesn&amp;#39;t support writing to the UICR registers as opposed to nrfjprog which is needed to set the UICR.BOOTLOADERADDR register(&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.130.sds.v1.0.0/mbr_bootloader/mbr_sd_reset_behavior.html?cp=2_7_2_0_9_2"&gt; MBR Reset behavior&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Earlier nrfjprog supported both --reset and --program arguments to be passed in the same instance, but this had to be removed in the latest versions. The reset argument was therefore removed in the SDK 9.0.0. and 10.0.0 release. Thus, requiring a manual reset to start execution after programming.&lt;/p&gt;
&lt;p&gt;1). Unfortunately, I don&amp;#39;t see a way to automatically reset the device after programming. But there are some options:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Reset the board after programming by pressing the reset button on the kit.&lt;/li&gt;
&lt;li&gt;Create a reset command in Keil: In the file menu, select tools -&amp;gt; customize Tools menu. Here you can create a new command that resets the chip using nrfjfprog. Useful if there&amp;#39;s no reset pin on the board.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3036.Capture.PNG" alt="image description" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;You only need to set the UICR register the first time, it will only be cleared if you do a complete chip erase. So you can use the &amp;quot;target driver&amp;quot; on subsequent uploads. One advantage with this is that the target driver doesn&amp;#39;t require the flash to be erased beforehand.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2117.Capture2.PNG" alt="image description" /&gt;&lt;/p&gt;
&lt;ol start="2"&gt;
&lt;li&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote&gt;
&lt;p&gt;The second proposed solution
recommended using the bootloader from
the 8.0 SDK. So I downloaded
nRF51_SDK_8.0.0_5fc2c3a.zip and
nRF51_SDK_8.1.0_b6ed55f.zip and tried
both.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;What I meant to say is that the we generally recommend to use the latest SDK when possible, which at the moment is v.10.0.0.  Bootloader in releases prior to SDK 8.0.0 did not implement the Service changed characteristic mentioned in the thread i linked to.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>