<?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>[SDK 10.0 Scanner Beacon] sd_ble_enable returns error 9</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11653/sdk-10-0-scanner-beacon-sd_ble_enable-returns-error-9</link><description>Using 
 
 
 IAR EWARM 7.20 
 
 
 PCA10001 V 2.0.0 (Changed the MCU to QFAAH00 Revision 3) 
 
 
 SDK 10.0 
 
 
 SoftDevice S110 8.0 
 
 
 J-Link Edu 
 
 
 Example: Scanner Beacon 
 
 
 (examples\ble_peripheral\experimental_ble_app_multiactivity_beacon</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Feb 2016 05:54:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11653/sdk-10-0-scanner-beacon-sd_ble_enable-returns-error-9" /><item><title>RE: [SDK 10.0 Scanner Beacon] sd_ble_enable returns error 9</title><link>https://devzone.nordicsemi.com/thread/44040?ContentTypeID=1</link><pubDate>Tue, 02 Feb 2016 05:54:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:821391dd-7fd5-41c7-a1e1-94514579d0ad</guid><dc:creator>MANGO</dc:creator><description>&lt;p&gt;Oh, you are correct. I accidentally set the path to use the S120&amp;#39;s &lt;code&gt;ble.h&lt;/code&gt;. My bads.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK 10.0 Scanner Beacon] sd_ble_enable returns error 9</title><link>https://devzone.nordicsemi.com/thread/44039?ContentTypeID=1</link><pubDate>Tue, 02 Feb 2016 05:43:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f249aa9d-dd26-434b-b6df-e26a7feb56e0</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;That&amp;#39;s not the S110 v 8 eader file. So you are compiling with the wrong headers. So you have the wrong structure so you&amp;#39;re not initializing it properly. Use the right header which has that error message described in it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK 10.0 Scanner Beacon] sd_ble_enable returns error 9</title><link>https://devzone.nordicsemi.com/thread/44038?ContentTypeID=1</link><pubDate>Tue, 02 Feb 2016 05:20:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:920bcaec-19d7-4085-9d88-d31fc87891b0</guid><dc:creator>MANGO</dc:creator><description>&lt;p&gt;Hi, RK. &lt;strong&gt;I said &amp;quot;I just migrated to SDK 10. I used SDK 7.2 in the past. So I hope I didn&amp;#39;t make a mistake about the Linker settings.&amp;quot;. I just wanted to ensure that I made a proper setting to cut down the problem.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The point is that, at &lt;code&gt;ble.h&lt;/code&gt;,&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/**@brief Enable the bluetooth stack
@retval @ref NRF_ERROR_INVALID_STATE stack had already been initialized and cannot be reinitialized.
@return @ref NRF_ERROR_INVALID_ADDR Invalid or not sufficiently aligned pointer supplied.
@retval @ref NRF_ERROR_INVALID_PARAM Invalid parameter supplied.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;the documentation does not describe why &lt;code&gt;NRF_ERROR_INVALID_LENGTH&lt;/code&gt; is returned.&lt;/p&gt;
&lt;p&gt;I use S110 8.0. I didn&amp;#39;t understand your instruction.&lt;/p&gt;
&lt;p&gt;Do you mean to add &lt;code&gt;ble_enable_params.gatts_enable_params.attr_tab_size = BLE_GATTS_ATTR_TAB_SIZE_DEFAULT;&lt;/code&gt;?&lt;/p&gt;
&lt;p&gt;This shows compiler error since &lt;code&gt;ble_gatts_enable_params_t&lt;/code&gt; doesn&amp;#39;t  have &lt;code&gt;attr_tab_size&lt;/code&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK 10.0 Scanner Beacon] sd_ble_enable returns error 9</title><link>https://devzone.nordicsemi.com/thread/44037?ContentTypeID=1</link><pubDate>Tue, 02 Feb 2016 04:56:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0794b25-831c-4551-b870-33ec43237dfb</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Why on earth are you talking about linker settings. The linker has absolutely nothing at all to do with it. Read the documentation on the error message which tells you the attribute table size isn&amp;#39;t valid, despite the fact you&amp;#39;re passing in 0 which should be the default and ought to work. Go give it a proper value which is bigger than the minimum and a multiple of 4.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>