<?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>Keil Can Erase nRF51822 but not Program?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91/keil-can-erase-nrf51822-but-not-program</link><description>I find this strange but I can program the HRM demo fine but with my own code it compiles with no errors or warnings but will not program with Error: Flash Download failed - &amp;quot;Cortex-M0&amp;quot;. 
 The funny thing is after getting that error i can still erase</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Aug 2013 02:03:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91/keil-can-erase-nrf51822-but-not-program" /><item><title>RE: Keil Can Erase nRF51822 but not Program?</title><link>https://devzone.nordicsemi.com/thread/488?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2013 02:03:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b91d4f0-9bb7-4292-be6f-d7162f62c86e</guid><dc:creator>Bastiaan</dc:creator><description>&lt;p&gt;I need  nRFgo Studio.must use nRFgo Studio &amp;quot;Erase all&amp;quot;. hope ok !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keil Can Erase nRF51822 but not Program?</title><link>https://devzone.nordicsemi.com/thread/489?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2013 02:03:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86ee3fef-1d23-4929-a703-788cf1493d11</guid><dc:creator>Guest</dc:creator><description>&lt;p&gt;I need  nRFgo Studio.must use nRFgo Studio &amp;quot;Erase all&amp;quot;. hope ok !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keil Can Erase nRF51822 but not Program?</title><link>https://devzone.nordicsemi.com/thread/491?ContentTypeID=1</link><pubDate>Wed, 10 Jul 2013 19:33:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e084febd-9bd0-4a81-a8a4-5e472d5c5afa</guid><dc:creator>Nick</dc:creator><description>&lt;p&gt;So that was a problem as well. The reason i couldnt program my code even though the HRM code worked was because for some reason the Read Only Memory Areas options changed from the HRM project when i copied it (not sure why). Once i put them back to the same values as the HRM code it worked fine.&lt;/p&gt;
&lt;p&gt;On that note, how can we calculate the Read Only Memory Areas? Im not sure what is IROM1,IROM2,IRAM1,IRAM2?  I didnt see anything on this in the spec sheet for the nRF51822.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keil Can Erase nRF51822 but not Program?</title><link>https://devzone.nordicsemi.com/thread/490?ContentTypeID=1</link><pubDate>Wed, 10 Jul 2013 05:44:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04cdcb18-6401-4cef-8df2-1ad0ab5d78e3</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Most likely your device has gone into deep sleep mode. In this mode the debugger interface is detached, meaning you will not be able to program it properly (known issue with the current HW revision).
Usually, if you unplug the USB and then program it after plugging it in again, it will be active.&lt;/p&gt;
&lt;p&gt;If that does not work, use nrfjprog.exe to recover your device (will erase softdevice as well):
nrfjprog --recover -s &lt;/p&gt;
&lt;p&gt;This sequence can be done through the nRFgo Studio GUI tool as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>