<?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>nRF53 802.15.4 unit timeout when attached to SWD debugger</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118507/nrf53-802-15-4-unit-timeout-when-attached-to-swd-debugger</link><description>Dear nRF support, 
 nRF5340 custom board 
 nRF NCS 2.5.x 
 Running into this very weird issue: 
 Program runs fine if I don&amp;#39;t attach debugger to it 
 When I do &amp;quot;attach to running program&amp;quot; using Ozone debugger, while it&amp;#39;s past unit, program runs and debugger</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Feb 2025 14:44:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118507/nrf53-802-15-4-unit-timeout-when-attached-to-swd-debugger" /><item><title>RE: nRF53 802.15.4 unit timeout when attached to SWD debugger</title><link>https://devzone.nordicsemi.com/thread/523079?ContentTypeID=1</link><pubDate>Fri, 14 Feb 2025 14:44:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23e91950-e2ba-448a-8684-9170f1757009</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="farhangj"]&lt;p&gt;1- we figured we can debug cpunet just like cpuapp using its own zephyr.elf.. i don&amp;#39;t know why we thought we can&amp;#39;t. my bad.&lt;/p&gt;
&lt;p&gt;2- The issue we were facing looks to be caused by trying to use 2x ipc channels, &lt;span&gt;one for BT/Openthread and the other for custom nrf_rpc messaging.&lt;/span&gt;&amp;nbsp;Although we couldn&amp;#39;t find any documentation saying we shouldn&amp;#39;t have 2x ipcs - we combined into 1 and it seems to be stable now.&lt;/p&gt;[/quote]
&lt;p&gt;Looks like you figured it out before I got back to you!&lt;br /&gt;Sorry for the late answer and good job!&lt;/p&gt;
[quote user="farhangj"]&lt;p&gt;Has this been addressed? In other words do you have a better suggestion on how to read the nRF53 netcore image version?&lt;/p&gt;
&lt;p&gt;Ideally MCUMGR image management would be able to provide netcore FW version and hash sha256 in the same manner that it does for app core.&lt;/p&gt;[/quote]
&lt;p&gt;No, I do not have any better suggestions here. Ideally we should have image management for reading the network core version, but we do not.&lt;/p&gt;
[quote user="farhangj"]&lt;p&gt;Suggestions for nRF:&lt;br /&gt;1- If you could streamline the firmware update of the netcore the same as appcore (right now &amp;quot;image mgmt&amp;quot; : read firmware image version doesn&amp;#39;t work for netcore) that&amp;#39;d be great&lt;/p&gt;
&lt;p&gt;2- our understanding of the IPC/shared ram/spinel implementation is very vague... documentation could be improved such that us developers can actually understand what is going on.&lt;/p&gt;[/quote]
&lt;p&gt;Thanks for the feedback!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF53 802.15.4 unit timeout when attached to SWD debugger</title><link>https://devzone.nordicsemi.com/thread/522544?ContentTypeID=1</link><pubDate>Wed, 12 Feb 2025 00:41:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a29db18-241c-41d4-9cd5-4bf3737681ea</guid><dc:creator>Farhang</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/sigurd-hellesvik"&gt;Sigurd Hellesvik&lt;/a&gt;&amp;nbsp; Updates:&lt;br /&gt;1- we figured we can debug cpunet just like cpuapp using its own zephyr.elf.. i don&amp;#39;t know why we thought we can&amp;#39;t. my bad.&lt;/p&gt;
&lt;p&gt;2- The issue we were facing looks to be caused by trying to use 2x ipc channels, &lt;span data-teams="true"&gt;one for BT/Openthread and the other for custom nrf_rpc messaging.&lt;/span&gt;&amp;nbsp;Although we couldn&amp;#39;t find any documentation saying we shouldn&amp;#39;t have 2x ipcs - we combined into 1 and it seems to be stable now.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Suggestions for nRF:&lt;br /&gt;1- If you could streamline the firmware update of the netcore the same as appcore (right now &amp;quot;image mgmt&amp;quot; : read firmware image version doesn&amp;#39;t work for netcore) that&amp;#39;d be great&lt;/p&gt;
&lt;p&gt;2- our understanding of the IPC/shared ram/spinel implementation is very vague... documentation could be improved such that us developers can actually understand what is going on.&lt;/p&gt;
&lt;p&gt;&lt;span data-teams="true"&gt;IPC/openamp/rpmsg/nrf_rpc/shared ram/ble/openthread. There&amp;#39;s a few options and samples use them in different ways. There&amp;#39;s no unifying guide on what to choose if each scenario.&amp;nbsp;&lt;br /&gt;also there&amp;#39;s a notion of zephyr,ipc_shm which seems is deprecated?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF53 802.15.4 unit timeout when attached to SWD debugger</title><link>https://devzone.nordicsemi.com/thread/521841?ContentTypeID=1</link><pubDate>Fri, 07 Feb 2025 01:55:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cadee34-89aa-4d42-95be-a3396247eeaf</guid><dc:creator>Farhang</dc:creator><description>&lt;p&gt;Thank you Sigurd, we will try that and get back to you.&lt;/p&gt;
&lt;p&gt;1. Is it possible to debug the nRF5340 netcore at all?&lt;/p&gt;
&lt;p&gt;Afterall, it is a core and subject to obscure bugs that need breakpoint style debugging. What&amp;#39;s Nordic&amp;#39;s way of debugging netcore?&lt;/p&gt;
&lt;p&gt;2. Update regarding ticket above: the issue is not limited to debugging, we do get a timeout error on nrf5_init(). And expanding the turnout does not help. We&amp;#39;ve also narrowed it to some changes we had made, borrowed from entropy sample which was needed to get/read the firmware version out of nRF53 netcore.&lt;/p&gt;
&lt;p&gt;We implemented our own &amp;quot;custom rpc&amp;quot; message based on that sample to get a custom word out /#define out of the netcore to know what version it is at.&lt;/p&gt;
&lt;p&gt;Has this been addressed? In other words do you have a better suggestion on how to read the nRF53 netcore image version?&lt;/p&gt;
&lt;p&gt;Ideally MCUMGR image management would be able to provide netcore FW version and hash sha256 in the same manner that it does for app core.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF53 802.15.4 unit timeout when attached to SWD debugger</title><link>https://devzone.nordicsemi.com/thread/521458?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2025 08:19:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8236b76e-5d64-4607-a848-54ba91d4e974</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Good that you push some back!&lt;/p&gt;
[quote user="farhangj"]#1Well, as you know logging gives only a small fraction of info, i.e. there&amp;#39;s almost nothing that can give the same info as breakpoint (instructions or data breakpoints) specially when a crash/reset/assert is involved.[/quote]
&lt;p&gt;I often add more logs to where I want to see more. It is more of a hazzle than debugging but it works. However,&lt;/p&gt;
[quote user="farhangj"]#2: I was on the impression that when I&amp;#39;m debugging the app core in nRF53, the netcore is still doing its thing and I&amp;#39;m not interrupting radio activity.[/quote]
&lt;p&gt;Yes you are right. I missed that this was the 5340, even though you were very clear about it. Also the fact that it is the netcore that fails and not the appcore.&lt;/p&gt;
[quote user="farhangj"]#3- what is the current recommendation of debugging software with nRF/nRF NCS? Is it still ozone?[/quote]
&lt;p&gt;Either Ozone or debugging with the nRF Connect extension for VS Code.&lt;/p&gt;
&lt;p&gt;All this being said, a colleague spotted a possible reason for this: &lt;a href="https://docs.nordicsemi.com/bundle/errata_nRF5340_Rev1/page/ERR/nRF5340/Rev1/latest/anomaly_340_161.html#anomaly_340_161"&gt;Errata 161: RESET: Network core is not fully reset after Force-OFF&lt;/a&gt;.&lt;br /&gt;We are not 100% sure this is the reason for the error you see, so I suggest that you test it in the following way.&lt;/p&gt;
&lt;p&gt;Errata 161 should not trigger if UART is enabled in all images running on the device. Try to set CONFIG_SERIAL for both netcore, appcore and potential bootloaders. Then try again and see if the error still happens.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF53 802.15.4 unit timeout when attached to SWD debugger</title><link>https://devzone.nordicsemi.com/thread/520926?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2025 15:57:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfc09824-2466-4d4f-8572-29ac6c7d0784</guid><dc:creator>Farhang</dc:creator><description>&lt;p&gt;Thanks for the quick response.&lt;/p&gt;
&lt;p&gt;#1Well, as you know logging gives only a small fraction of info, i.e. there&amp;#39;s almost nothing that can give the same info as breakpoint (instructions or data breakpoints) specially when a crash/reset/assert is involved.&lt;/p&gt;
&lt;p&gt;#2: I was on the impression that when I&amp;#39;m debugging the app core in nRF53, the netcore is still doing its thing and I&amp;#39;m not interrupting radio activity.&lt;/p&gt;
&lt;p&gt;Also I am not pausing and resuming, I am simply just resetting the app while the debugger is attached. It catches a breakpoint in assert/sys_utils saying radio initi failed.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;#3- what is the current recommendation of debugging software with nRF/nRF NCS? Is it still ozone?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF53 802.15.4 unit timeout when attached to SWD debugger</title><link>https://devzone.nordicsemi.com/thread/520882?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2025 13:25:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a7d0ddb-36ff-47d1-81e3-f4bc3d9cdf07</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Generally, debugging applications that use the radio can lead to faults. This is because radio applications have hard timing requirements and therefore stopping them and then continuing is not a good idea.&lt;/p&gt;
&lt;p&gt;So, while this does not explain exactly what happens in your case, maybe it is enough to convince you to use logging to debug the application instead of debugging.&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>