<?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>How to create our service successfully</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35192/how-to-create-our-service-successfully</link><description>Hello 
 I&amp;#39;m using SDK 15, S132 PCA10040 
 I have followed this tut. 
 I&amp;#39;ve tried 2 scenarios which in both I get error value: 
 1. when advertising_init() is before services_init() then advertising_init()-&amp;gt;ble_advertising_init()-&amp;gt;ble_advdata_set-&amp;gt;()ble_advdata_encode</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 10 Jun 2018 09:34:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35192/how-to-create-our-service-successfully" /><item><title>RE: How to create our service successfully</title><link>https://devzone.nordicsemi.com/thread/135452?ContentTypeID=1</link><pubDate>Sun, 10 Jun 2018 09:34:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc6d9f62-725c-4611-b0a2-bea0853b8d6d</guid><dc:creator>Ran Ratson Kohavi</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve found the problem.&lt;/p&gt;
&lt;p&gt;When I changed the&amp;nbsp;&lt;span style="background-color:transparent;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:18px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;RAM_start__&lt;/span&gt; from &lt;span style="background-color:transparent;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:18px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;0x20002218 to&amp;nbsp;&lt;span style="background-color:transparent;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;0x20002220&lt;/span&gt;, the scanner device recognized the PCA10040 device as &amp;quot;Nord&amp;quot; with the correct UUID as in tut.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create our service successfully</title><link>https://devzone.nordicsemi.com/thread/135450?ContentTypeID=1</link><pubDate>Sun, 10 Jun 2018 08:08:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db04df23-5318-4859-9729-1a8775eb967b</guid><dc:creator>Ran Ratson Kohavi</dc:creator><description>&lt;p&gt;Hello Bjorn,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve followed steps 1-3 from tut, but function&amp;nbsp;ble_stack_init()-&amp;gt;nrf_sdh_ble_enable()-&amp;gt;sd_ble_enable() returns&amp;nbsp;NRF_ERROR_NO_MEM #4.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using IAR 8.22.1.&lt;/p&gt;
&lt;p&gt;My ICF file is:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/*###ICF### Section handled by ICF editor, don&amp;#39;t touch! ****/
/*-Editor annotation file-*/
/* IcfEditorFile=&amp;quot;$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml&amp;quot; */
/*-Specials-*/
define symbol __ICFEDIT_intvec_start__ = 0x26000;
/*-Memory Regions-*/
define symbol __ICFEDIT_region_ROM_start__   = 0x26000;
define symbol __ICFEDIT_region_ROM_end__     = 0x5a000;/*0x7ffff;*/
define symbol __ICFEDIT_region_RAM_start__   = 0x20002218;
define symbol __ICFEDIT_region_RAM_end__     = 0x2000dde0;/*0x2000ffff;*/
export symbol __ICFEDIT_region_RAM_start__;
export symbol __ICFEDIT_region_RAM_end__;
/*-Sizes-*/
define symbol __ICFEDIT_size_cstack__   = 8192;
define symbol __ICFEDIT_size_heap__     = 8192;
/**** End of ICF editor section. ###ICF###*/

define memory mem with size = 4G;
define region ROM_region   = mem:[from __ICFEDIT_region_ROM_start__   to __ICFEDIT_region_ROM_end__];
define region RAM_region   = mem:[from __ICFEDIT_region_RAM_start__   to __ICFEDIT_region_RAM_end__];

define block CSTACK    with alignment = 8, size = __ICFEDIT_size_cstack__   { };
define block HEAP      with alignment = 8, size = __ICFEDIT_size_heap__     { };
define block RO_END    with alignment = 8, size = 0     { };

initialize by copy { readwrite };
do not initialize  { section .noinit };

keep { section .intvec };
place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
place in ROM_region   { readonly,
                        block RO_END };
place in RAM_region   { readwrite,
                        block CSTACK,
                        block HEAP };

&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The error is in both cases:&lt;/p&gt;
&lt;p&gt;ROM_end__&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x7ffff; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; //Original value&lt;/p&gt;
&lt;p&gt;RAM_end__&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x2000ffff; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style="background-color:transparent;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;//Original value&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;or,&lt;/p&gt;
&lt;p style="background-color:transparent;color:#000000;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;ROM_end__&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x5a000; &amp;nbsp; &amp;nbsp; &amp;nbsp; //As is tutorial&lt;/p&gt;
&lt;p style="background-color:transparent;color:#000000;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;RAM_end__&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x2000dde0;&amp;nbsp;&lt;span style="background-color:transparent;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;//As is tutorial&lt;/span&gt;&lt;/p&gt;
&lt;p style="background-color:transparent;color:#000000;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;BTW, the&amp;nbsp;RAM_start__ in my ICF file is&amp;nbsp; = 0x20002218 and not&amp;nbsp;&lt;span style="background-color:transparent;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;0x20002220.&lt;/span&gt;&lt;/p&gt;
&lt;p style="background-color:transparent;color:#000000;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;&lt;/p&gt;
&lt;p style="background-color:transparent;color:#000000;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;Please help me with this issue.&lt;/p&gt;
&lt;p style="background-color:transparent;color:#000000;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;Tanks in advance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create our service successfully</title><link>https://devzone.nordicsemi.com/thread/135448?ContentTypeID=1</link><pubDate>Sun, 10 Jun 2018 06:51:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76cf0291-33a1-42f4-a148-89954215e51a</guid><dc:creator>Ran Ratson Kohavi</dc:creator><description>&lt;p&gt;Hello Bjorn,&lt;/p&gt;
&lt;p&gt;Thanks a lot, I&amp;#39;ll try it.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Ran&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create our service successfully</title><link>https://devzone.nordicsemi.com/thread/135181?ContentTypeID=1</link><pubDate>Thu, 07 Jun 2018 13:28:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12a65120-4396-4fbb-886a-fd872607d75c</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;HI Ran,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;the tutorial you&amp;#39;re using is based on SDK v11.0.0 and is therefore not compatible with SDK v15.0.0. I recommend that you use &lt;a href="https://github.com/bjornspockeli/custom_ble_service_example"&gt;this &lt;/a&gt;tutorial instead, which is based on SDK v15.0.0.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>