<?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>Failure to flash and to erase</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40453/failure-to-flash-and-to-erase</link><description>Hallo 
 I am using a nrf52832_xxaa (evaluating on a sparkfun board) 
 I am unable to program the application (Im trying to flash a blinky examle) 
 I have tried the S132 version of SDK13,14 and SDK15, but always got a message : 
 **JLink Warning: T-bit</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Nov 2018 20:42:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40453/failure-to-flash-and-to-erase" /><item><title>RE: Failure to flash and to erase</title><link>https://devzone.nordicsemi.com/thread/157595?ContentTypeID=1</link><pubDate>Thu, 15 Nov 2018 20:42:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2987936d-8a17-4f6c-a445-782e016a96b2</guid><dc:creator>Ron</dc:creator><description>&lt;p&gt;Looking again at the wiring I&amp;#39;ve noticed I didn&amp;#39;t connect the Vtg to the Vdd&lt;/p&gt;
&lt;p&gt;Now it seems to work&lt;/p&gt;
&lt;p&gt;Thanks !&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1542314507040v5.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failure to flash and to erase</title><link>https://devzone.nordicsemi.com/thread/157549?ContentTypeID=1</link><pubDate>Thu, 15 Nov 2018 14:30:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aedda021-b152-4a4a-86fa-700ad2d3cd60</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;I see it on the IDCODE. Here&amp;#39;s an example:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-f4cfd51efaba4a31be316a054be6e6ee/pastedimage1542292161840v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;If the IDCODE does not start with 0x2BAetc., then it&amp;#39;s not a Cortex M4 that you&amp;#39;re communicating with.&lt;/p&gt;
&lt;p&gt;Could you show me a picture of the sparkfun module and the physical setup that you have?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failure to flash and to erase</title><link>https://devzone.nordicsemi.com/thread/157539?ContentTypeID=1</link><pubDate>Thu, 15 Nov 2018 14:13:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd1248b4-0dc0-4718-80bb-9c0c2db0a0de</guid><dc:creator>Ron</dc:creator><description>&lt;p&gt;Thanks for your answer,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;how do you understand from the screenshot that it&amp;#39;s&amp;nbsp;&lt;span&gt;Cortex M0 ? how would Cortex M4 look like ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am seeing the same information wheter I connect the external NRF51 device or remove it and try to program the on board (NRF51 DK) processor,&amp;nbsp; they both NRF51 but shouldn&amp;#39;t they have different information.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am able to program and debug them both, however with the NRF1 for some reason blinky is not connecting with the app..&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Connecting the sparkfun also does not change anything., same SN, same IDCODE..&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Eran&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failure to flash and to erase</title><link>https://devzone.nordicsemi.com/thread/157484?ContentTypeID=1</link><pubDate>Thu, 15 Nov 2018 12:08:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de664483-e9b1-420e-842f-036f28bbc488</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>[quote user="EranR"]* I was connecting it to an NRF52832 device, with a NRF52 project from the SDK15 package[/quote]
&lt;p&gt;&amp;nbsp;The screenshot shows the device as a Cortex M0 device, not a Cortex M4 device. If you are using the nRF51-DK as a programmer, you are detecting the nRF51xxx device on the DK, not the external board.&lt;/p&gt;
&lt;p&gt;Try powering your external board via the &amp;quot;VDD_NRF&amp;quot; from the nRF5x-DK to ensure that the voltage levels are the same.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you upload a picture of your setup? Are you using P19 or P20 as the debug out?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failure to flash and to erase</title><link>https://devzone.nordicsemi.com/thread/157350?ContentTypeID=1</link><pubDate>Wed, 14 Nov 2018 15:12:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b9ae30a-e4b3-4557-94c3-f51c318eb44b</guid><dc:creator>Ron</dc:creator><description>&lt;p&gt;* I was connecting it to an NRF52832 device, with a NRF52 project from the SDK15 package&lt;/p&gt;
&lt;p&gt;* Yes, I used --eraseall from &lt;span&gt;nrfjprog&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;* I could not program any example&amp;nbsp;&lt;/p&gt;
&lt;p&gt;* if there is a porblem with the connection how am I succeeding programming using&amp;nbsp;&lt;span&gt;nrfjprog&lt;/span&gt;&lt;span&gt;&amp;nbsp; ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failure to flash and to erase</title><link>https://devzone.nordicsemi.com/thread/157294?ContentTypeID=1</link><pubDate>Wed, 14 Nov 2018 12:48:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ec9b93c-d734-40e6-80ad-f979e638e42a</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]&lt;p&gt;&lt;/p&gt;&lt;p&gt;this s the debug J link addapter info and sw device idcode :&lt;/p&gt;&lt;p&gt;&lt;img style="cursor:zoom-in;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-f4cfd51efaba4a31be316a054be6e6ee/pastedimage1542142689335v3.png" alt=" " /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Just to confirm: The CPU core info here indicates a nRF51 device is found (Cortex M0 CPU). Is this the section from your nRF52-based project, or from your test project targeting a nRF51 device?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]&lt;p&gt;&lt;/p&gt;&lt;p&gt;using nrfjprog I have succesfully erased the flash :eraseall, and programmed&amp;nbsp;the softdevice :&amp;nbsp;s132_nrf52_6.0.0_softdevice.hex&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I have also tried to eraseall through the KEIL but was unsuccesful at that.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;ERASEALL from Keil will only erase the application part. In order to do an erase-all, nrfjprog has to be used. Keil has an in-built protection in the flashing algorithm to not try to overwrite the softdevice, but your addressing looks to be good here, unless you have manually specified a scatter file (.sct file) under &amp;quot;project settings -&amp;gt; linker&amp;quot; tab. Do you see this issue with other examples as well, or is this programming issue related to one example only?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;span style="color:#993300;"&gt;**JLink Warning: T-bit of XPSR is 0 but should be 1. Changed to 1.&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#993300;"&gt;Full Chip Erase Failed!&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#993300;"&gt;Error: Flash Download failed - &amp;quot;Cortex-M4&amp;quot;&lt;/span&gt;[/quote]
&lt;p&gt;This is a &amp;quot;generic&amp;quot; failure, which is normally due to bad contact, not powering the nRF, switching SWDCLK/SWDIO, or similar. Have you double-checked your connection, and that the nRF is powered with 3.3V?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>