<?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>How to Enable DTM after BLE has been running  (NCS)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93975/how-to-enable-dtm-after-ble-has-been-running-ncs</link><description>Hi All, 
 How do I disable the BLE stack completely such that I can switch to the DTM stack (DTM example using direct nrf_radio calls)? 
 Current I disable advertising and then run DTM_init(); but zephyr crashes in the call to radio_reset(). 
 mpsl_init</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 18 Nov 2022 07:53:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93975/how-to-enable-dtm-after-ble-has-been-running-ncs" /><item><title>RE: How to Enable DTM after BLE has been running  (NCS)</title><link>https://devzone.nordicsemi.com/thread/396340?ContentTypeID=1</link><pubDate>Fri, 18 Nov 2022 07:53:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c47e25c-228c-470d-84c5-b9e90230facc</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;It looks like the bt_disable function not implemented on the Nordic side. We can try to approach this the other way. DTM needs exclusive access of NRF RADIO and while BT is enabled, this is not&amp;nbsp; directly allowed by our BLE&amp;nbsp; controller.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But I think we can request &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/mpsl/timeslot/README.html"&gt;timeslots&lt;/a&gt;&amp;nbsp;for the duration of the DTM tests and these requests of timeslots go through our BLE controller. If DTM is using the resources only within this timeslots then I think the BLE controller wont complain.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Enable DTM after BLE has been running  (NCS)</title><link>https://devzone.nordicsemi.com/thread/396309?ContentTypeID=1</link><pubDate>Thu, 17 Nov 2022 20:57:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64b6d0cc-a956-4178-9f4f-eb30b8c4f873</guid><dc:creator>Simon Third</dc:creator><description>&lt;p&gt;Hi Susheel,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been looking for a way to completely disable BLE, but from what I see and read on devzone &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;bt_disable()&lt;/span&gt; is not implemented.&amp;nbsp; So my question should probably be how do I disable BLE and free up the resources that DTM needs?&lt;/p&gt;
&lt;p&gt;During debugging I get a Hardfault when&amp;nbsp;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;irq_disable(RADIO_IRQn&lt;/span&gt;&lt;span&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;)&lt;/span&gt;; is called inside &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;radio_reset()&lt;/span&gt;.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Enable DTM after BLE has been running  (NCS)</title><link>https://devzone.nordicsemi.com/thread/396169?ContentTypeID=1</link><pubDate>Thu, 17 Nov 2022 10:22:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54962e1d-1b0e-4c00-9974-173282763fe4</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I am not sure if you can run DTM and BLE concurrently. Probably not. So your approach of disable BLE while using DTM seems sensible.&lt;/p&gt;
[quote user=""]Current I disable advertising and then run DTM_init(); but zephyr crashes in the call to radio_reset().[/quote]
&lt;p&gt;Disabling advertising does not mean that you are disabling BLE, I am guessing that you are seeing this crash because you have not disable the BLE part yet. You would get more context on why the system crashes if you can debug the crash and get more context as to where the system is faulting.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>