<?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>Initializing connection parameters fail</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13298/initializing-connection-parameters-fail</link><description>Helo, i&amp;#39;m working on firmware for a device, which should be able to scan for other devices, advertise data and be connectable. Scanning and advertising works. Problems come up when i tried to add code to make device connectable as well. This configuration</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Apr 2016 10:13:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13298/initializing-connection-parameters-fail" /><item><title>RE: Initializing connection parameters fail</title><link>https://devzone.nordicsemi.com/thread/50690?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2016 10:13:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8aaafe26-535f-4cbf-a5ca-09cecc6f85ec</guid><dc:creator>Artucas</dc:creator><description>&lt;p&gt;Wow, that did the trick. Thank you very much RK.
Regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Initializing connection parameters fail</title><link>https://devzone.nordicsemi.com/thread/50691?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2016 10:04:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd2abfed-775c-468f-aeac-ff1c22d196dd</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;so it looks like you haven&amp;#39;t initialised the app_timer module, probably didn&amp;#39;t need it before now, so initialise it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Initializing connection parameters fail</title><link>https://devzone.nordicsemi.com/thread/50689?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2016 09:51:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4868335a-18cf-4261-92b2-b5b146f29fd8</guid><dc:creator>Artucas</dc:creator><description>&lt;p&gt;i just have stepped through the ble_conn_params_init_function, the code goes all the way to:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;return app_timer_create(&amp;amp;m_conn_params_timer_id,
                        APP_TIMER_MODE_SINGLE_SHOT,
                        update_timeout_handler);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;going inside app_timer_create, and the NRF_ERROR_INVALID_STATE is returned by the very first lines of code:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// Check state and parameters
if (mp_nodes == NULL)
{
    return NRF_ERROR_INVALID_STATE;
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Initializing connection parameters fail</title><link>https://devzone.nordicsemi.com/thread/50688?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2016 01:36:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c41ae35-8add-4ab4-ab70-772b2c5b31b1</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Where does it fail? The APP_ERROR_CHECK() in the conn params init function or somewhere else? Have you single-stepped into the ble_conn_params_init() function to see which of the calls is returning the error? I don&amp;#39;t see anything in the code for ble_conn_params_init() which can return that invalid state error, so perhaps it&amp;#39;s coming from elsewhere.&lt;/p&gt;
&lt;p&gt;And what softdevice and version?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>