<?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>Stuck on power down due to GPIO</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35140/stuck-on-power-down-due-to-gpio</link><description>Hello, 
 We are using a nRF52832(peripheral) on a custom board and connecting it to a nRF51822(Central). The nRF52 has one GPIO connected to a button which is used to power down and power on the chip and all the components of the board. In the function</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 Aug 2018 19:33:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35140/stuck-on-power-down-due-to-gpio" /><item><title>RE: Stuck on power down due to GPIO</title><link>https://devzone.nordicsemi.com/thread/142884?ContentTypeID=1</link><pubDate>Fri, 03 Aug 2018 19:33:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b31db42a-2bdc-431f-b1d6-9a5dbd9153e0</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Thanks for letting us know Gowtham, I will then mark this case closed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck on power down due to GPIO</title><link>https://devzone.nordicsemi.com/thread/142675?ContentTypeID=1</link><pubDate>Thu, 02 Aug 2018 15:41:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b387ce80-0a07-45b8-ad71-53583f85925f</guid><dc:creator>TS Gowtham</dc:creator><description>&lt;p&gt;Hi again, sorry for the delay in replying.&lt;/p&gt;
&lt;p&gt;I believe the issue has been solved but I do not know what has fixed it. I realised that the problem was not occurring anymore few weeks ago. The code has been changed quite a few times in between, so I can&amp;#39;t find out the solution.&lt;/p&gt;
&lt;p&gt;&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: Stuck on power down due to GPIO</title><link>https://devzone.nordicsemi.com/thread/138606?ContentTypeID=1</link><pubDate>Mon, 02 Jul 2018 19:50:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b403e9dc-7b4a-4b28-8fab-46fe44c3dc60</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Gowtham,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;did you manage to solve this issue? I would appreciate it if you can help other forum members by giving a solution so that it can benefit them in future.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck on power down due to GPIO</title><link>https://devzone.nordicsemi.com/thread/135918?ContentTypeID=1</link><pubDate>Wed, 13 Jun 2018 12:07:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:782e922a-3e0a-4eaa-92d6-e99afcb244e1</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;SES debugger just stops randomly after 1-2 minutes, this is in itself strange.&lt;/p&gt;
&lt;p&gt;Are you sure that your project settings with memory is correct? seems like the debugger does not able to track the stack could be a hint that there is a stack corruption, which would explain why your debugger initially thought that the problem was in&amp;nbsp;nrf_gpio_pin_set&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck on power down due to GPIO</title><link>https://devzone.nordicsemi.com/thread/135509?ContentTypeID=1</link><pubDate>Mon, 11 Jun 2018 08:49:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dece996e-20ae-487e-98cd-c35add4ebb49</guid><dc:creator>TS Gowtham</dc:creator><description>&lt;p&gt;Sorry for the late reply,&lt;/p&gt;
&lt;p&gt;I have been trying to replicate the problem and check the stack call&amp;nbsp;trace but SES debugger just stops randomly within 1~2 minutes without any error. So I&amp;#39;m unable to replicate the problem and check the stack call trace after the&amp;nbsp;problem occurs&amp;nbsp;on SES. Can you suggest any other tool or debugger I can use to check the stack call trace?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck on power down due to GPIO</title><link>https://devzone.nordicsemi.com/thread/134945?ContentTypeID=1</link><pubDate>Wed, 06 Jun 2018 12:48:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bff4d77f-7d13-4308-841e-5c5ddbae47fc</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;it must be stuck somewhere else, not in the gpio_set function. Make sure that the app has not hardfaulted. Using RTT logs to narrow this down will be slow and tedious, start the debugger and run the code for sometime and halt the cpu, check the stack call trace.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck on power down due to GPIO</title><link>https://devzone.nordicsemi.com/thread/134934?ContentTypeID=1</link><pubDate>Wed, 06 Jun 2018 12:17:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbea80ab-6f30-4fbb-922b-8df384f01097</guid><dc:creator>TS Gowtham</dc:creator><description>&lt;p&gt;We are facing this issue with Visual Studio with VisualGDB and Segger Embedded Studio. I had placed RTT statements to check this issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck on power down due to GPIO</title><link>https://devzone.nordicsemi.com/thread/134928?ContentTypeID=1</link><pubDate>Wed, 06 Jun 2018 12:10:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37e27d42-a9da-42ed-8e38-8cdf22a7f70e</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;ah, sorry, I thought they are physically connected.&lt;/p&gt;
&lt;p&gt;Problems like this should be easily be detectable when you are running the debugger. But you say that &amp;quot;On debugging the board, the program stops when a nrf_gpio_pin_set(PIN) is called&amp;quot;&amp;nbsp; This should not happen since there is nothing in this functions that could make the CPU loop. Maybe your debugger is not showing the correct call trace? Which IDE and compiler are you using? are you debugging with the code that is compiled with 0 optimizations?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck on power down due to GPIO</title><link>https://devzone.nordicsemi.com/thread/134921?ContentTypeID=1</link><pubDate>Wed, 06 Jun 2018 11:56:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec885aa2-7c37-4576-b367-37ecd76e1732</guid><dc:creator>TS Gowtham</dc:creator><description>&lt;p&gt;The issue is occurring on the nRF52, not the nRF51. None of the pins on the nRF51 are used here. The nRF51 is just used to connect to the nRF52 via BLE and get some data. FYI, the nRF 51 and nRF52 are not physically connected.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck on power down due to GPIO</title><link>https://devzone.nordicsemi.com/thread/134906?ContentTypeID=1</link><pubDate>Wed, 06 Jun 2018 11:29:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0086a493-696c-4197-bab1-253525a969e9</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Since the power toggling works correctly when not connected to nRF51, it seems that this pin on nRF51 is configured with wrong pull. Can you keep the input configuration of this pin on nRF51 side with no pulls.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>