<?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>Code getting hanged</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38913/code-getting-hanged</link><description>Hi Team, 
 I am using nrf51822 for my project, i have connected a PIR Sensor and a push button also a LED driver WS2811 . 
 I am using ble app uart example as i have to control the connected peripherals, everything is working fine , i am able to get notifications</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 01 Oct 2018 14:00:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38913/code-getting-hanged" /><item><title>RE: Code getting hanged</title><link>https://devzone.nordicsemi.com/thread/151004?ContentTypeID=1</link><pubDate>Mon, 01 Oct 2018 14:00:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:daaf15b6-4425-46a8-bcf1-cd3659e1fb4e</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>[quote user="chetanhiremath"]Is it possible to debug the same when code is running on while loop[/quote]
&lt;p&gt;I&amp;#39;m not sure I understand your question. You should debug the application to see what code is beeing executed when the &amp;quot;code hangs&amp;quot;, or where it is hanging. If you pause the execution when the board &amp;quot;hangs&amp;quot; you should be able to see where it is stuck.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code getting hanged</title><link>https://devzone.nordicsemi.com/thread/150850?ContentTypeID=1</link><pubDate>Sat, 29 Sep 2018 06:06:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca912b5b-b361-41a7-93db-4e541b1ad36d</guid><dc:creator>chetanhiremath</dc:creator><description>&lt;p&gt;Hi Jorgen,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your immediate reply.&lt;/p&gt;
&lt;p&gt;As already&amp;nbsp; i mentioned i am finding the issue in only custom board not in development board and the issue occurs when i send continuous commands.&lt;/p&gt;
&lt;p&gt;Is it possible to debug the same when code is running on while loop, am new for KEIL debugging please let me know on this to process further.&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards,&lt;/p&gt;
&lt;p&gt;Chetan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code getting hanged</title><link>https://devzone.nordicsemi.com/thread/150460?ContentTypeID=1</link><pubDate>Wed, 26 Sep 2018 11:37:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c210289-864c-4e0f-b379-242e907aa856</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You need to &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/10729/my-device-is-freezing-and-restarting"&gt;debug your application&lt;/a&gt; to see which function is returning an error code. Then look in the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.3.0/modules.html?cp=4_0_7_6"&gt;API documentation&lt;/a&gt; to find out what is the reason for the error and fix it.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>