<?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>Switching between BLE advertising and DTM</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111652/switching-between-ble-advertising-and-dtm</link><description>Hi there, 
 I&amp;#39;m currently trying to switch from actively advertising to a carrier wave test. This is the code snippet I&amp;#39;m currently debugging on SDK 17.1.0: 
 
 The code seems to be freezing when I disable the soft device. Is there anything I&amp;#39;m missing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 May 2024 08:32:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111652/switching-between-ble-advertising-and-dtm" /><item><title>RE: Switching between BLE advertising and DTM</title><link>https://devzone.nordicsemi.com/thread/486590?ContentTypeID=1</link><pubDate>Thu, 30 May 2024 08:32:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b389a520-6fb9-428c-b2ce-cdefefe1405b</guid><dc:creator>TrystanJ</dc:creator><description>&lt;p&gt;I found my issue. The combination of the BLE NUS example mixed with the DFU service (also from the example code) was the root cause. The last step of disabling the soft device &amp;quot;&lt;span&gt;sdh_state_observer_notify&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;NRF_SDH_EVT_STATE_DISABLED&lt;/span&gt;&lt;span&gt;)&amp;quot; interacted with the&amp;nbsp;&lt;/span&gt;&lt;span&gt;buttonless_dfu_sdh_state_observer&amp;nbsp;&lt;/span&gt;which powered off the micro. Added in an dfu arming boolean (activated in&amp;nbsp;app_shutdown_handler) to prevent it.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Trystan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>