<?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>nrf5340 call bt_disable always return err</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96599/nrf5340-call-bt_disable-always-return-err</link><description>Hi Devzone: 
 I have create our own board based on nrf5340dk_nrf5340, all are the same , just the pin configure and some perpherail devices on bus are not the same. 
 I configure bluetooth as follows, 
 
 #bluetooth 
 CONFIG_BT =y 
 CONFIG_BT_PERIPHERAL</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Feb 2023 02:07:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96599/nrf5340-call-bt_disable-always-return-err" /><item><title>RE: nrf5340 call bt_disable always return err</title><link>https://devzone.nordicsemi.com/thread/409721?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2023 02:07:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7227db7e-6d64-4900-9364-d2c03f4558d7</guid><dc:creator>mluo</dc:creator><description>&lt;p&gt;Thank you&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/eith"&gt;Einar Thorsrud&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 call bt_disable always return err</title><link>https://devzone.nordicsemi.com/thread/409491?ContentTypeID=1</link><pubDate>Mon, 13 Feb 2023 07:54:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46a1c034-0217-4b38-8ea8-cdf0f07e38ca</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Disabling the Bluetooth stack with &lt;code&gt;bt_disable()&lt;/code&gt; is not supported. If what you want to do is just to stop any Bluetooth activity, you can achieve that by terminating any active connections and stopping scanning and advertising. If you need low-level access to the radio you may want to look at &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/samples/mpsl/timeslot/README.html"&gt;MPSL timeslots&lt;/a&gt;. If you actually have a need for disabling the Bluetooth stack, you would need to perform a reset (see &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/93656/shutting-down-ble-host-stack-using-bt_disable/394730"&gt;this post&lt;/a&gt;).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>