<?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>First application load</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2918/first-application-load</link><description>I have a &amp;#39;fresh&amp;#39; nRF51822 on a board and it&amp;#39;s not clear to me what procedure I need to follow in order to get it to work. I&amp;#39;m using the Segger programmer and I can program the device through Keil and nRFgo Studio, but I see no activity from the chip.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Jun 2014 22:02:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2918/first-application-load" /><item><title>RE: First application load</title><link>https://devzone.nordicsemi.com/thread/11101?ContentTypeID=1</link><pubDate>Thu, 26 Jun 2014 22:02:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04c8e715-14ad-4d15-bf42-5804e7988545</guid><dc:creator>Sai</dc:creator><description>&lt;p&gt;As soon as you pushed the ble_app_hrs to nrf51822, either LED_0 or _1 (i forget which) should light up. Did that happen?&lt;/p&gt;
&lt;p&gt;If you use Keil to open and compile the ARM project under C:\Keil_v5\ARM\Device\Nordic\nrf51822\Board\pca10001\s110\ble_app_hrs\arm, I don&amp;#39;t think you need to change anything to make it compile in Keil.&lt;/p&gt;
&lt;p&gt;Otoh, if you want to use to gcc and eclipse to make and deploy ble_app_hrs, then you will have to&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Create Makefile.posix in Source\templates\gcc&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create a folder called gcc inside ble_app_hrs. Then create a makefile in gcc with this content: &lt;a href="https://gist.github.com/Bentis/6855716"&gt;gist.github.com/.../6855716&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Then make and deploy to nrf51822 like you would any other gcc project.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: First application load</title><link>https://devzone.nordicsemi.com/thread/11100?ContentTypeID=1</link><pubDate>Wed, 25 Jun 2014 21:00:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23ed6190-4584-4654-a6e5-1a91a539faf2</guid><dc:creator>sd</dc:creator><description>&lt;p&gt;I managed to program the device, but the ble_app_hrs design doesn&amp;#39;t seem to work on the chip. It doesn&amp;#39;t advertise. Have you changed anything in the design to make it work?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: First application load</title><link>https://devzone.nordicsemi.com/thread/11099?ContentTypeID=1</link><pubDate>Wed, 25 Jun 2014 16:57:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3222601c-0ab8-4033-aa21-a08147c390e0</guid><dc:creator>Sai</dc:creator><description>&lt;p&gt;I&amp;#39;ll try to share what I have figured out in the past two days of playing with the nrf51822. You certainly don&amp;#39;t need to program the bootloader but you do need to program at least one GATT service.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;I presume you have the softdevice somewhere on your computer. I used s110 v6.0.0.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;You will have to use Keil to compile at least one GATT service. I compiled ble_app_hrs from &lt;strong&gt;C:\Keil_v5\ARM\Device\Nordic\nrf51822\Board\pca10001\s110\ble_app_hrs&lt;/strong&gt;. Without this step, even if you deploy the softdevice to nrf51822, you won&amp;#39;t see the board from, say, Nordic&amp;#39;s iOS app (available in the App Store.)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I tried to use keil to deploy the softdevice and the GATT service to the board but it kept failing. The error message is covered here: &lt;a href="https://devzone.nordicsemi.com/question/13071/in-keil-i-keep-getting-cannot-load-flash-desciption-error/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Then I used nRFGo to deploy the softdevice first followed by the ble_app_hrs GATT service.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;At this point, LED_0 blinked a few times and the Nordic app in the app store was able to detect the board as a Heart Rate Monitor.&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>