<?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>Flash download failed - &amp;quot;Cortex-M4&amp;quot;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18697/flash-download-failed---cortex-m4</link><description>I successfully used my nrf52DK with latest production SD 132 and latest SDK (12.2.0), everything is on latest Keil v5. Then I needed to program another board (nRF51 Dongle) by using the same Keil, I failed with that and eventually wanted to switch back</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Jan 2017 10:14:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18697/flash-download-failed---cortex-m4" /><item><title>RE: Flash download failed - "Cortex-M4"</title><link>https://devzone.nordicsemi.com/thread/72200?ContentTypeID=1</link><pubDate>Mon, 02 Jan 2017 10:14:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a6f1800-1048-4a21-9b11-b0188cc1b5be</guid><dc:creator>SergeyP</dc:creator><description>&lt;p&gt;I am using the sample from nRF5_SDK_12.2.0_f012efa\examples\ble_peripheral\ble_app_template\nRF5_SDK_12.2.0_f012efa\examples\ble_peripheral\ble_app_template\pca10040\s132\arm5_no_packs, it uses Soft Device and my DK is loaded with that (S132) softdevice. The project worked with no problems, the problems started appearing AFTER I opened and tried to use (with my NRF51 Dongle) the project from nRF5_SDK_12.2.0_f012efa\examples\ble_peripheral\ble_app_template\pca10028\s130\arm5_no_packs&lt;/p&gt;
&lt;p&gt;which is also leveraging SD but another one, so, once I returned to the first project (for 10040) it started producing those symptoms I described in the question. Now I looked into another example and coplied IROM1, IRAM1 settings from there to be 0x1F000/0x61000			0x20002128/0xDED8
My project can now be loaded into the device, the problem is fixed. Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash download failed - "Cortex-M4"</title><link>https://devzone.nordicsemi.com/thread/72199?ContentTypeID=1</link><pubDate>Mon, 02 Jan 2017 08:23:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a1213f5-5de9-42d6-a9f7-388d85018144</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;According to the IROM settings in Keil you are trying to flash an example that is not using the SoftDevice (IROM1 Start at 0x0 and IRAM1 Start at 0x20000000). If you previously loaded the nRF52-DK with the S132 Softdevice, the SoftDevice will be located in the flash region you are trying to write your application to. You will have to erase the SoftDevice, or adjust the IROM/IRAM settings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash download failed - "Cortex-M4"</title><link>https://devzone.nordicsemi.com/thread/72198?ContentTypeID=1</link><pubDate>Mon, 02 Jan 2017 05:13:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92a648b7-7a45-4b4c-b216-859a2d8fa331</guid><dc:creator>SergeyP</dc:creator><description>&lt;p&gt;I don&amp;#39;t know what those settings should look like, I am just opening Keil project for an appropriate target (10028, 10040) and I expect each project file has everything it needs to correctly setup Keil. I have added Debug settings screenshots for both of my cases into the original question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash download failed - "Cortex-M4"</title><link>https://devzone.nordicsemi.com/thread/72197?ContentTypeID=1</link><pubDate>Sun, 01 Jan 2017 15:07:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3ff9b52-cb56-4a33-a657-1f5982d08b3e</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Have you check the settings the debug section.  It may not changed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash download failed - "Cortex-M4"</title><link>https://devzone.nordicsemi.com/thread/72196?ContentTypeID=1</link><pubDate>Sun, 01 Jan 2017 12:20:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c36c3cbd-9ed2-43b7-b239-2e85a22dc1e3</guid><dc:creator>SergeyP</dc:creator><description>&lt;p&gt;Yes, I knew about the difference and I did take that into account while setting the target, I just updated my original question with 2 additional screenshots showing more details.
By the way, my Dongle is actually nRF51&lt;strong&gt;4&lt;/strong&gt;22.
To reiterate the issue I am experiencing: Keil settings got somehow corrupted once I just loaded another project for a different (10028) target, once I returned back to my original project with 10040 target I got the issue described in my original question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash download failed - "Cortex-M4"</title><link>https://devzone.nordicsemi.com/thread/72195?ContentTypeID=1</link><pubDate>Sat, 31 Dec 2016 17:15:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2174b668-b281-4466-a062-dc3ea6f93759</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;The nRF51 dongle and the nRF52DK are not the same chip.  The dongle is nRF51822 while the nRF52DK is the nRF52832.  2 different MCU&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>