<?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>Single step debugging of OpenThread with nRF and Zephyr. Is it possible?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105862/single-step-debugging-of-openthread-with-nrf-and-zephyr-is-it-possible</link><description>Is it possible to use single step debugging with an nRF build of OpenThread and Zephyr? 
 Currently I am hitting timing errors and hard faulting after every breakpoint. 
 
 Is it possible to single step in a Zephyr / OpenThread project, i.e. without the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Nov 2023 13:43:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105862/single-step-debugging-of-openthread-with-nrf-and-zephyr-is-it-possible" /><item><title>RE: Single step debugging of OpenThread with nRF and Zephyr. Is it possible?</title><link>https://devzone.nordicsemi.com/thread/457876?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 13:43:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30c53e54-0b11-495f-b8e7-9140bcb28dc2</guid><dc:creator>BenFT</dc:creator><description>&lt;p&gt;I think you are right. We have now made a build which removes MPSL but with NCS back in and we can now debug. OpenThread is still working.&lt;/p&gt;
&lt;p&gt;Thanks for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Single step debugging of OpenThread with nRF and Zephyr. Is it possible?</title><link>https://devzone.nordicsemi.com/thread/457845?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 13:01:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af9f2dcf-827a-4742-b697-b338428421b3</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="BenFT"]Do you know why this would be different?[/quote]
&lt;p&gt;The main difference I can think of is that in the nRF Connect SDK, we use &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/mpsl/README.html"&gt;MPSL&lt;/a&gt; for OpenThread, which may be more sensitive to debugging than the zephyr library.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Single step debugging of OpenThread with nRF and Zephyr. Is it possible?</title><link>https://devzone.nordicsemi.com/thread/457774?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 09:23:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2583863b-ac9f-40fb-a493-8e68f3ed0134</guid><dc:creator>BenFT</dc:creator><description>&lt;p&gt;We are not using Bluetooth at the moment, but would like to add in the future.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Single step debugging of OpenThread with nRF and Zephyr. Is it possible?</title><link>https://devzone.nordicsemi.com/thread/457773?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 09:21:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6e685e7-cd8c-43e7-a8ae-d733a0689c16</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Do you use Bluetooth alongside Thread in any of the applications (NCS or zephyr)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Single step debugging of OpenThread with nRF and Zephyr. Is it possible?</title><link>https://devzone.nordicsemi.com/thread/457769?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 09:11:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67304fd0-6186-40a8-9e98-cf3e1e1e79d1</guid><dc:creator>BenFT</dc:creator><description>&lt;p&gt;One of our team has recompiled the project for Zephyr with OpenThread excluding NCS and is able to set breakpoints and continue, or single step. It&amp;#39;s not perfect as expected, there will be timeouts, but it will certainly make system debugging a lot easier.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you know why this would be different?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Single step debugging of OpenThread with nRF and Zephyr. Is it possible?</title><link>https://devzone.nordicsemi.com/thread/457328?ContentTypeID=1</link><pubDate>Fri, 24 Nov 2023 13:19:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23e310fe-3824-45c1-857f-2fa95f9e9abd</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;I see that you created a new case for the OpenThread and TLS issue.&lt;br /&gt;Good idea, as this case is originally about debugging and not TLS.&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s continue in the new case: &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/106008/tls-in-ot-cli-example"&gt;TLS in OT CLI example&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Single step debugging of OpenThread with nRF and Zephyr. Is it possible?</title><link>https://devzone.nordicsemi.com/thread/457209?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2023 14:57:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a51cc1a3-555a-474b-852a-7103544a7013</guid><dc:creator>BenFT</dc:creator><description>&lt;p&gt;Thanks for the reply.&lt;br /&gt;The TCP works, driving it from the CLI in our project build.&lt;br /&gt;The TLS, using the CLI does not.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have compared our CLI example/project with the Net Sockets TCP Client/Server examples and their config to come up with the options above. I have reduced the MBEDTLS_HEAP_SIZE as it was massive before and doesn&amp;#39;t fit the DK with the other code.&lt;/p&gt;
&lt;p&gt;There is detail on driving the TCP tests in the samples documentation, all good. But nothing on adding TLS so any info on adding that would be appreciated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Single step debugging of OpenThread with nRF and Zephyr. Is it possible?</title><link>https://devzone.nordicsemi.com/thread/457206?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2023 14:53:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d00636e-9e8b-406c-98e0-d8f23b0590c5</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="BenFT"]TCP works fine using the OT CLI.[/quote]
&lt;p&gt;After some headscratching, I think I got an idea here.&lt;/p&gt;
&lt;p&gt;If it works for the OT Cli sample, but not your project, I suggest that you compare build/zephyr/.config for both of these projects, and see if you can find which difference seems to matter for the mbedtls TLS here.&lt;/p&gt;
&lt;p&gt;Does that work for you?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Single step debugging of OpenThread with nRF and Zephyr. Is it possible?</title><link>https://devzone.nordicsemi.com/thread/456736?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2023 15:12:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7dd077d-bbfd-4487-b955-bac766b1e03f</guid><dc:creator>BenFT</dc:creator><description>&lt;p&gt;OK. I can see it might be tricky.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Currently I am trying to get the TLS comms over TCP over OpenThread to work in the CLI example (which we have combined with our own app). TCP works fine using the OT CLI.&lt;br /&gt;The TLS handshake fails with error -27136 or -0x6a00 which is&amp;nbsp;MBEDTLS_ERR_SSL_BUFFER_TOO_SMALL.&lt;/p&gt;
&lt;p&gt;I was trying to step through to see if the test/dummy credentials have been setup correctly to allow the example to work and find out if either the buffer is too small or the credentials are too large (or are not defined).&lt;/p&gt;
&lt;p&gt;My setting for this are:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_OT_CLI_ENABLED&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;# Network shell&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SHELL&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_OPENTHREAD_SHELL&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_OPENTHREAD_NORDIC_LIBRARY_MASTER&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NET_L2_OPENTHREAD&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NETWORKING&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MQTT_LIB&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MQTT_LIB_TLS&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NET_SOCKETS_SOCKOPT_TLS&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_TLS_CREDENTIALS&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;CONFIG_OPENTHREAD_TCP_ENABLE&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NET_BUF_RX_COUNT&lt;/span&gt;&lt;span&gt;=100&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NET_BUF_TX_COUNT&lt;/span&gt;&lt;span&gt;=100&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MBEDTLS&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MBEDTLS_BUILTIN&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MBEDTLS_ENABLE_HEAP&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MBEDTLS_HEAP_SIZE&lt;/span&gt;&lt;span&gt;=10240&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN&lt;/span&gt;&lt;span&gt;=2048&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NET_LOG&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NET_SOCKETS_LOG_LEVEL_DBG&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MBEDTLS_LOG_LEVEL_DBG&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_TLS_CREDENTIALS_LOG_LEVEL_DBG&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Single step debugging of OpenThread with nRF and Zephyr. Is it possible?</title><link>https://devzone.nordicsemi.com/thread/456708?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2023 14:23:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bb70cd6-4817-4c7e-9d1f-0efe9a7cb892</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Ben,&lt;/p&gt;
&lt;p&gt;See &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/thread-aware-debugging-with-nrf-connect-sdk"&gt;Thread aware debugging with nRF Connect SDK&lt;/a&gt; .&lt;/p&gt;
&lt;p&gt;In general, debugging can be tricky with wireless protocols due to their realtime nature.&lt;/p&gt;
&lt;p&gt;As an alternative, you can try to use logging to debug your OpenThread application.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>