<?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>Nrf52 Hang during continuous operation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93984/nrf52-hang-during-continuous-operation</link><description>We are facing an issue in nrf52840 (SDK 15). Our hardware uses timer, SPI, USB, FLASH and uDMA. implemented watchdog timer and its working fine as well intented. But in some cases we feel it device is got hanged ( dont know whether execution happened</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 18 Nov 2022 08:53:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93984/nrf52-hang-during-continuous-operation" /><item><title>RE: Nrf52 Hang during continuous operation</title><link>https://devzone.nordicsemi.com/thread/396350?ContentTypeID=1</link><pubDate>Fri, 18 Nov 2022 08:53:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ddf765b-fa16-417c-848f-70cc1c4bd518</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user="asv"]If device is in loop mode USB interupt or timer interupt may work (Done in threading operation in controller). am i right?[/quote]
&lt;p&gt;Interrupts should work if the application managed to run till the point where the peripheral is configured correctly. But if the application faults or deadlocks before that point, then the peripheral is not configured to generate interrupts. Also make sure that you are compiling your project with no optimizations on code size and speed so that the code is generated for best debug experience.&amp;nbsp;&lt;/p&gt;
[quote user="asv"]if device is in&amp;nbsp; hardfault or some error condition appear can we restart the controller from default location (Similar to WDT)[/quote]
&lt;p&gt;The &lt;a href="https://docs.zephyrproject.org/3.0.0/reference/kernel/other/fatal.html"&gt;fault handler&lt;/a&gt;&amp;nbsp;should allows the application to handle the faults in a custom way. You are free to edit the default fault handling of the fault by the system.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52 Hang during continuous operation</title><link>https://devzone.nordicsemi.com/thread/396270?ContentTypeID=1</link><pubDate>Thu, 17 Nov 2022 15:49:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43407598-9641-4c1d-8acc-6099045f995d</guid><dc:creator>asv</dc:creator><description>&lt;p&gt;Thanks for the feedback.&lt;br /&gt;We added log in maximum&amp;nbsp;possible locations&amp;nbsp;but unfortunately we cant pointed out the issue In debug environement.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="6207" url="~/f/nordic-q-a/93984/nrf52-hang-during-continuous-operation/396168"]loop/hardfault/hanged. [/quote]
&lt;p&gt;If device is in loop mode USB interupt or timer interupt may work (Done in threading operation in controller). am i right?&lt;br /&gt;if device is in&amp;nbsp; hardfault or some error condition appear can we restart the controller from default location (Similar to WDT)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52 Hang during continuous operation</title><link>https://devzone.nordicsemi.com/thread/396168?ContentTypeID=1</link><pubDate>Thu, 17 Nov 2022 10:17:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:060533d3-8125-444a-8469-f85870465715</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Vijay,&lt;/p&gt;
&lt;p&gt;It is a bit hard in this case to even get a direction of suspects which could be causing issue in your case as it is too little information to process.&lt;/p&gt;
[quote user=""]But in some cases we feel it device is got hanged [/quote]
&lt;p&gt;You should add more logs into your application to get a sense of application running or stuck in a loop/hardfault/hanged. This is particularly important since connecting the debugger seems to make the problem go away. There could be some timing issues as well in your application just based on the fact that you see issues only when debugger not connected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>