<?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>HCI UART Issues on nRF Connect SDK 1.3.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64414/hci-uart-issues-on-nrf-connect-sdk-1-3-0</link><description>Hello Nordic Team, 
 I am having issues with the HCI UART firmware for the nRF52840 on the Thingy91. I have been using the HCI UART firmware from nRF Connect SDK 1.0.0 for some time but recently I ported over the changes from nRF Connect SDK 1.3.0 and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Oct 2020 11:42:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64414/hci-uart-issues-on-nrf-connect-sdk-1-3-0" /><item><title>RE: HCI UART Issues on nRF Connect SDK 1.3.0</title><link>https://devzone.nordicsemi.com/thread/272502?ContentTypeID=1</link><pubDate>Thu, 01 Oct 2020 11:42:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2c38361-2624-4249-93fe-9639d03eb533</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Cody,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We are working on addressing this HCI issue, but I do not have a timeline, unfortunately.&lt;/p&gt;
&lt;p&gt;The issue is being tracked here:&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues/26722"&gt;https://github.com/zephyrproject-rtos/zephyr/issues/26722&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="CRSharff"]as well as the introduction of low power UART?[/quote]
&lt;p&gt;&amp;nbsp;The LP uart is merged:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/2591"&gt;https://github.com/nrfconnect/sdk-nrf/pull/2591&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, this is&amp;nbsp;merged fairly recently, and wider scale testing is currently in progress.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HCI UART Issues on nRF Connect SDK 1.3.0</title><link>https://devzone.nordicsemi.com/thread/271869?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 17:17:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:468f9c01-8b61-462b-91e9-f784c6a1e1e2</guid><dc:creator>Cody</dc:creator><description>&lt;p&gt;Thanks &lt;a href="https://devzone.nordicsemi.com/members/hakon"&gt;Hakon&lt;/a&gt;,&lt;br /&gt;&lt;br /&gt;Do you have a rough time estimate regarding when UART stability will be fixed as well as the introduction of low power UART? These are both incredibly important for our product so if you can keep me in the loop that would be much appreciated. In the meantime, I will continue to use the HCI UART firmware built off of v.1.2.0.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Cody&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HCI UART Issues on nRF Connect SDK 1.3.0</title><link>https://devzone.nordicsemi.com/thread/271851?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 15:09:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:044ab5cd-d870-4b62-af15-ebc7d72be313</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Cody,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="CRSharff"]This may be due to the fact that the chip is not resetting based on an error and instead, is being reset by the nRF9160. In h4.c, in the location where I am seeing the error statements, I see references to a reset_rx() function being called.[/quote]
&lt;p&gt;I must apologise for the late reply. I checked around in support and in R&amp;amp;D, and there has been observed some issues on ncs v1.3.0 wrt. UART stability.&lt;/p&gt;
&lt;p&gt;I can confirm that we have seen instabilities lately, and we are working on finding the root-cause. There has been work on trying to re-write the uart transport functions &lt;a href="https://github.com/zephyrproject-rtos/zephyr/pull/27917"&gt;in this PR&lt;/a&gt;, but a colleague of mine has tested this just last week, but still saw some issues. If you have a older build of hci_uart that works for now, I would recommend that you stick with this one for the time being.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HCI UART Issues on nRF Connect SDK 1.3.0</title><link>https://devzone.nordicsemi.com/thread/271588?ContentTypeID=1</link><pubDate>Fri, 25 Sep 2020 18:03:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fcc624c-deb5-4ba7-99b8-c0e12c567fe8</guid><dc:creator>Cody</dc:creator><description>&lt;p&gt;Hey&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/hakon"&gt;Hakon&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;I added the suggested line of configuration to the HCI UART project. Unfortunately, I did not observe any change in behavior. This may be due to the fact that the chip is not resetting based on an error and instead, is being reset by the nRF9160. In h4.c, in the location where I am seeing the error statements, I see references to a reset_rx() function being called.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Cody&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HCI UART Issues on nRF Connect SDK 1.3.0</title><link>https://devzone.nordicsemi.com/thread/271248?ContentTypeID=1</link><pubDate>Thu, 24 Sep 2020 08:08:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f2bec05-a647-4c2f-af41-35f2fb615a6f</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Cody,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try adding this config on the nRF52-side, to force it not to reset&amp;nbsp;if a fault occurs?&lt;/p&gt;
&lt;p&gt;CONFIG_RESET_ON_FATAL_ERROR=n&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the case of an error, you should get a print out: but if there&amp;#39;s no print out, you can enter debug mode and look for a stack frame similar to this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#3  0x0000fea0 in z_fatal_error (reason=0, esf=0x20001390 &amp;lt;_interrupt_stack+1984&amp;gt;)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Most debuggers let you select the frame in one way or another (right-clicking in the call stack window, selecting the frame) and look into the specific locals.&lt;/p&gt;
&lt;p&gt;Here, the debug info is available in the &amp;quot;esf&amp;quot; pointer, with information about where the fault occurred and what the register content was at this time.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HCI UART Issues on nRF Connect SDK 1.3.0</title><link>https://devzone.nordicsemi.com/thread/271191?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2020 19:38:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99b4c45d-1cb8-4673-8800-b5ca30a9ea99</guid><dc:creator>Cody</dc:creator><description>&lt;p&gt;Hey&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/hakon"&gt;Hakon&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Sorry for the delayed response, just finally getting back to looking into this.&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t see any pattern to this issue, I would say that I am in an area with a non-trivial amount of bluetooth devices advertising, I would guess around 50 devices. With that said, my use case is simple, I am only using the nRF52840 to scan for devices and read the advertising packet/scan response packet - no connections are ever being made.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I do see indications of a reboot on the nRF52 side, if I run a simple firmware on the nRF9160 side that enables bluetooth (via HCI UART) and initiates a scan and let that run while debugging the nRF52 side, I do see the chip restarting.&lt;br /&gt;&lt;br /&gt;One new piece of information I have is that the HCI UART firmware from nRF Connect SDK v1.0 and v1.1 appear to be working fine, I am trying to confirm at what point the firmware stopped working (currently working on testing v1.2).&lt;br /&gt;&lt;br /&gt;UPDATE: Tested nRF Connect v1.2.0, HCI UART firmware still works so it was definitely broken somewhere between the official release of v1.2.0 and v1.3.0.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Cody&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HCI UART Issues on nRF Connect SDK 1.3.0</title><link>https://devzone.nordicsemi.com/thread/264055?ContentTypeID=1</link><pubDate>Tue, 11 Aug 2020 12:42:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:defcdb2f-ff32-49da-a16b-38f5ccf35976</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Cody,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="CRSharff"]I usually see the error messages and the behavior noted in the original post within a minute of engaging the bluetooth scan.[/quote]
&lt;p&gt;&amp;nbsp;Is there any patterns towards what causes this? A lot of advertisers in the area or an incoming connection?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user="CRSharff"]I hooked up the JLink to the nRF 52840 and attempted to observe any interesting log output, but after 5-10 minutes nothing was seen on the RTT console (other than the initial log output). I can try and increase bluetooth related verbosity in the HCI UART firmware and monitor again.[/quote]
&lt;p&gt;No indications of a reboot? What about debugging the target, setting a breakpoint in main; then resuming? If it hits the breakpoint again, it has been reset.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HCI UART Issues on nRF Connect SDK 1.3.0</title><link>https://devzone.nordicsemi.com/thread/263695?ContentTypeID=1</link><pubDate>Fri, 07 Aug 2020 21:28:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe933a6c-4564-46b9-995e-cac2d1e95c71</guid><dc:creator>Cody</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/hakon"&gt;Hakon&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Yeah, I have done a lot of work&amp;nbsp;porting/updating&amp;nbsp;the solution to v1.3.0&amp;nbsp; (based on patches provided by&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/sigurdon"&gt;Sigurd&lt;/a&gt;). Don&amp;#39;t read in to the 17 minute timestamps too deeply, it just so happened to be what I snagged from the RTT viewer at the time. I usually see the error messages and the behavior noted in the original post within a minute of engaging the bluetooth scan.&lt;/p&gt;
&lt;p&gt;I hooked up the JLink to the nRF 52840 and attempted to observe any interesting log output, but after 5-10 minutes nothing was seen on the RTT console (other than the initial log output). I can try and increase bluetooth related verbosity in the HCI UART firmware and monitor again.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Cody&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HCI UART Issues on nRF Connect SDK 1.3.0</title><link>https://devzone.nordicsemi.com/thread/263386?ContentTypeID=1</link><pubDate>Thu, 06 Aug 2020 09:20:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa72caaf-ca9f-40fe-8873-2373045ad7f4</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Cody,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There&amp;#39;s several changes required in order to get this running properly on v1.3.0 (which we unfortunately haven&amp;#39;t updated the patches to), but judging by the log, it seems that you have that sorted out.&lt;/p&gt;
&lt;p&gt;Its this that is printing the error on your side:&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/master/drivers/bluetooth/hci/h4.c#L91"&gt;https://github.com/zephyrproject-rtos/zephyr/blob/master/drivers/bluetooth/hci/h4.c#L91&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There are some inherit drawbacks with this two-chip solution, one is that the host (nrf91) does not have a recovering mechanism if the hci controller (nrf52) resets (where it sends a BT_OP_NOP cmd). It seems like you are able to run for 17 minutes before this occurs. One drawback with the thingy:91 is that you cannot debug both MCUs simultaneously. Have you tried to look at the log from the nRF52840 (enable RTT for logging) to see if it resets mid-sequence?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HCI UART Issues on nRF Connect SDK 1.3.0</title><link>https://devzone.nordicsemi.com/thread/263075?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2020 17:17:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14807976-fa38-48d7-826c-008667d7a31a</guid><dc:creator>Cody</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://devzone.nordicsemi.com/members/hakon"&gt;Hakon&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;The configuration option &amp;quot;&lt;span&gt;CONFIG_BT_HCI_TX_STACK_SIZE&amp;quot; is not directly settable by the user. Based on the configuration in my project, the nRF52840 HCI UART firmware selects a&amp;nbsp;CONFIG_BT_HCI_TX_STACK_SIZE of size 640 and the nRF9160 application firmware selects a&amp;nbsp;CONFIG_BT_HCI_TX_STACK_SIZE of size 512.&lt;br /&gt;&lt;br /&gt;I was able to manually edit the Kconfig file at&amp;nbsp;zephyr/subsys/bluetooth/host/Kconfig and modify this value for testing purposes to 2048 on both the nRF52840 and nRF9160 side but even with such a large increase I am still seeing the messages in my original post.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks,&lt;br /&gt;Cody&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HCI UART Issues on nRF Connect SDK 1.3.0</title><link>https://devzone.nordicsemi.com/thread/262801?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2020 12:49:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eead8ff7-3795-4be4-b9b9-50b6be22f983</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It looks like the queue size requirements has changed for your specific scenario between releases.&lt;/p&gt;
&lt;p&gt;According to&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues/12429"&gt;this zephyr-issue&lt;/a&gt;, the fix is to increase &amp;quot;CONFIG_BT_HCI_TX_STACK_SIZE&amp;quot;. What is this currently set to at your end, and could you try to increase this and see if the issue disappears?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>