<?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>BT HCI Core fault disappears when I set log level to debug.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121927/bt-hci-core-fault-disappears-when-i-set-log-level-to-debug</link><description>I&amp;#39;m using the nRF9160DK as a BLE-to-LTE bridge, and I have the onboard 52840 configured as my Bluetooth controller. The 9160DK advertises as a peripheral and waits for a connection from a different board, which automatically connects. If they connect</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 01 Sep 2025 09:53:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121927/bt-hci-core-fault-disappears-when-i-set-log-level-to-debug" /><item><title>RE: BT HCI Core fault disappears when I set log level to debug.</title><link>https://devzone.nordicsemi.com/thread/547298?ContentTypeID=1</link><pubDate>Mon, 01 Sep 2025 09:53:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59a0f347-95c4-43e1-ae1c-3c8eb46e00e4</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Ethan,&lt;/p&gt;
&lt;p&gt;Would you be able to provide a bit more details:&lt;/p&gt;
&lt;ol start="1"&gt;
&lt;li&gt;
&lt;p&gt;&lt;span&gt;UART&lt;/span&gt; Baud rate in use?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Is CTS/&lt;span&gt;RTS&lt;/span&gt; lines in use (hardware flow control)?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Both Host stack firmware and the Controller (hci_uart) firmware use &lt;code&gt;CONFIG_BT_HCI_ACL_FLOW_CONTROL=y&lt;/code&gt; ?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;What are the values of (both in Host firmware and Controller firmware):&lt;/p&gt;
&lt;ol start="1"&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;CONFIG_BT_BUF_CMD_TX_COUNT&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;CONFIG_BT_BUF_EVT_RX_COUNT&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;CONFIG_BT_BUF_ACL_TX_COUNT&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;CONFIG_BT_BUF_ACL_RX_COUNT&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;CONFIG_BT_BUF_ACL_RX_COUNT_EXTRA&lt;/code&gt;&lt;/p&gt;
&lt;code&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT HCI Core fault disappears when I set log level to debug.</title><link>https://devzone.nordicsemi.com/thread/542405?ContentTypeID=1</link><pubDate>Mon, 14 Jul 2025 14:19:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c691e37c-f0e0-47b2-b47f-3c937b31cb1d</guid><dc:creator>Ethan Barry</dc:creator><description>&lt;p&gt;Hello Priyanka,&lt;/p&gt;
&lt;p&gt;I *am* using the HCI UART sample, actually. That&amp;#39;s what&amp;#39;s programmed to the netcore&amp;#39;s flash. I&amp;#39;m also building under NCS 2.9.1, not 3.0. Here&amp;#39;s the config for that HCI UART application. Do you think increasing the size of some buffer would fix this? Thanks!&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_CONSOLE=n
CONFIG_STDOUT_CONSOLE=n
CONFIG_UART_CONSOLE=n
CONFIG_GPIO=y
CONFIG_LOG=y
CONFIG_RTT_CONSOLE=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_LOG_BACKEND_RTT=y
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_BT=y
CONFIG_BT_HCI_RAW=y
CONFIG_BT_HCI_RAW_H4=y
CONFIG_BT_HCI_RAW_H4_ENABLE=y
CONFIG_BT_BUF_ACL_RX_SIZE=255
CONFIG_BT_BUF_CMD_TX_SIZE=255
CONFIG_BT_BUF_EVT_DISCARDABLE_SIZE=255
CONFIG_BT_CTLR_ASSERT_HANDLER=y
CONFIG_BT_MAX_CONN=16
CONFIG_BT_TINYCRYPT_ECC=n
CONFIG_BT_CTLR_DTM_HCI=y

CONFIG_BT_BUF_ACL_TX_SIZE=255
CONFIG_BT_EXT_ADV=y
CONFIG_BT_PER_ADV=y
CONFIG_BT_PER_ADV_SYNC_TRANSFER_SENDER=y
CONFIG_BT_PER_ADV_RSP=y

CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512

# Workaround: Unable to allocate command buffer when using K_NO_WAIT since
# Host number of completed commands does not follow normal flow control.
CONFIG_BT_BUF_CMD_TX_COUNT=10&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT HCI Core fault disappears when I set log level to debug.</title><link>https://devzone.nordicsemi.com/thread/540133?ContentTypeID=1</link><pubDate>Mon, 23 Jun 2025 06:21:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:919c7848-d9bf-4e5e-83c4-d3dbe6480322</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Ethan,&lt;/p&gt;
&lt;p&gt;Apologies for the delay as it took some time to spot the issue.&lt;/p&gt;
&lt;p&gt;Starting with &lt;span&gt;NCS&lt;/span&gt; 3.0.0 this sample is deprecated.&lt;/p&gt;
&lt;p&gt;Could the same be seen with the normal HCI &lt;span&gt;UART&lt;/span&gt; sample? &lt;a title="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/bluetooth/hci_uart/README.html" href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/bluetooth/hci_uart/README.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/bluetooth/hci_uart/README.html&lt;/a&gt;&lt;br /&gt;(or HCI UART acyns &lt;a title="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/bluetooth/hci_uart_async/README.html" href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/bluetooth/hci_uart_async/README.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/bluetooth/hci_uart_async/README.html&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT HCI Core fault disappears when I set log level to debug.</title><link>https://devzone.nordicsemi.com/thread/537863?ContentTypeID=1</link><pubDate>Tue, 03 Jun 2025 12:00:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d09801b-153e-48c7-b46b-ce2c9e819ade</guid><dc:creator>Ethan Barry</dc:creator><description>&lt;p&gt;Thank you, Priyanka!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT HCI Core fault disappears when I set log level to debug.</title><link>https://devzone.nordicsemi.com/thread/537778?ContentTypeID=1</link><pubDate>Tue, 03 Jun 2025 06:55:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c615f273-f699-49ae-9f86-4004bc41a947</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Ethan,&lt;/p&gt;
&lt;p&gt;I am checking this internally to see if this is a known issue and will get back to you.&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT HCI Core fault disappears when I set log level to debug.</title><link>https://devzone.nordicsemi.com/thread/537696?ContentTypeID=1</link><pubDate>Mon, 02 Jun 2025 14:05:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:013b3d50-2a6e-4c67-b4a5-f5c04bda2192</guid><dc:creator>Ethan Barry</dc:creator><description>&lt;p&gt;I was able to make it crash with debug logging enabled by connecting and disconnecting a few times in a row. Again, the number of times I can disconnect and reconnect (with or without debug logging) before getting an assertion fail and kernel panic varies. Sometimes it is just one time; sometimes it&amp;#39;s five or more. Here are the relevant lines of the crash with debugging enabled.&lt;/p&gt;
&lt;p&gt;Let me know if I can test anything for you, or provide any more information.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;00&amp;gt; [00:00:31.059,143] &amp;lt;dbg&amp;gt; bt_hci_core: bt_recv_unsafe: buf 0x2001e974 len 6[0m
00&amp;gt; [00:00:31.059,173] &amp;lt;dbg&amp;gt; bt_hci_core: hci_disconn_complete_prio: status 0x00  handle 15 reason 0x08
00&amp;gt; [00:00:31.059,204] &amp;lt;dbg&amp;gt; bt_hci_core: bt_tx_irq_raise: kick TX
00&amp;gt; [00:00:31.059,265] &amp;lt;dbg&amp;gt; bt_hci_core: rx_work_handler: Getting net_buf from queue
00&amp;gt; [00:00:31.059,265] &amp;lt;dbg&amp;gt; bt_hci_core: rx_work_handler: buf 0x2001e974 type 1 len 6
00&amp;gt; [00:00:31.059,295] &amp;lt;dbg&amp;gt; bt_hci_core: hci_event: event 0x05
00&amp;gt; [00:00:31.059,326] &amp;lt;dbg&amp;gt; bt_hci_core: hci_disconn_complete: status 0x00  handle 15 reason 0x08
00&amp;gt; [00:00:31.059,387] &amp;lt;dbg&amp;gt; bt_hci_core: tx_processor: TX process start
00&amp;gt; [00:00:31.059,539] &amp;lt;err&amp;gt; tracing: Disconnected, reason 0x08 
00&amp;gt; 
00&amp;gt; [00:00:31.059,570] &amp;lt;dbg&amp;gt; bt_adv: bt_le_adv_resume: No valid legacy adv
00&amp;gt; [00:00:31.059,631] &amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_create: opcode 0x2039 param_len 6
00&amp;gt; [00:00:31.059,661] &amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_create: buf 0x2001f560
00&amp;gt; [00:00:31.059,692] &amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_send_sync: buf 0x2001f560 opcode 0x2039 len 9
00&amp;gt; [00:00:31.059,692] &amp;lt;dbg&amp;gt; bt_hci_core: bt_tx_irq_raise: kick TX
00&amp;gt; [00:00:31.059,722] &amp;lt;dbg&amp;gt; bt_hci_core: bt_hci_cmd_send_sync: process cmd 0x2001f560 want 0x2001f560
00&amp;gt; [00:00:31.059,753] &amp;lt;dbg&amp;gt; bt_hci_core: hci_core_send_cmd: fetch cmd
00&amp;gt; [00:00:31.059,753] &amp;lt;dbg&amp;gt; bt_hci_core: hci_core_send_cmd: Sending command 0x2039 (buf 0x2001f560) to driver
00&amp;gt; [00:00:31.059,783] &amp;lt;dbg&amp;gt; bt_hci_core: bt_send: buf 0x2001f560 len 9 type 0
00&amp;gt; ASSERTION FAIL [err == 0] @ WEST_TOPDIR/zephyr/subsys/bluetooth/host/hci_core.c:430
00&amp;gt;   Controller unresponsive, command opcode 0x2039 timeout with err -11
00&amp;gt; [00:00:51.059,936] &amp;lt;err&amp;gt; os: r0/a1:  0x00000003  r1/a2:  0x00000000  r2/a3:  0x00000019
00&amp;gt; [00:00:51.059,967] &amp;lt;err&amp;gt; os: r3/a4:  0x00000003 r12/ip:  0x00000010 r14/lr:  0x0000f82b[0m
00&amp;gt; [00:00:51.059,967] &amp;lt;err&amp;gt; os:  xpsr:  0x21000000
00&amp;gt; [00:00:51.059,997] &amp;lt;err&amp;gt; os: s[ 0]:  0x2001dd98  s[ 1]:  0x2001dd98  s[ 2]:  0x00000000  s[ 3]:  0x00000001
00&amp;gt; [00:00:51.059,997] &amp;lt;err&amp;gt; os: s[ 4]:  0x2001dda8  s[ 5]:  0x2001dda8  s[ 6]:  0x2000f4b0  s[ 7]:  0x2001de34
00&amp;gt; [00:00:51.060,028] &amp;lt;err&amp;gt; os: s[ 8]:  0x2001f56c  s[ 9]:  0x2001f560  s[10]:  0x00000001  s[11]:  0x2000f4a0
00&amp;gt; [00:00:51.060,028] &amp;lt;err&amp;gt; os: s[12]:  0xffffffff  s[13]:  0x00000000  s[14]:  0x00000000  s[15]:  0x0002a391
00&amp;gt; [00:00:51.060,058] &amp;lt;err&amp;gt; os: fpscr:  0x00000001
00&amp;gt; [00:00:51.060,058] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x0000f83a
00&amp;gt; [00:00:51.060,089] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0
00&amp;gt; [00:00:51.060,119] &amp;lt;err&amp;gt; os: Current thread: 0x20010638 (sysworkq)
00&amp;gt; [00:00:54.587,921] &amp;lt;err&amp;gt; os: Halting system&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT HCI Core fault disappears when I set log level to debug.</title><link>https://devzone.nordicsemi.com/thread/537639?ContentTypeID=1</link><pubDate>Mon, 02 Jun 2025 11:27:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42f8dd62-c562-4373-980e-1c0db7979c68</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Ethan,&lt;/p&gt;
&lt;p&gt;Thank you for your input. I have conveyed this to the team and will get back to you with updates.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>