<?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>nrf_gpio_pin_set() causes reset</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7346/nrf_gpio_pin_set-causes-reset</link><description>I have a modem connected to some pins on an nRF51822 on a custom board. Two pins on the modem are active low. One is a reset pin, the other a VCC control. I want these pins on the Nordic configured as output but I want them high immediately, because at</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 07 May 2016 16:25:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7346/nrf_gpio_pin_set-causes-reset" /><item><title>RE: nrf_gpio_pin_set() causes reset</title><link>https://devzone.nordicsemi.com/thread/26022?ContentTypeID=1</link><pubDate>Sat, 07 May 2016 16:25:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6635a7a-36f8-45f6-9605-3e59f5859fbf</guid><dc:creator>Spirit</dc:creator><description>&lt;p&gt;I use set and clear for pins definition in other functions, far away from advertising calls.
So this can&amp;#39;t be a problem :(&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_gpio_pin_set() causes reset</title><link>https://devzone.nordicsemi.com/thread/26021?ContentTypeID=1</link><pubDate>Sat, 07 May 2016 14:43:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4da60d74-17fa-45cd-b9bb-9960f3e092ea</guid><dc:creator>Eliot Stock</dc:creator><description>&lt;p&gt;@Spirit I found I had to wait a bit after starting to advertise before I did the GPIO stuff. I just put in a call to nrf_delay_ms() in between, I think.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_gpio_pin_set() causes reset</title><link>https://devzone.nordicsemi.com/thread/26020?ContentTypeID=1</link><pubDate>Sat, 07 May 2016 14:37:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c89f193-fdf0-4a9b-ab91-f4cc16a497bb</guid><dc:creator>Spirit</dc:creator><description>&lt;p&gt;@Eliot Stock
Where exactly did you have a source of your problem?
I have the same issue, but I can&amp;#39;t resolve it -&amp;gt; nrf_gpio_pin_set cause a reset :(&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_gpio_pin_set() causes reset</title><link>https://devzone.nordicsemi.com/thread/26019?ContentTypeID=1</link><pubDate>Sun, 12 Jul 2015 21:57:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f2f0bc3-012c-4cc6-bda8-324d4681160d</guid><dc:creator>Eliot Stock</dc:creator><description>&lt;p&gt;You&amp;#39;re right, it had nothing to do with the GPIO stuff. It was an assert in the soft device cause by starting to advertise and then doing stuff right after that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_gpio_pin_set() causes reset</title><link>https://devzone.nordicsemi.com/thread/26018?ContentTypeID=1</link><pubDate>Sat, 30 May 2015 01:10:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7b1d071-6c23-4922-83f1-09a7950244ca</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Since that macro does nothing but set a bit in the output register I can see no way that could actually be the cause of a reset, unless PIN_SF_VCC_ON is 26 or 27.&lt;/p&gt;
&lt;p&gt;I think you must be failing somewhere else. Start in the hardfault handler, are you going in there, where did you come from? If you reset, what&amp;#39;s the reset reason (read it out of the register).&lt;/p&gt;
&lt;p&gt;(note: you can set a pin high as soon as you make it an output by setting it high first then making it an output, although that has nothing at all to do with your issue).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_gpio_pin_set() causes reset</title><link>https://devzone.nordicsemi.com/thread/26016?ContentTypeID=1</link><pubDate>Fri, 29 May 2015 18:35:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e60d9bd-90bc-4565-92b0-8e2ec31f73b6</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;most likely there is some APP_ERROR_CHECK failure somewhere else, the default behavior for this is a soft reset.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_gpio_pin_set() causes reset</title><link>https://devzone.nordicsemi.com/thread/26017?ContentTypeID=1</link><pubDate>Fri, 29 May 2015 15:31:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30b10d3f-fb56-457c-b034-cb9f1f26ecd7</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Looks like hardware issue.  If that pin is not connected, does is reset as well ?  What happen when that pin turns on ? I guest it switches power on something.  May be you could check to see if it affects the power of the nRF chip.  If the power get pulled bellow the threshold it will cause a reset.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>