<?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>Running Template app on pca20006 Beacon</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9458/running-template-app-on-pca20006-beacon</link><description>Hi, 
 I&amp;#39;m trying to run the Template app on a beacon but am not having much luck. So far I&amp;#39;ve been able to run it on the nRF51-Dongle but it appears dead on the beacon. 
 To run on the beacon, I&amp;#39;ve made the following changes: 
 
 Changing board to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Sep 2015 04:15:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9458/running-template-app-on-pca20006-beacon" /><item><title>RE: Running Template app on pca20006 Beacon</title><link>https://devzone.nordicsemi.com/thread/34926?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2015 04:15:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b246dd19-de7a-4933-918a-dc73d715402e</guid><dc:creator>GlennEngel</dc:creator><description>&lt;p&gt;The root problem turned out to be that bsp_init() was failing when it was initializing button handlers.  The 10031 Dongle which I had working has BUTTON_NUMBERS 0 in the board file while the beacon 20006 board file has 2 defined.   This in turn fails on the beacon because GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS was set to one but needs to be two for the two beacon buttons.  When the 2nd button was initialized an error would be generated.&lt;/p&gt;
&lt;p&gt;To recap, I was able to get the Template app to run on the beacon after changing the following:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Changing board to BOARD_PCA20006 in the C/C++ Settings&lt;/li&gt;
&lt;li&gt;Changing the ROM Start to 0x1600 to match the s110 in the beacon and RAM to 0x20002000.&lt;/li&gt;
&lt;li&gt;#define GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 2 in nrf_brd_config.h&lt;/li&gt;
&lt;li&gt;Init the SOFTDEVICE_HANDLER_INIT as follows in ble_stack_init()&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote&gt;
&lt;pre&gt;&lt;code&gt;#if defined(BOARD_PCA20006)
	    SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_50_PPM, NULL);
#elif defined(BOARD_PCA10028)
    SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, NULL);
#elif defined(BOARD_PCA10031)
    SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_4000MS_CALIBRATION, NULL);
#endif
&lt;/code&gt;&lt;/pre&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>