<?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 -e&amp;quot; renders our board unconfigurable</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67181/nrfjprog--e-renders-our-board-unconfigurable</link><description>We have a custom PCB fitted with the nRF52840 SOC, we&amp;#39;ve previously erased and written to it via the nRF programmer tool. However, when trying to use the nrfjprog -e command it erases the board successfully but any subsequent attempts to reach the board</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Oct 2020 09:07:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67181/nrfjprog--e-renders-our-board-unconfigurable" /><item><title>RE: "nrfjprog -e" renders our board unconfigurable</title><link>https://devzone.nordicsemi.com/thread/275294?ContentTypeID=1</link><pubDate>Fri, 16 Oct 2020 09:07:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de22691c-b968-4cae-8339-61f9e1ef1475</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;&lt;span&gt;Which nrfjprog version are you using?&amp;nbsp;Can you update it to the newest version.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Could you try the workaround I mentioned in a previous reply, and just to be sure, could you pass the --family nrf52 argument with the log option&amp;nbsp;like this and upload the log after you&amp;#39;ve applied the workaround:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;nrfjprog --family nrf52 --eraseall --log&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "nrfjprog -e" renders our board unconfigurable</title><link>https://devzone.nordicsemi.com/thread/275290?ContentTypeID=1</link><pubDate>Fri, 16 Oct 2020 08:56:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2080e2be-5cc2-46da-81cb-2fdd4c476608</guid><dc:creator>ToBe</dc:creator><description>&lt;p&gt;Thanks for the suggestion but as stated in the original post, all the nrfjprog commands (including --recover) lead to the same error message.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;ERROR: nrfjprog could not identify the target device. This may be due to an&lt;/span&gt;&lt;br /&gt;&lt;span&gt;ERROR: invalid family argument, a problem with your device, or nrfjprog may&lt;/span&gt;&lt;br /&gt;&lt;span&gt;ERROR: not yet support your device.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;ERROR: Please check the family argument passed, or upgrade nrfjprog to a more&lt;/span&gt;&lt;br /&gt;&lt;span&gt;ERROR: recent version.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "nrfjprog -e" renders our board unconfigurable</title><link>https://devzone.nordicsemi.com/thread/275136?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 14:02:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3f98213-bbb1-4098-af9f-7f56d99d159a</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;aha, seems like you&amp;#39;re also using the APPROTECT feature. The APPROTECT feature secures the IC from any external read, erase, or write operation after it has been activated. It does this by disabling the debugging interface. The only way the device can be recovered after the APPROTECT has been activated is by issuing a nrfjprog --recover command. Note that this will erase everything on the chip and set it back to default mode.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "nrfjprog -e" renders our board unconfigurable</title><link>https://devzone.nordicsemi.com/thread/275128?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 13:48:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:236e2df9-a547-4428-8f96-466e85f562ee</guid><dc:creator>ToBe</dc:creator><description>&lt;p&gt;Yes, configured for normal mode.&amp;nbsp;&lt;br /&gt;We&amp;#39;re not sure how to short VDD but we&amp;#39;ll look into it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We noticed that when trying to compile via Segger Studio, we get the following message (If we accept it just carries on to give the &amp;quot;no idcode...&amp;quot; error) :&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/960x720/__key/communityserver-discussions-components-files/4/pastedimage1602769652740v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "nrfjprog -e" renders our board unconfigurable</title><link>https://devzone.nordicsemi.com/thread/275092?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 12:48:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00911460-0539-4d79-a892-085fdc7853bb</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hmm, that should support DUTs at 1V8. Nevertheless could you try the suggested method in my previous reply. And address this question:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Jared"]How was the board configured when you initially programmed it? Normal mode? [/quote]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "nrfjprog -e" renders our board unconfigurable</title><link>https://devzone.nordicsemi.com/thread/275074?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 12:11:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ef3516e-4510-4f8a-8673-2104c51ba035</guid><dc:creator>ToBe</dc:creator><description>&lt;p&gt;We&amp;#39;re using a&amp;nbsp;Segger Jlink Educational version.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "nrfjprog -e" renders our board unconfigurable</title><link>https://devzone.nordicsemi.com/thread/275053?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 11:31:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbffd995-a0e3-4a42-bad4-25703ba73b76</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Which J-link model are you using?&amp;nbsp;Maybe it can&amp;#39;t program DUTs at 1V8. It doesn&amp;#39;t seem that you have anything that is dependent on the voltage being 3V3 in your design that would hinder re-flashing.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you try shorting VDD and VDDH (configure the board in Normal mode) and supply the device directly with 3V3, which is still within&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/power.html?cp=4_0_0_4_2_7_0#unique_734226783"&gt;Normal mode conditions.&lt;/a&gt;&amp;nbsp;Then proceed with programming the board with an application that writes to the UICR?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "nrfjprog -e" renders our board unconfigurable</title><link>https://devzone.nordicsemi.com/thread/275039?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 10:56:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d5f1129-0c9c-481a-b7ce-63cc88742cbf</guid><dc:creator>ToBe</dc:creator><description>&lt;p&gt;Hey, schematics attached.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/960x720/__key/communityserver-discussions-components-files/4/pastedimage1602759341053v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/960x720/__key/communityserver-discussions-components-files/4/pastedimage1602759361725v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "nrfjprog -e" renders our board unconfigurable</title><link>https://devzone.nordicsemi.com/thread/275010?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 08:56:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aaa60b3f-1b9d-43a9-a9d8-1df4f7f7145c</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hmm..&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So you&amp;#39;re not managing to write to the UICR after the erase, and you&amp;#39;re still not able to identify the board with nrfjprog?&amp;nbsp;How is your custom board dependent on the VDD being 3V3? What happens when REG0 is 1.8V, is there some external part on your board that is supplied by the REG0 output of the nRF52840? Would not supplying this properly block SWD from communication with nRF52840 on your board? As you can tell, I could need a better overview of your board, a Schematic would help alot!&lt;/p&gt;
[quote user="ToBe"]We did set the board in High voltage mode&amp;nbsp;prior to using erase[/quote]
&lt;p&gt;How was the board configured when you initially programmed it? Normal mode? Is there an option to short VDD and VDDH which would effectively set the board in Normal mode and then flash the application that writes to the REG0 register?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "nrfjprog -e" renders our board unconfigurable</title><link>https://devzone.nordicsemi.com/thread/274919?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 13:47:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b8ff136-d72b-491b-9a8b-797f94ca014a</guid><dc:creator>ToBe</dc:creator><description>&lt;p&gt;Your suspicion is spot on. We did set the board in High voltage mode&amp;nbsp;prior to using erase. We set REG0&amp;nbsp;with the command:&lt;/p&gt;
&lt;p&gt;nrfjprog --memwr 0x10001304 (UICR.REGOUT0 address) --val 0xFFFFFFFD (3V3 setting)&lt;/p&gt;
&lt;p&gt;Trying to set it after erase results in:&lt;/p&gt;
&lt;p&gt;&lt;!--StartFragment --&gt;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;ERROR: Low voltage detected at the target. Please make sure the device is&lt;br /&gt;ERROR: properly supplied.&lt;/span&gt;&lt;/div&gt;
&lt;p&gt;&lt;!--EndFragment --&gt;&lt;/p&gt;
&lt;p&gt;So, what do you suggest doing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "nrfjprog -e" renders our board unconfigurable</title><link>https://devzone.nordicsemi.com/thread/274877?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 12:06:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7668230d-3731-470f-9097-aaffa843c33d</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;My initial suspicion is that your design is not using the default output value of REG0 which is 1.8V. A nrfjprog --eraseall command will erase everything from the IC including the UICR. The UICR contains the REG0 register which sets the output of the first regulator. Are you using the board in High voltage mode and have you configured REG0 to something else then the default value?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>