<?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>How to know MCU wake up reason ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34614/how-to-know-mcu-wake-up-reason</link><description>Hello, 
 
 I am using sd_power_system_off(); sfunction to put the MCU in sleep mode. I have to wake up events. One is NFC and the other is GPIO. Both wake up functions works well but I need to know that which one occurs When the MCU wakes up from sleep</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 31 May 2018 12:39:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34614/how-to-know-mcu-wake-up-reason" /><item><title>RE: How to know MCU wake up reason ?</title><link>https://devzone.nordicsemi.com/thread/134179?ContentTypeID=1</link><pubDate>Thu, 31 May 2018 12:39:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e23d17c-156a-4b66-a726-89a4cd0edef5</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Hey enkavak,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Sorry for the late reply. Can you reproduce this issue on the nRF52DK?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Håkon.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to know MCU wake up reason ?</title><link>https://devzone.nordicsemi.com/thread/132686?ContentTypeID=1</link><pubDate>Tue, 22 May 2018 08:52:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52e6d89e-03a8-4e21-bbbf-2fa3bf9f86a8</guid><dc:creator>enkavak</dc:creator><description>&lt;p&gt;I found a topic Which explains the reset reason by using the code below. However, I get&amp;nbsp;&lt;strong&gt;0x00000001&amp;nbsp;&lt;/strong&gt;every time MCU wakes up. GPIO or NCF is does not matter. Whatever the reason is I get the same output.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;reset_reason = NRF_POWER-&amp;gt;RESETREAS;
NRF_LOG_PRINTF(&amp;quot;reset_reason: 0x%08x.\n&amp;quot;,reset_reason );&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>