<?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>chip immediatelly wakes up after entering system off</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91251/chip-immediatelly-wakes-up-after-entering-system-off</link><description>Hi, 
 I am developing app using ant softdevice s212. I want nrf52832 to enter system off and stay there until interrupt from sensor occures. This interrupt is connected with sense mechanism. The problem is that right after entering system off, chip wakes</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Aug 2022 11:23:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91251/chip-immediatelly-wakes-up-after-entering-system-off" /><item><title>RE: chip immediatelly wakes up after entering system off</title><link>https://devzone.nordicsemi.com/thread/383447?ContentTypeID=1</link><pubDate>Fri, 26 Aug 2022 11:23:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:801a981a-e44a-4325-8c95-960cfc625352</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Pepam&lt;/p&gt;
&lt;p&gt;You should change the rst variable to uint32_t, otherwise you will not be able to store the full value of the register. If you do this and run the test again you should get a different result.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: chip immediatelly wakes up after entering system off</title><link>https://devzone.nordicsemi.com/thread/383382?ContentTypeID=1</link><pubDate>Fri, 26 Aug 2022 05:56:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c1132b1-6ceb-4e08-a3de-a33c2a32b86b</guid><dc:creator>Pepam</dc:creator><description>&lt;p&gt;Hello ovrebekk,&lt;/p&gt;
&lt;p&gt;I have commented out the line which was responsible for sense setup and chip was still waking up immediatelly. I checked resetreas, and I can read value 4 after powering the board up, but than I can read 0 every time it immediatelly resets. This is how I do resetreas register reset:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    int main(){
        uint8_t rst = 0;
        log_init();
        rst = NRF_POWER-&amp;gt;RESETREAS;
        NRF_LOG_INFO(&amp;quot;RESET REASON : %d&amp;quot;, rst);
        NRF_POWER-&amp;gt;RESETREAS = rst;
        ...
    }&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: chip immediatelly wakes up after entering system off</title><link>https://devzone.nordicsemi.com/thread/383045?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2022 11:27:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afee6fba-b7c6-42b6-892e-a4822729279b</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Pepam&lt;/p&gt;
&lt;p&gt;Do you know if the wakeup is related to the GPIO sense configuration?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To check this you can try to comment out the sense setup in your code, and see if you still get a wakeup right away.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To check why the wakeup occurred you can check the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/power.html?cp=4_2_0_17_8_2#register.RESETREAS"&gt;NRF_POWER-&amp;gt;RESETREAS&lt;/a&gt; register after the reset. Bit 16 indicates that the reset was triggered by a pin detect in system off.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>