<?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>Example program doesn&amp;#39;t start execution</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5748/example-program-doesn-t-start-execution</link><description>This are the contents of disassembly window on all optimisation levels. Program is stuck switching between two operations: 
 MOVS r0, r0
DCD 0xFFFFFFFF
 
 I&amp;#39;m running ble_app_template on nRF51 DK (nRF51422_QFAC). What&amp;#39;s going on?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Feb 2015 11:05:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5748/example-program-doesn-t-start-execution" /><item><title>RE: Example program doesn't start execution</title><link>https://devzone.nordicsemi.com/thread/20086?ContentTypeID=1</link><pubDate>Thu, 26 Feb 2015 11:05:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee7d74a6-a4d7-4861-b896-fc385ca17c44</guid><dc:creator>andrey</dc:creator><description>&lt;p&gt;Got it. I though Keil we&amp;#39;re supposed to load SoftDevice and then load the application on top of it. As it turns out SofDevice can only be programmed via nRFgo Studio?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example program doesn't start execution</title><link>https://devzone.nordicsemi.com/thread/20085?ContentTypeID=1</link><pubDate>Thu, 26 Feb 2015 10:50:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a306f1cb-c3f4-4c6d-bb7a-ddd87e4eae72</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;There are two types of examples in the SDK:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Peripheral examples: Those do not require softdevice and are therefore not using BLE or ANT. Those examples are flashed to an empty nRF51 chip and are flashed at the beginning of the flash memory, at address 0x00000000.&lt;/li&gt;
&lt;li&gt;Softdevice examples: Those require softdevice to be flashed to the chip first. Then you flash your application. For instructions how to do that, see &lt;a href="http://developer.nordicsemi.com/nRF51_SDK/doc/7.2.0/s110/html/a00010.html"&gt;this link&lt;/a&gt;. The ble_app_template should be used together with the S110 softdevice. The S110 softdevice is flased to start of flash at memory location 0x00000000 and occupies flash space up to 0x00016000. The ble_app_template is then flashed on top of the softdevice, i.e. at memory location 0x16000. You can also see this in nRFgo Studio like in the image below.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Capture-_2D00_-nRFgo-Studio-_2D00_-size-of-S110-softdevice.JPG" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;This is reflected in the ROM setting in Keil in the ble_app_template example&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Capture-_2D00_-Keil-ROM-and-RAM-settings.JPG" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example program doesn't start execution</title><link>https://devzone.nordicsemi.com/thread/20084?ContentTypeID=1</link><pubDate>Wed, 25 Feb 2015 17:15:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4b4b8e7-94b7-4216-a052-5b59a459c0dc</guid><dc:creator>Sean</dc:creator><description>&lt;p&gt;Typically a softdevice will be installed in the IROM occupying the gap - and presumably including the reset vector which is missing here. Different softdevices take slightly different regions of IRAM and IROM - and also protect themselves from being erased by splitting the IROM into 2 banks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example program doesn't start execution</title><link>https://devzone.nordicsemi.com/thread/20083?ContentTypeID=1</link><pubDate>Wed, 25 Feb 2015 14:55:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f397561-bb43-45ad-9724-a58dcc107f2e</guid><dc:creator>andrey</dc:creator><description>&lt;p&gt;Solved by moving IROM1 Start Address from 0x16000 to 0x0. Not sure what reason was there for having it so high.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>