<?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>&amp;quot;nrfjprog --program ...&amp;quot; resets the micocontroller without --reset option</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107866/nrfjprog---program-resets-the-micocontroller-without---reset-option</link><description>Hi, 
 Aim 
 We&amp;#39;re trying to use nrfjprog on our pre-production line which requires the following steps: 
 
 Erase / Flash / Verify the program
 
 nrfjprog --clockspeed 8000 --verify --program { PATH } --chiperase --qspichiperase 
 
 
 Set device id in</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Feb 2024 09:35:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107866/nrfjprog---program-resets-the-micocontroller-without---reset-option" /><item><title>RE: "nrfjprog --program ..." resets the micocontroller without --reset option</title><link>https://devzone.nordicsemi.com/thread/467093?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2024 09:35:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c32a1d50-f3ab-447b-8c53-32f38641f316</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry, I was context switching and somehow forgot that you had&amp;nbsp;issues on Windows. I am nota ble to reproduce on Windows either though (not even with 10.24.0 which is the same version you write), and have not seen any similar reports.&lt;/p&gt;
&lt;p&gt;Can you try to specify other forms of reset to see if that matters? (like &amp;quot;nrfjprog --debugreset&amp;quot; or &amp;quot;nrfjprog --hardreset&amp;quot;)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "nrfjprog --program ..." resets the micocontroller without --reset option</title><link>https://devzone.nordicsemi.com/thread/467002?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2024 16:53:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:250fa70c-900a-4b59-9cf7-8d33e5ff96e4</guid><dc:creator>motters</dc:creator><description>&lt;p&gt;Can you try and replicate it on Windows? As this is where the issues lies.&lt;/p&gt;
&lt;p&gt;I have no problems with the MacOS version, it behaves correctly. I&amp;#39;m a bit wary right now of updating the mac as that is the working system atm. But we obviously want to use Windows on the product line not a Mac.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Ah thank you i will check this. The behaviour we want is to disable the rest pin on the device. Normally GPIO 18 (i think) is configured as the uC reset pin. I was hoping by setting&amp;nbsp;&amp;nbsp;0x10001200, the pin could be default back to a gpio.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "nrfjprog --program ..." resets the micocontroller without --reset option</title><link>https://devzone.nordicsemi.com/thread/466967?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2024 14:32:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62968152-cf10-472c-89e6-fbf5ce3333c7</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I am not able to reproduce on my end on macOS 14.3. As you are using a quite old nrfjprog on your Mac, can you try updating to the latest? It is paft of &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-command-line-tools/download"&gt;nRF Command Line Tools&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Also, note that this command probably does not do what you think it does:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --memwr 0x10001200 --val 0xFFFFFFFF&lt;/pre&gt;Pin reset is disabled by default, so generally there is no need to touch this register (but if you have firmware that enables pin reset runtime and you don&amp;#39;t want that, you need to modify your firmware to not do it). And if pin reset had been enabled, this would not disable it, as you cannot flip bits from 0 to 1 by writing to flash. If you wanted to disable it by writing, you should write all 0&amp;#39;s instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "nrfjprog --program ..." resets the micocontroller without --reset option</title><link>https://devzone.nordicsemi.com/thread/466906?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2024 10:54:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce3fa4f2-9699-4c06-a4f4-b29977e9a23f</guid><dc:creator>motters</dc:creator><description>&lt;p&gt;On MacOS the reset is not performed [which is correct] (no matter how long we wait after programming), the version info is:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog version: 10.17.0 external
JLinkARM.dll version: 7.92c&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;On Windows (2 PC have been tried; 2 programmers nordic dev board + Segger JLink) the following happens:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Send the programming command&lt;/li&gt;
&lt;li&gt;Programming commands finishes&lt;/li&gt;
&lt;li&gt;For 2-4 seconds the device does not reboot&lt;/li&gt;
&lt;li&gt;The device then reboots&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The version info for the windows PC is:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog version: 10.24.0 external
JLinkARM.dll version: 7.94e&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We&amp;#39;ll test out the work around as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "nrfjprog --program ..." resets the micocontroller without --reset option</title><link>https://devzone.nordicsemi.com/thread/466756?ContentTypeID=1</link><pubDate>Tue, 30 Jan 2024 12:34:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cac08a7c-6573-49b0-a93a-9c1b9fd93c23</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;nrfjprog should not perform a reset unless you have provided an option for that. How do you see that a reset is performed, and which version do you use (both on windows and macOS)?&lt;/p&gt;
&lt;p&gt;(nRF Connect for desktop is a different matter, as that is designed as a simple GUI programming tool but without production programming of high flexibility in mind.)&lt;/p&gt;
&lt;p&gt;As a side note, if you need to work around this issue before it has been properly resolved, it should be possible to add a recover step as step 0 in your sequence, and swap the order of step 1 and 2 and remove&amp;nbsp;--chiperase from step 1. That way, the UICR is programmed before your application runs for the first time, even if it runs before it should.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>