<?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>call IRQ handler while waking up the MCU from SYSTEM OFF mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44689/call-irq-handler-while-waking-up-the-mcu-from-system-off-mode</link><description>I am using nRF51822 with SDK 10.0. I want to configure a GPIO pin which can wake up the MCU from SYSTEM OFF Mode and call its IRQ handler. Please find below configurations I have done in my code: 
 
 This code can wake up the MCU but it doesn&amp;#39;t call its</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Mar 2019 10:46:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44689/call-irq-handler-while-waking-up-the-mcu-from-system-off-mode" /><item><title>RE: call IRQ handler while waking up the MCU from SYSTEM OFF mode</title><link>https://devzone.nordicsemi.com/thread/175888?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2019 10:46:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73ea4995-0a82-4b6f-9299-9eadcf169493</guid><dc:creator>Maunik Patel</dc:creator><description>&lt;p&gt;Ohk Edvin.&lt;br /&gt;&lt;br /&gt;That was my misunderstanding.&lt;br /&gt;Thanks for clearing it.&lt;br /&gt;Now I have some what clear picture (as compared to previous state) of these sleep modes.&lt;br /&gt;&lt;br /&gt;Thanks for figuring out my issue.&lt;br /&gt;&lt;br /&gt;Thanks a lot Edvin.&amp;nbsp; &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: call IRQ handler while waking up the MCU from SYSTEM OFF mode</title><link>https://devzone.nordicsemi.com/thread/175857?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2019 09:44:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4655be07-5dae-443d-ad66-64813dd91548</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;If I am not mistaken, your link refers to WFE and WFI, which are system-on mode. System off mode is a much deeper &amp;quot;sleep mode&amp;quot;, where the chip is basically turned off. Any interrupt will restart the application from start.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think you are mixing up system-on and system-off sleep modes on the nRF.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: call IRQ handler while waking up the MCU from SYSTEM OFF mode</title><link>https://devzone.nordicsemi.com/thread/175848?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2019 09:21:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbe06c74-f158-47c8-8e3b-c943baa40a2d</guid><dc:creator>Maunik Patel</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;br /&gt;&lt;br /&gt;I got your point and right now implementing it in my project.&lt;br /&gt;Thanks for your time.&lt;br /&gt;&lt;br /&gt;Apart from this, I have gone through &lt;a href="https://www.embedded.com/print/4442697"&gt;this&lt;/a&gt; link.&lt;br /&gt;Table 9.13 on it have 2 columns named &amp;quot;Wake up&amp;quot; and &amp;quot;ISR Execution&amp;quot;.&lt;br /&gt;Some of its rows have YES-YES for both the columns mentioned above.&lt;br /&gt;So I am assuming that we can wake the MCU as well call dedicated IRQ Handler, on a single event, if we fulfill all the conditions mentioned in the table.&lt;br /&gt;Am I missing / misunderstanding some thing here ?&lt;/p&gt;
&lt;p&gt;Can you help me to understand the table and achieve my primary goal using such configurations ?&lt;br /&gt;It will also help me to understand Cortex-M0, deeply.&lt;br /&gt;&lt;br /&gt;Thank You,&lt;br /&gt;Maunik Patel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: call IRQ handler while waking up the MCU from SYSTEM OFF mode</title><link>https://devzone.nordicsemi.com/thread/175632?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2019 12:47:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00d4928c-3e39-46ca-8fbf-8054cd49744d</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;When you go to system off mode, it is like turning off the chip, but you have set this pin as a wakeup source. When the chip wakes up, it will start from the top of main() again, so this event handler is not set up at this point in time, which is why you don&amp;#39;t see this interrupt handler.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you want to enter the application in a specific state on wakeup, I suggest you check the state of the pin on startup, to see whether it is high or low, either enter&amp;nbsp;in_pin_handler_1 or not, based on the state of this pin.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>