<?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>Flashing NRF51822 with S130 and (almost) complete SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10335/flashing-nrf51822-with-s130-and-almost-complete-sdk</link><description>We&amp;#39;re using the NRF51822 and the S130 with V9.0 SDK, and we&amp;#39;re using most of the features of the SDK for our Firmware; but I&amp;#39;m running into a problem flashing the device on the Keil IDE. 
 We&amp;#39;re able to flash both the S130 to the device and the Firmware</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Nov 2015 10:44:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10335/flashing-nrf51822-with-s130-and-almost-complete-sdk" /><item><title>RE: Flashing NRF51822 with S130 and (almost) complete SDK</title><link>https://devzone.nordicsemi.com/thread/38369?ContentTypeID=1</link><pubDate>Thu, 19 Nov 2015 10:44:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2e4173c-3866-4cbf-a5b9-2da41813ad49</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;what are the versions of softdevice and chip your are using?
nrfjprog will not allow you to write on dirty pages, you need to erase chip, program softdevice and then program the application. Everything will be flashed correctly if softdevice and application are not overlapping. If they do, then nrfjprog will give error like the one you mentioned.&lt;/p&gt;
&lt;p&gt;Keil on the other part will be able to write on application dirty pages, this means that an application can be flashed to already flashed memory without the need of explicit erase operation. This is because the flash algorithm provided by nordic for Keil will internally erase necessary flash pages.
On the other hand this is not the same if Keil sees that the application is trying to write to the softdevice flash area. It will then fail.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing NRF51822 with S130 and (almost) complete SDK</title><link>https://devzone.nordicsemi.com/thread/38368?ContentTypeID=1</link><pubDate>Wed, 18 Nov 2015 22:46:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a899644f-9a12-4994-90f9-e9beb8e2c375</guid><dc:creator>gortok</dc:creator><description>&lt;p&gt;@shibshab Yes; I get a different error; It fails to flash, but doesn&amp;#39;t mention anything about trying to overwrite protected memory.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing NRF51822 with S130 and (almost) complete SDK</title><link>https://devzone.nordicsemi.com/thread/38367?ContentTypeID=1</link><pubDate>Wed, 18 Nov 2015 19:47:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac8226f7-89f1-47ce-ac9a-f3caa8222dab</guid><dc:creator>shibshab</dc:creator><description>&lt;p&gt;Have you tried using the built in Keil flasher instead of nrfjprog? You can choose this in &amp;#39;Options for Target&amp;#39; -&amp;gt; &amp;#39;Utilities&amp;#39; -&amp;gt; &amp;#39;Use Target Driver for Flash Programming&amp;#39; and set it up to use the JLink driver with the &amp;#39;SW&amp;#39; option.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>