<?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>nRF51822 samplecode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4221/nrf51822-samplecode</link><description>Hi !
I&amp;#39;m completely new into programming this device.
I downloaded the nAn-36 source from Github and I&amp;#39;m trying to make it work on a PC10000 dongle.
The code stops in the assert handler from line 165 with errorcode 0x3001.
I&amp;#39;m using SDK ver. 6.1.0</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Oct 2014 20:12:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4221/nrf51822-samplecode" /><item><title>RE: nRF51822 samplecode</title><link>https://devzone.nordicsemi.com/thread/15078?ContentTypeID=1</link><pubDate>Wed, 29 Oct 2014 20:12:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d206cd34-7846-4c7f-984a-769663c1813b</guid><dc:creator>Vyacheslav Lebets</dc:creator><description>&lt;p&gt;Good luck ;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 samplecode</title><link>https://devzone.nordicsemi.com/thread/15082?ContentTypeID=1</link><pubDate>Wed, 29 Oct 2014 19:15:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99460364-d48c-4519-980e-8be6716eb313</guid><dc:creator>Jens Jespersen</dc:creator><description>&lt;p&gt;Thank you Vyacheslav !!!!
I discovered that the following part was missing in ble_stack_init(void) :
// Enable BLE stack
ble_enable_params_t ble_enable_params;
memset(&amp;amp;ble_enable_params, 0, sizeof(ble_enable_params));
ble_enable_params.gatts_enable_params.service_changed = IS_SRVC_CHANGED_CHARACT_PRESENT;
err_code = sd_ble_enable(&amp;amp;ble_enable_params);
APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;NOW IT WORKS !!! :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 samplecode</title><link>https://devzone.nordicsemi.com/thread/15081?ContentTypeID=1</link><pubDate>Wed, 29 Oct 2014 08:22:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26af8f58-f008-4f58-9529-fd34e61735c5</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;There are other examples code with custom service at this blog &lt;a href="http://embeddedsoftdev.blogspot.ca/p/ehal-nrf51.html"&gt;embeddedsoftdev.blogspot.ca/.../ehal-nrf51.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 samplecode</title><link>https://devzone.nordicsemi.com/thread/15080?ContentTypeID=1</link><pubDate>Wed, 29 Oct 2014 07:40:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e1e4361-09b2-475f-81de-23aec5cb6e3f</guid><dc:creator>Jens Jespersen</dc:creator><description>&lt;p&gt;Thank you for your answer !
Yes I did flash the softdevice before trying
I tried another example (from the SDK) - and that worked - I think it was the bps code.....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 samplecode</title><link>https://devzone.nordicsemi.com/thread/15077?ContentTypeID=1</link><pubDate>Wed, 29 Oct 2014 07:38:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51059379-d01b-4c3e-b19a-9d05ac49edd3</guid><dc:creator>Jens Jespersen</dc:creator><description>&lt;p&gt;Hi
Thank you for your answer - i&amp;#39;ll work on it tonight.
Well, no - the code isn&amp;#39;t made for the dongle, but I cant see any reason why it shouldn&amp;#39;t work - after all its the same chip. All I want to do, is to control the RGB led from the &amp;quot;nRF Master Control Panel&amp;quot; on my phone :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 samplecode</title><link>https://devzone.nordicsemi.com/thread/15079?ContentTypeID=1</link><pubDate>Wed, 29 Oct 2014 03:42:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27dd8ec9-4e28-4062-882d-094cd5fa32f2</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Have you flashed in the Softdevice ? You need first flash in the softdevice you want to use s110 or S120 or s130 before you can flash the app code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 samplecode</title><link>https://devzone.nordicsemi.com/thread/15076?ContentTypeID=1</link><pubDate>Tue, 28 Oct 2014 22:20:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac825143-a2df-48a5-8eb7-7d4ebf9e048f</guid><dc:creator>Vyacheslav Lebets</dc:creator><description>&lt;p&gt;Hi, Jens.&lt;/p&gt;
&lt;p&gt;In file ble_err.h we find&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define BLE_ERROR_NOT_ENABLED (NRF_ERROR_STK_BASE_NUM+0x001) /* sd_ble_enable has not been called.*/
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and in file nrf_error.h we find:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define NRF_ERROR_STK_BASE_NUM  (0x3000)    ///&amp;lt; STK error base
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Your error is BLE_ERROR_NOT_ENABLED (= 0x3001) - function &amp;quot;sd_ble_enable&amp;quot; has not been called.&lt;/p&gt;
&lt;p&gt;Are you sure that the code should be used in dongle?
I think that code should be use in evulation (PC10001) or developer board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>