<?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>stopping advertize after dfu</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122362/stopping-advertize-after-dfu</link><description>hi 
 after success dfu operation the firmware start to run 
 then i am getting stuck write after err_code = sd_ble_gap_device_name_set(&amp;amp;sec_mode, new_name, DYNAMIC_NAME_LEN); 
 because i need to stop the advertizing after the DFU 
 if am am cancelling</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Jun 2025 14:36:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122362/stopping-advertize-after-dfu" /><item><title>RE: stopping advertize after dfu</title><link>https://devzone.nordicsemi.com/thread/539917?ContentTypeID=1</link><pubDate>Thu, 19 Jun 2025 14:36:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03ccfd84-2619-4448-8d86-33318e1cd491</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hmm... I assume that nrf_sdh_enable_request()/sd_softdevice_enable() is called successfully?&amp;nbsp;Is the RAM start and size correct?&lt;/p&gt;
&lt;p&gt;Is the vector table address updated&amp;nbsp;with the correct start address of the application, ref&amp;nbsp;sd_softdevice_vector_table_base_set()?&lt;/p&gt;
&lt;p&gt;Double check the examples/guide:&lt;br /&gt;&lt;a href="https://docs.nordicsemi.com/bundle/sdk_nrf5_v17.1.0/page/examples_bootloader.html"&gt;https://docs.nordicsemi.com/bundle/sdk_nrf5_v17.1.0/page/examples_bootloader.html&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/nrf5-sdk-v17-1-0-secure-dfu-hands-on-tutorial"&gt;https://devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/nrf5-sdk-v17-1-0-secure-dfu-hands-on-tutorial&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: stopping advertize after dfu</title><link>https://devzone.nordicsemi.com/thread/539704?ContentTypeID=1</link><pubDate>Wed, 18 Jun 2025 12:29:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1da04dae-1662-422c-b98b-f40f885e1636</guid><dc:creator>natilzr</dc:creator><description>&lt;p&gt;hi&lt;/p&gt;
&lt;p&gt;as far as i understand ,i am using it :&lt;/p&gt;
&lt;p&gt;&amp;nbsp;uint8_t&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; m_adv_handle&amp;nbsp; = BLE_GAP_ADV_SET_HANDLE_NOT_SET;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/**&amp;lt; Advertising handle used to identify an advertising set. */&lt;/p&gt;
&lt;p&gt;or if you mean somthing else please explain&lt;/p&gt;
&lt;p&gt;i am repeating my problem:&lt;/p&gt;
&lt;p&gt;DFU work perfect and .&lt;/p&gt;
&lt;p&gt;i have complete merge package with settings (secure boot loader ,application that works and software device + settings)&lt;/p&gt;
&lt;p&gt;the tag works&lt;/p&gt;
&lt;p&gt;when entering dfu with button if enters dfu i recognize if with your app and downloading new app the same one (packed in sip file like in the instruction) when it finish download the unit resets but when i am getting to&amp;nbsp;&amp;nbsp;:&lt;/p&gt;
&lt;p&gt;err_code = sd_ble_gap_device_name_set(&amp;amp;sec_mode, new_name, DYNAMIC_NAME_LEN);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;its not passing&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;what can be the reason and how to debug it&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thank you&lt;/p&gt;
&lt;p&gt;nati&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: stopping advertize after dfu</title><link>https://devzone.nordicsemi.com/thread/539699?ContentTypeID=1</link><pubDate>Wed, 18 Jun 2025 12:12:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30834446-d4f1-4e26-bd96-5f4d86c92137</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The error code is&amp;nbsp;BLE_ERROR_INVALID_ADV_HANDLE (0x3004).&lt;/p&gt;
&lt;p&gt;Use BLE_GAP_ADV_SET_HANDLE_NOT_SET when requesting a new handle. For subsequent calls like adv_set_configure, tx_power_set, or device name changes, use a valid m_adv_handle returned earlier (e.g. &amp;#39;0&amp;#39;).&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>