<?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>NRF52832: Disable all wakeup sources</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112702/nrf52832-disable-all-wakeup-sources</link><description>Hi, 
 We would like to disable all wakeup sources before calling sys_poweroff. How to achieve this using Zephyr API? Pin configuration should remain as previously configured. 
 For background, we need to shut down the CPU in case of a low battery. CPU</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Jul 2024 08:09:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112702/nrf52832-disable-all-wakeup-sources" /><item><title>RE: NRF52832: Disable all wakeup sources</title><link>https://devzone.nordicsemi.com/thread/492622?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2024 08:09:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49bdf4a2-95e6-4afd-aabc-f0a151c4a3ee</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;This configuration is highly customized by nrf chips, so there is no general Zephyr API generated for this purpose.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832: Disable all wakeup sources</title><link>https://devzone.nordicsemi.com/thread/492446?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2024 12:17:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:303272c9-7029-4a2f-80af-3abe18c08a60</guid><dc:creator>Rait</dc:creator><description>&lt;p&gt;Thanks. However, as mentioned I am looking for a solution using Zephyr API without the need of reconfiguring individual pins.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832: Disable all wakeup sources</title><link>https://devzone.nordicsemi.com/thread/492429?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2024 11:39:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03b49758-fc85-4c72-ac16-ab13326ce9a2</guid><dc:creator>Charlie</dc:creator><description>&lt;div&gt;
&lt;div&gt;&lt;span&gt;nrf_gpio_cfg&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;pin&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;NRF_GPIO_PIN_DIR_INPUT&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;NRF_GPIO_PIN_INPUT_DISCONNECT&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;pull&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;NRF_GPIO_PIN_S0S1&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;strong&gt;NRF_GPIO_PIN_NOSENSE&lt;/strong&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832: Disable all wakeup sources</title><link>https://devzone.nordicsemi.com/thread/492416?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2024 10:26:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e0ca62e-2102-4d01-8667-36119a927a62</guid><dc:creator>Rait</dc:creator><description>&lt;p&gt;Can you please provide a code snippet?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832: Disable all wakeup sources</title><link>https://devzone.nordicsemi.com/thread/492414?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2024 10:23:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fca4dcf5-b8a6-4db5-9c92-c02dc5bd1473</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;You can try to use GPIO configuration NRF_GPIO_PIN_NOSENSE to disable DETECT signal. This is the actual wake-up source from GPIO.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832: Disable all wakeup sources</title><link>https://devzone.nordicsemi.com/thread/492261?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2024 12:47:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9215797-bdc7-4401-bb28-541d054baaa2</guid><dc:creator>Rait</dc:creator><description>&lt;p&gt;Thanks for the reply.&lt;/p&gt;
&lt;p&gt;GPIO config does not have to survive a reset. The goal is to disable wakeup from any pin configured as input with interrupt(buttons etc.) and also keep the outputs as previously set.&amp;nbsp;&lt;span&gt;LPCOMP&amp;nbsp;and NFC are not used.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Hoping to find a solution that does not involve reconfiguring all individual input pins.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Cheers&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832: Disable all wakeup sources</title><link>https://devzone.nordicsemi.com/thread/492256?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2024 12:38:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76c516ad-7607-4cb2-817e-3cd0fcd238e4</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Rait,&lt;/p&gt;
&lt;p&gt;You can not&amp;nbsp;&lt;span&gt;disable wakeup sources of System OFF mode. It is the lowest power mode you can achieve(0.3 μA at 3 V) and designed with following wakeup sources:&lt;br /&gt;1. The DETECT signal, optionally generated by the GPIO peripheral &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. The ANADETECT signal, optionally generated by the LPCOMP module &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3. The SENSE signal, optionally generated by the NFC module to “wake-on-field” &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;4. A reset&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;There is no chance GPIO can survive power on reset according to specification.&amp;nbsp;GPIO will do initialization after power reset any way, but you can store and load configurations via settings subsystem.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1720095544199v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;You can find more information from&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52832/page/nrf52832_ps.html"&gt;nRF52832 Product Specification (nordicsemi.com)&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>