<?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>GPIO value after wake up from GPIO</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38550/gpio-value-after-wake-up-from-gpio</link><description>Hi everyone, 
 
 I&amp;#39;m currently working on a nrf52832 board and i got an issue on Gpio config after a reset. 
 I configure a gpio with a register value of 4, low level, output pin and clear it before calling sd_power_system_off(); 
 I wake up with a GPIO</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Sep 2018 12:04:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38550/gpio-value-after-wake-up-from-gpio" /><item><title>RE: GPIO value after wake up from GPIO</title><link>https://devzone.nordicsemi.com/thread/149218?ContentTypeID=1</link><pubDate>Tue, 18 Sep 2018 12:04:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0f6b5a5-4adb-4076-ace2-660eac96da18</guid><dc:creator>BasileC</dc:creator><description>&lt;p&gt;Yes my main problem was the debug mode issue, it&amp;#39;s solved now.&lt;/p&gt;
&lt;p&gt;But a&amp;nbsp; gpio init with NRF_GPIO_PIN_NOPULL should keep the same state at start and instead it changed it.&lt;/p&gt;
&lt;p&gt;Anyway thanks for your help Kenneth !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO value after wake up from GPIO</title><link>https://devzone.nordicsemi.com/thread/149114?ContentTypeID=1</link><pubDate>Mon, 17 Sep 2018 18:53:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8ffd93e-0edc-40b1-a53e-f5dbc879ce41</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Not sure if I understand the problem, but there is no need to re-init the GPIO after a system OFF, so you may just have a check&amp;nbsp;RESETREAS register if reset reason is from system OFF then skip init of GPIOs?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO value after wake up from GPIO</title><link>https://devzone.nordicsemi.com/thread/149048?ContentTypeID=1</link><pubDate>Mon, 17 Sep 2018 13:02:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f95fa3a3-f6c9-4e7e-84d5-467ff1473acb</guid><dc:creator>BasileC</dc:creator><description>&lt;p&gt;Didn&amp;#39;t knew about this, i tried and it works indeed but only if my Gpio is not initialized.&lt;br /&gt;&lt;br /&gt;For example :&lt;br /&gt;&lt;br /&gt;nrf_gpio_pin_clear(EXTINT_GPS_PIN);&lt;/p&gt;
&lt;p&gt;sd_power_system_off();&lt;/p&gt;
&lt;p&gt;// System is now OFF&lt;/p&gt;
&lt;p&gt;During my start-up phase i got init_gpio() called with in :&lt;/p&gt;
&lt;p&gt;nrf_gpio_cfg_input(EXTINT_GPS_PIN, NRF_GPIO_PIN_NOPULL);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If i comment the last line, my gpio got the right state (value = 0) but if i initialize it I got value = 1.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s a known issue ?&lt;/p&gt;
&lt;p&gt;However thanks i didin&amp;#39;t know for the gpio debug issue.&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.Rev1.errata/anomaly_832_81.html#anomaly_832_81"&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIO value after wake up from GPIO</title><link>https://devzone.nordicsemi.com/thread/149009?ContentTypeID=1</link><pubDate>Mon, 17 Sep 2018 11:43:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:967cae66-9845-47d8-b90b-cbed2a486deb</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The NRF_GPIO peripheral should maintain configuration, however if you have peripheral (e.g. TWI, UART etc) controlling the pins, then during wakeup from system off it will fall back to the actual NRF_GPIO configuration. So make sure that before you go to sleep (system OFF) that you set NRF_GPIO pins to the state you want them to have when wakeup.&lt;/p&gt;
&lt;p&gt;Also make sure you are not in debug mode during sleep, because of this errata:&lt;br /&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.Rev1.errata/anomaly_832_81.html#anomaly_832_81"&gt;http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.Rev1.errata/anomaly_832_81.html#anomaly_832_81&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>