<?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>Issues with OpenThread and Bluetooth multiprotocol support locking up</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102952/issues-with-openthread-and-bluetooth-multiprotocol-support-locking-up</link><description>Hi, 
 We&amp;#39;re working with the nRF52840 DK and Dongle, and also the nRF53840 DK. 
 I have code based on the nRF Connect v2.4.0 SDK using OpenThread on 802.15.4 connecting to an OTBR implemented with an nRF52840 dongle running the RCP firmware. 
 I can publish</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 Aug 2023 09:39:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102952/issues-with-openthread-and-bluetooth-multiprotocol-support-locking-up" /><item><title>RE: Issues with OpenThread and Bluetooth multiprotocol support locking up</title><link>https://devzone.nordicsemi.com/thread/443519?ContentTypeID=1</link><pubDate>Tue, 29 Aug 2023 09:39:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2d3621e-3e49-400d-a43a-7d98cc0d05ee</guid><dc:creator>ajlennon</dc:creator><description>&lt;p&gt;And you couldn&amp;#39;t get it to fail? We&amp;#39;re connecting to an OTBR implementation running with an nRF52840 dongle with the RCP firmware. When &lt;a href="https://devzone.nordicsemi.com/members/shreya-patel"&gt;Shreya Patel&lt;/a&gt;&amp;nbsp;tried I think it took up to 15 minutes for her to generate a failure. We weren&amp;#39;t sure it if was related to network activity...&lt;br /&gt;&lt;br /&gt;&lt;a id="" href="https://github.com/DynamicDevices/openthread-border-router-block"&gt;https://github.com/DynamicDevices/openthread-border-router-block&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;github.com/.../main&amp;#160;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with OpenThread and Bluetooth multiprotocol support locking up</title><link>https://devzone.nordicsemi.com/thread/443143?ContentTypeID=1</link><pubDate>Fri, 25 Aug 2023 10:38:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36a434f4-381b-4529-8c6d-af7c4cce0a9c</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I have tested this on my desk with nRF52833 and nRF52840DK.&lt;/p&gt;
&lt;p&gt;Can you give me the details of the network you are connecting to?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with OpenThread and Bluetooth multiprotocol support locking up</title><link>https://devzone.nordicsemi.com/thread/443112?ContentTypeID=1</link><pubDate>Fri, 25 Aug 2023 07:57:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c133e69-64da-4f91-bf25-677adc0a0ef3</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Trying you code now Alex, sorry for delays.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with OpenThread and Bluetooth multiprotocol support locking up</title><link>https://devzone.nordicsemi.com/thread/442993?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2023 13:24:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf63ca13-09e5-4d67-8940-354a1be88de8</guid><dc:creator>ajlennon</dc:creator><description>&lt;p&gt;We&amp;#39;re a bit stuck now &lt;a href="https://devzone.nordicsemi.com/members/aryan"&gt;Susheel Nuguru&lt;/a&gt;&amp;nbsp;Any thoughts or advice ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with OpenThread and Bluetooth multiprotocol support locking up</title><link>https://devzone.nordicsemi.com/thread/442836?ContentTypeID=1</link><pubDate>Wed, 23 Aug 2023 17:26:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5abb2a62-beef-47f8-bfbf-d7b1b8ee121e</guid><dc:creator>Shreya Patel</dc:creator><description>&lt;p&gt;&lt;span&gt;I tried to flash the MTD code on nRF52833 DK and it is able to lock up the CLI after some time&amp;nbsp;(for my OpenThread Network it takes 15 minutes).&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Next, in debug mode, after it locks up (by doing ping 8.8.8.8), I get the below logs every time I try to continue&amp;nbsp;debugging.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1692811597387v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with OpenThread and Bluetooth multiprotocol support locking up</title><link>https://devzone.nordicsemi.com/thread/442632?ContentTypeID=1</link><pubDate>Tue, 22 Aug 2023 17:28:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db461c25-db5e-4a7d-9230-12b221f8be1b</guid><dc:creator>ajlennon</dc:creator><description>&lt;p&gt;A bit more information... the MTD code that fails pinging on the nRF52840 dongle works OK on the nRF52833 DK (!?!)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with OpenThread and Bluetooth multiprotocol support locking up</title><link>https://devzone.nordicsemi.com/thread/442631?ContentTypeID=1</link><pubDate>Tue, 22 Aug 2023 17:25:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ddf6080-d985-456e-b7dd-ad1262ae3c93</guid><dc:creator>ajlennon</dc:creator><description>&lt;p&gt;I can make this lock up every time by running `ot ping 8.8.8.8` (or similar)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with OpenThread and Bluetooth multiprotocol support locking up</title><link>https://devzone.nordicsemi.com/thread/442629?ContentTypeID=1</link><pubDate>Tue, 22 Aug 2023 16:41:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c40eeb1b-ddc4-414e-be0a-d533c46ab77c</guid><dc:creator>ajlennon</dc:creator><description>&lt;p&gt;OK I have simplified everything down&amp;nbsp;and there is a test case here - see README for details&lt;br /&gt;&lt;br /&gt;&lt;a href="https://github.com/DynamicDevices/mps_test"&gt;github.com/.../mps_test&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with OpenThread and Bluetooth multiprotocol support locking up</title><link>https://devzone.nordicsemi.com/thread/442345?ContentTypeID=1</link><pubDate>Mon, 21 Aug 2023 14:11:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e907027e-ab2b-41ec-a6a9-a2577a7f498b</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user="Alex J Lennon"]Good idea on the basic test build - I will put something together - thanks![/quote]
&lt;p&gt;Yes, that would be a good way to narrow down the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with OpenThread and Bluetooth multiprotocol support locking up</title><link>https://devzone.nordicsemi.com/thread/442343?ContentTypeID=1</link><pubDate>Mon, 21 Aug 2023 14:10:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:353470f2-1e9d-4074-809f-a12d6d1eb7bf</guid><dc:creator>ajlennon</dc:creator><description>&lt;p&gt;I&amp;#39;ve tried various things to affect the build and stack size e.g.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;```&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;# Enable OpenThread features set&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#CONFIG_OPENTHREAD_MTD=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_OPENTHREAD_FTD&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#CONFIG_OPENTHREAD_SLAAC=y&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;# Minimise size&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#CONFIG_NET_SOCKETS=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#CONFIG_OPENTHREAD_SHELL=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#CONFIG_COAP=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#CONFIG_COAP_UTILS=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#CONFIG_OPENTHREAD_COAP=n&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;#CONFIG_NRF_802154_SER_LOG=y&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;#CONFIG_ASSERT=y&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;#CONFIG_ISR_STACK_SIZE=4096&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#CONFIG_IDLE_STACK_SIZE=1024&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#CONFIG_BT_RX_STACK_SIZE=4096&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#CONFIG_SHELL_STACK_SIZE=8192&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#CONFIG_NET_RX_STACK_SIZE=4096&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#CONFIG_NET_TX_STACK_SIZE=4096&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#CONFIG_MPSL_WORK_STACK_SIZE=4096&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#CONFIG_PRIVILEGED_STACK_SIZE=2048&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=8192&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#CONFIG_OPENTHREAD_RADIO_WORKQUEUE_STACK_SIZE=4096&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#CONFIG_IPC_SERVICE_BACKEND_RPMSG_WQ_STACK_SIZE=2048&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span&gt;```&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Good idea on the basic test build - I will put something together - thanks!&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with OpenThread and Bluetooth multiprotocol support locking up</title><link>https://devzone.nordicsemi.com/thread/442340?ContentTypeID=1</link><pubDate>Mon, 21 Aug 2023 14:08:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6f484c1-e09d-4913-a28b-71c9b5439945</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;One of our OpenThread expert thinks that this could be memory related and also maybe due to the processing power difference (nRF53 has both more processing power and memory).&lt;/p&gt;
&lt;p&gt;As a first step you could try to increase the stack sizes and see if any of the memory optimizations tips mentioned &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/test_and_optimize/optimizing/memory.html#thread"&gt;here&lt;/a&gt; works. If that does not help, please share a minimalistic project for us to reproduce this.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with OpenThread and Bluetooth multiprotocol support locking up</title><link>https://devzone.nordicsemi.com/thread/442338?ContentTypeID=1</link><pubDate>Mon, 21 Aug 2023 14:05:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91d74f8a-6373-4012-8ea5-272a77d457fc</guid><dc:creator>ajlennon</dc:creator><description>&lt;p&gt;Thanks - please let me know if there&amp;#39;s anything I can turn on in the dongle build that might help in terms of debug info. Happy to make any changes...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with OpenThread and Bluetooth multiprotocol support locking up</title><link>https://devzone.nordicsemi.com/thread/442336?ContentTypeID=1</link><pubDate>Mon, 21 Aug 2023 13:59:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:727c8d35-25eb-4feb-873a-b134537f6769</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Without the debug info, there is little information for me to debug, but I will ask the experts to help me in this. Will be back to you when I find some guidance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with OpenThread and Bluetooth multiprotocol support locking up</title><link>https://devzone.nordicsemi.com/thread/442122?ContentTypeID=1</link><pubDate>Fri, 18 Aug 2023 16:14:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:160d4042-78ec-4623-a1f7-8c9b0fc2270b</guid><dc:creator>ajlennon</dc:creator><description>&lt;ol&gt;
&lt;li&gt;What you do mean by &amp;quot;locking up&amp;quot;?&lt;br /&gt;&lt;br /&gt;Hopefully the above shows this. CLI stops responding&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;Do you have a call stack trace in &amp;quot;locking up&amp;quot; state?&lt;br /&gt;&lt;br /&gt;Unfortunately not.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;Can you start a app in debugger and reproduce the issue and get the context of the code that is being executed in this locked up state?&lt;br /&gt;&lt;br /&gt;Unfortunately not on the dongle&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with OpenThread and Bluetooth multiprotocol support locking up</title><link>https://devzone.nordicsemi.com/thread/442120?ContentTypeID=1</link><pubDate>Fri, 18 Aug 2023 16:12:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62ca0081-2ec8-4fa0-b4fc-b67209db3d38</guid><dc:creator>ajlennon</dc:creator><description>&lt;p&gt;Thanks for responding Susheel. So to try to show you what&amp;#39;s happening a little more easily I&amp;#39;ve created two videos.&lt;/p&gt;
&lt;p&gt;The first shows a forked version of the CLI working in multiprotocol mode on the nRF5340&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://youtu.be/OYG-1Hd4U_c"&gt;https://youtu.be/OYG-1Hd4U_c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The second is the same CLI code built for the nRF52840 dongle. You&amp;#39;ll see it locks up fairly immediately. About 1:30-2 minutes in you can see it gets further then locks up.&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://youtu.be/eps8GdLtuc8"&gt;https://youtu.be/eps8GdLtuc8&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hopefully this gives an indication of what I am seeing.&lt;/p&gt;
&lt;p&gt;Yes I was thinking the same in terms of the dual core versus single core maybe leading to some kinds of overflow.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried a few changes to increase stack sizes but to no avail.&lt;/p&gt;
&lt;p&gt;Any sign-posting on what I could attempt would be much appreciated!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with OpenThread and Bluetooth multiprotocol support locking up</title><link>https://devzone.nordicsemi.com/thread/442045?ContentTypeID=1</link><pubDate>Fri, 18 Aug 2023 09:59:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74aee4ab-437e-4651-a632-87ae3abf9971</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user=""]&lt;p&gt;Can anybody help me understand what I am doing wrong here.&lt;/p&gt;
&lt;p&gt;I assume from the documentation that Bluetooth + OpenThread is supposed to be supported with multiprotocol on nrf52840?&lt;/p&gt;[/quote]
&lt;p&gt;It seems like a stack overflow issue, but to be able to confirm this and debug I would have to know more details from you.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;What you do mean by &amp;quot;locking up&amp;quot;?&lt;/li&gt;
&lt;li&gt;Do you have a call stack trace in &amp;quot;locking up&amp;quot; state?&lt;/li&gt;
&lt;li&gt;Can you start a app in debugger and reproduce the issue and get the context of the code that is being executed in this locked up state?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The CPU on nRF52 is slower than nRF53 (nRF53 also is dual core which makes it even more efficient in pre and post processing of radio packets).&amp;nbsp;&lt;br /&gt;So a single core on nRF52 might not be just enough to process both of your OpenThread and BLE activity and is causing the buffers to overflow (my guess).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with OpenThread and Bluetooth multiprotocol support locking up</title><link>https://devzone.nordicsemi.com/thread/441894?ContentTypeID=1</link><pubDate>Thu, 17 Aug 2023 14:16:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af0c92ed-ecc9-408d-b0e9-c3b350dbdc45</guid><dc:creator>ajlennon</dc:creator><description>[quote userid="8080" url="~/f/nordic-q-a/102952/issues-with-openthread-and-bluetooth-multiprotocol-support-locking-up"]However when I run this code on the nRF52840 DK then it is fine.[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I meant to say when I run on the nRF5340 DK it is fine!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>