<?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>error (-11) while try to start advertising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/88887/error--11-while-try-to-start-advertising</link><description>Hi, 
 I have tried to follow the below tutorial ( https://www.youtube.com/watch?v=hY_tDext6zA&amp;amp;t=933s) . While I am trying to advertise the ble by following that webinar. I have got the below log error. 
 Kindly, help me to resolve that error. 
 
 Thanks</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Jun 2022 06:25:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/88887/error--11-while-try-to-start-advertising" /><item><title>RE: error (-11) while try to start advertising</title><link>https://devzone.nordicsemi.com/thread/372267?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2022 06:25:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7196d33-8b2a-47af-afd0-b62367bbea47</guid><dc:creator>Mr.NCK</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Thank you So much, Its working fine.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Navin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error (-11) while try to start advertising</title><link>https://devzone.nordicsemi.com/thread/372146?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2022 12:47:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de2aae4b-8c0a-4ec7-98ac-809d7000cdf9</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Navin,&lt;/p&gt;
&lt;p&gt;The semaphore was initialized with the initial value set to &amp;#39;1&amp;#39; instead of &amp;#39;0&amp;#39;, which caused k_sem_take() to return immediately before the BT stack was ready.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In remote.c, try:&lt;/p&gt;
&lt;p&gt;static K_SEM_DEFINE(bt_init_ok, 0, 1);&lt;/p&gt;
&lt;p&gt;Instead of:&lt;/p&gt;
&lt;p&gt;static K_SEM_DEFINE(bt_init_ok, 1, 1);&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error (-11) while try to start advertising</title><link>https://devzone.nordicsemi.com/thread/372127?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2022 11:49:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:807edaf7-5cbf-4643-9ff2-0a2ef49c5965</guid><dc:creator>Mr.NCK</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have uploaded my file here. for your reference&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2804.bluetooth_5F00_remote_5F00_template.zip"&gt;devzone.nordicsemi.com/.../2804.bluetooth_5F00_remote_5F00_template.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards&lt;/p&gt;
&lt;p&gt;Navin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error (-11) while try to start advertising</title><link>https://devzone.nordicsemi.com/thread/372083?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2022 10:30:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07a2a8b2-103c-42b3-9e8a-eb69b281f665</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Navin,&lt;/p&gt;
&lt;p&gt;Would you mind uploading your project here so I can have a look? The error code corresponds to -EAGAIN and might happen if you try to use the BLE stack before it has been initialized. &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>