<?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>NRF51 DK: Failed to connect to target, no Idcode detected</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54801/nrf51-dk-failed-to-connect-to-target-no-idcode-detected</link><description>I did a chip-erase on the NRF51 DK. However, when I tried to reconnect and program the DK I get the error: Failed to connect to target, no Idcode detected 
 
 I tried doing nrfjprog --recover and the log did not report any error. But I still get the same</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Dec 2019 19:40:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54801/nrf51-dk-failed-to-connect-to-target-no-idcode-detected" /><item><title>RE: NRF51 DK: Failed to connect to target, no Idcode detected</title><link>https://devzone.nordicsemi.com/thread/223161?ContentTypeID=1</link><pubDate>Mon, 02 Dec 2019 19:40:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8d1f116-d287-464f-a45d-04a92a7da837</guid><dc:creator>Sigurd</dc:creator><description>[quote user="thoric_fish"]We tried doing the erase and recover commands through nrfjprog as you suggested before, but these error messages still appear.[/quote]
&lt;p&gt;&amp;nbsp;What did&amp;nbsp;nrfjprog -f NRF51 --recover return ?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Have you measured the supply voltage on the kit? It should be somewhere between 2.8V-3.3V.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Have you tried to press the IF BOOT/RESET button while power cycling the kit? It should then show up as a Removable Storage Device named &amp;quot;BOOTLOADER&amp;quot;. Then you can drag-and-drop the J-LINK interface MCU firmware found &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Kits/nRF51-DK/Download#infotabs"&gt;here&lt;/a&gt;(v170724) onto the storage device to reprogram the JLINK firmware.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Could you upload the log that is generated, when you run&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog -f NRF51 --recover --log&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51 DK: Failed to connect to target, no Idcode detected</title><link>https://devzone.nordicsemi.com/thread/222930?ContentTypeID=1</link><pubDate>Mon, 02 Dec 2019 03:58:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71265c0d-5d40-4c46-9870-643e6f4fcc09</guid><dc:creator>thoric_fish</dc:creator><description>&lt;p&gt;Hi we thought this solved the issue, but today when we tried flashing the uart example from the peripheral examples of SDK v12.1, we got the following error message in Keil.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/1104.image.png" /&gt;&lt;/p&gt;
&lt;p&gt;We also tried flashing the sample example through nrfconnect but got this error message:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/1184.image-_2800_1_2900_.png" /&gt;&lt;/p&gt;
&lt;p&gt;We tried doing the erase and recover commands through nrfjprog as you suggested before, but these error messages still appear. We searched through other Devzone posts where other users had&amp;nbsp;similar &amp;quot;Flash Download failed - &amp;quot;Cortex-M0&amp;quot; &amp;quot; issues due to not having the correct SoftDevice on their boards. But the UART peripheral example we are flashing should not be using SoftDevice.&lt;/p&gt;
&lt;p&gt;Do you have any suggestions? Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51 DK: Failed to connect to target, no Idcode detected</title><link>https://devzone.nordicsemi.com/thread/222163?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2019 16:16:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b01405c7-1f51-4a07-9322-b78f77b1c2c8</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Try this:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog -f NRF51 -e
nrfjprog -f NRF51 --program softdevice.hex --verify
nrfjprog -f NRF51 --program application.hex --sectorerase --verify&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If&amp;nbsp;nrfjprog -f NRF51 --e fails, then try this instead:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog -f NRF51 --recover&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51 DK: Failed to connect to target, no Idcode detected</title><link>https://devzone.nordicsemi.com/thread/222158?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2019 15:49:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e16d0e41-af2d-4e2c-85cc-1884070a4c6d</guid><dc:creator>thoric_fish</dc:creator><description>&lt;p&gt;When we check the DK board we see that&amp;nbsp;&lt;span&gt;SB9 has never been cut, there&amp;#39;s a short across P22.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We also tried to do&amp;nbsp;nrfjprog -f NRF51 --program application.hex --verify. But here is the error message that was returned.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/4135.image.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Do you have any suggestions? Thank you.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51 DK: Failed to connect to target, no Idcode detected</title><link>https://devzone.nordicsemi.com/thread/221914?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2019 15:36:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8c3d4f1-39d7-4ec7-aea3-b54dd995e58c</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you done any current measurements on the DK recently ? If yes, make sure that you short / set a jumper on P22.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-a8143738c4be4bfd995e919a5698b2d3/pastedimage1574696145037v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Could you add --verify to the nrfjprog&amp;nbsp;program command, i.e.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog -f NRF51 --program application.hex --verify&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Do you then get &amp;quot;Verified OK.&amp;quot; returned ?&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-a8143738c4be4bfd995e919a5698b2d3/pastedimage1574696226594v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Could you try to install the latest &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Command-Line-Tools"&gt;nRF-Command-Line-Tools&lt;/a&gt;&amp;nbsp;? Note that &amp;quot;&lt;span&gt;SEGGER J-Link software and documentation pack&amp;quot; is&amp;nbsp;included in the Windows installer.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>