<?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>Restart advertising fails with -ENOMEM</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/127006/restart-advertising-fails-with--enomem</link><description>We have thousands of devices live in production and we sometimes encounter the situation that we cannot restart bluetooth advertising anymore after a connection attempt. 
 
 bt_le_adv_start will then return -12 (-ENOMEM). The only way to get out of this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Feb 2026 13:53:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/127006/restart-advertising-fails-with--enomem" /><item><title>RE: Restart advertising fails with -ENOMEM</title><link>https://devzone.nordicsemi.com/thread/561843?ContentTypeID=1</link><pubDate>Mon, 23 Feb 2026 13:53:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:407aed00-9583-4646-b26f-136c0e2e6bc3</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Bert,&lt;/p&gt;
&lt;p&gt;So, it&amp;#39;&lt;span&gt;s not possible to restart advertising directly in the disconnected callback, as this callback is running in interrupt context.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This could be worth a shot, but could you maybe try setting&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_BT_MAX_CONN&lt;/span&gt;&lt;span&gt;=4&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Then check if you still get the error?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Restart advertising fails with -ENOMEM</title><link>https://devzone.nordicsemi.com/thread/561812?ContentTypeID=1</link><pubDate>Mon, 23 Feb 2026 10:41:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cd63609-006f-4110-9b3b-8d510d2b6aa1</guid><dc:creator>BertL</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/priyankakesav"&gt;Priyanka&lt;/a&gt;&amp;nbsp;thanks for your response!&lt;br /&gt;&lt;br /&gt;I will investigate the ticket you mentioned. But it is still weird that you can only get out of this situation with a reset of the device, right? I&amp;nbsp;can imagine that I will get errors if I try to start or update advertising when it is still busy, but I would expect it to be working again if I try a little bit later. That&amp;#39;s not what happening, once I will get the -ENOMEM error, the only way to get out of it is a reset of the device. Is this a known issue?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Restart advertising fails with -ENOMEM</title><link>https://devzone.nordicsemi.com/thread/561137?ContentTypeID=1</link><pubDate>Fri, 13 Feb 2026 15:01:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90e9fa11-927d-43a6-b124-f62772606f98</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Bert,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-12 (-ENOMEM) might be occurring because there might be some overlapping start sequences.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Accidently you might be trying to start a new advertising context, before the previous one has stopped completely.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Maybe you can take a look at the solution mentioned in&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/109942/intermittent-problem-restarting-advertising-enomem-failed-to-create-advertising-set"&gt; this ticket&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Priyanka&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>