<?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>Problem with starting advertising in Bluetooth</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118489/problem-with-starting-advertising-in-bluetooth</link><description>Hello. The problems with starting advertising started after I wanted to add NVS (most likely). The error occurs in the bt_le_adv_start function 
 
 What does this error mean and how can I fix it? 
 Here is my overlay for new memory partition (sensor_data_in_partition</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 31 Jan 2025 13:29:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118489/problem-with-starting-advertising-in-bluetooth" /><item><title>RE: Problem with starting advertising in Bluetooth</title><link>https://devzone.nordicsemi.com/thread/520885?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2025 13:29:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf2b3995-bf7e-490b-9a7f-d065ef9d1bfb</guid><dc:creator>Illia Alexandrov</dc:creator><description>&lt;p&gt;Thank you very much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with starting advertising in Bluetooth</title><link>https://devzone.nordicsemi.com/thread/520883?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2025 13:27:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd2efb5d-7964-4702-b190-71bfb8887d83</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes, as you can see, this symbol is enabled by default, and it selects the configurations&amp;nbsp;needed to enable support for BLE bonding.&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/lessons/lesson-5-bluetooth-le-security-fundamentals/"&gt;https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/lessons/lesson-5-bluetooth-le-security-fundamentals/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with starting advertising in Bluetooth</title><link>https://devzone.nordicsemi.com/thread/520881?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2025 13:23:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a15562f-06e5-4401-9b83-392cc421c1a2</guid><dc:creator>Illia Alexandrov</dc:creator><description>&lt;p&gt;Thank you, I will be using it. What about CONFIG_BT_STATUS_SECURITY_ENABLED? I don&amp;#39;t have that setting anywhere. I only have in Kconfig: config BT_LBS_SECURITY_ENABLED.&lt;br /&gt; bool &amp;ldquo;Enable security&amp;rdquo;&lt;br /&gt; default y&lt;br /&gt; select BT_SMP&lt;br /&gt; select BT_SETTINGS&lt;br /&gt; select FLASH&lt;br /&gt; select FLASH_PAGE_LAYOUT&lt;br /&gt; select FLASH_MAP&lt;br /&gt; select NVS&lt;br /&gt; select SETTINGS&lt;br /&gt; help&lt;br /&gt; &amp;ldquo;Enable BLE security for the LED-Button service&amp;rdquo;.&amp;nbsp;Is this what you mean, or is there any other way to improve the security?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with starting advertising in Bluetooth</title><link>https://devzone.nordicsemi.com/thread/520879?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2025 13:18:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55ded6e9-2aec-4afd-a529-e3d9c60a0059</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi, glad to hear that it worked now. Regarding the partition manager, it is fine to disable it for single image builds, but it will be needed if you need to include the bootloader in your project in the future.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with starting advertising in Bluetooth</title><link>https://devzone.nordicsemi.com/thread/520877?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2025 13:15:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2de4cc2e-5519-4196-95ea-c4b795222fba</guid><dc:creator>Illia Alexandrov</dc:creator><description>&lt;p&gt;Hi. settings_load() helped. Thank you! I also found your old answer &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/93860/bt_le_adv_start-returns--11"&gt;devzone.nordicsemi.com/.../bt_le_adv_start-returns--11&lt;/a&gt;. Regarding partition manager, I have SB_CONFIG_PARTITION_MANAGER=n set in sysbuild.conf. Or is it better to do using this file with static partitioning?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with starting advertising in Bluetooth</title><link>https://devzone.nordicsemi.com/thread/520861?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2025 12:40:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c560d73-c927-476b-b431-48ddfd5c7a2b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Advertising start is returning with -EAGAIN (-11) which indicates that the Bluetooth stack is not ready. Does your code call settings_load() before it attempts to start the advertiser?&lt;/p&gt;
&lt;p&gt;You also need to keep the settings storage partition if you want to keep &amp;quot;CONFIG_BT_STATUS_SECURITY_ENABLED&amp;quot; enabled. Please note that memory partitions are controlled by the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.0/page/nrf/scripts/partition_manager/partition_manager.html#static_and_dynamic_configuration"&gt;partition manager&amp;nbsp;&lt;/a&gt;&amp;nbsp;which means the Devictree partitions will be ignored.&lt;/p&gt;
&lt;p&gt;To include both partitions, you can place the static partitioning file included in the zip file below in your project root and do a pristine build.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3731.pm_5F00_static.zip"&gt;devzone.nordicsemi.com/.../3731.pm_5F00_static.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This should give you the following memory layout:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1738327226291v1.png" alt=" " /&gt;&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>