<?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>Setting up Deep Sleep and Wake Up interrupt</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101103/setting-up-deep-sleep-and-wake-up-interrupt</link><description>Hi 
 I have a nordic NRF52833 interfacing an IMU using I2C and an interrupt signal going to GPIO 13 on the NRF device. 
 
 I am using Zephyr and I was able to integrate the IMU driver LISD2/3H including the wake up interrupt. However, when trying to put</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 26 Jun 2023 10:07:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101103/setting-up-deep-sleep-and-wake-up-interrupt" /><item><title>RE: Setting up Deep Sleep and Wake Up interrupt</title><link>https://devzone.nordicsemi.com/thread/432907?ContentTypeID=1</link><pubDate>Mon, 26 Jun 2023 10:07:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e91f463-9d1c-4027-95cc-46d467cdc788</guid><dc:creator>Vidar Berg</dc:creator><description>[quote user="jptalledo"]Running the System Off Demo provides 250 uA[/quote]
&lt;p&gt;The OFF current should be closer to 0.6 uA. Is there any external circuitry such as the IMU that may account for this extra current?&amp;nbsp;&lt;/p&gt;
[quote user="jptalledo"]It does. Wondering if I need to remove/disable any RTT stuff?[/quote]
&lt;p&gt;It should not be necessary to disable RTT logging. The important thing to prepare before entering System OFF is the GPIO configurations, as the GPIO states are retained in System OFF. We&amp;#39;ve already confirmed that the wake-up pin is configured correctly, but&amp;nbsp;are there other pins that have are not configured to the reset state (i.e., input, disconnect)?&lt;/p&gt;
&lt;p&gt;The PS also states that there shouldn&amp;#39;t be any ongoing DMA transactions when entering System OFF. However, I haven&amp;#39;t seen any cases where this has actually caused any problems.&lt;/p&gt;
&lt;p&gt;Does your board support logging over UART? That would allow you to get debug messages without being in debug mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up Deep Sleep and Wake Up interrupt</title><link>https://devzone.nordicsemi.com/thread/432900?ContentTypeID=1</link><pubDate>Mon, 26 Jun 2023 09:40:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9a2c8cf-68c9-4ec3-9463-bd9369cdc0b6</guid><dc:creator>jptalledo</dc:creator><description>&lt;p&gt;It does. Wondering if I need to remove/disable any RTT stuff?&lt;br /&gt;&lt;br /&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/pastedimage1687772410248v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up Deep Sleep and Wake Up interrupt</title><link>https://devzone.nordicsemi.com/thread/432893?ContentTypeID=1</link><pubDate>Mon, 26 Jun 2023 09:23:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:935f5791-5a30-480d-9f17-e9453522c7e8</guid><dc:creator>jptalledo</dc:creator><description>&lt;p&gt;Running the System Off Demo provides 250 uA. I was expecting something lower but definitely stays there. It seems when the BLE is loaded, somehow it does not go to sleep.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&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/pastedimage1687771397214v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up Deep Sleep and Wake Up interrupt</title><link>https://devzone.nordicsemi.com/thread/432889?ContentTypeID=1</link><pubDate>Mon, 26 Jun 2023 09:17:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d69b5b3-713e-4e48-adbc-478165017b06</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes, SES should exit debug mode after it has loaded the *.hex file.&amp;nbsp;&lt;/p&gt;
[quote user="jptalledo"]Any suggestions how to debug this?[/quote]
&lt;p&gt;Maybe you have done it already, but the first step may be to verify that your program actually reaches the&amp;nbsp;pm_power_state_force() line.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up Deep Sleep and Wake Up interrupt</title><link>https://devzone.nordicsemi.com/thread/432887?ContentTypeID=1</link><pubDate>Mon, 26 Jun 2023 09:09:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1d232e2-b633-476e-965c-493fa175fd76</guid><dc:creator>jptalledo</dc:creator><description>&lt;p&gt;I am using Segger Studio and Downloading the elf file. That should be correct right? I will try the System Off demo next.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up Deep Sleep and Wake Up interrupt</title><link>https://devzone.nordicsemi.com/thread/432884?ContentTypeID=1</link><pubDate>Mon, 26 Jun 2023 08:58:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:120aca4a-4fe3-42da-bb45-d198622dc7b6</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Please try to do a power on reset, or use &amp;quot;nrfjprog --reset&amp;quot;. This is to ensure the device goes out of&amp;nbsp;&lt;a title="Debug Interface mode" href="https://infocenter.nordicsemi.com/topic/ps_nrf52833/dif.html?cp=5_1_0_3_7_3#debuginterfacemode"&gt;Debug Interface mode&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;It would also be good if you could try the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/boards/nrf/system_off/README.html"&gt;nRF5x System Off demo&lt;/a&gt;&amp;nbsp;on your board to see if you get the expected current draw then.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up Deep Sleep and Wake Up interrupt</title><link>https://devzone.nordicsemi.com/thread/432882?ContentTypeID=1</link><pubDate>Mon, 26 Jun 2023 08:55:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54aadde2-28b1-4a63-b54d-9945c06f6601</guid><dc:creator>jptalledo</dc:creator><description>&lt;p&gt;Here is the main.c file that I am using&lt;/p&gt;
&lt;p&gt;.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/217737.main.c"&gt;devzone.nordicsemi.com/.../217737.main.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up Deep Sleep and Wake Up interrupt</title><link>https://devzone.nordicsemi.com/thread/432880?ContentTypeID=1</link><pubDate>Mon, 26 Jun 2023 08:52:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c881375-811f-46b7-b107-bf62957f62a7</guid><dc:creator>jptalledo</dc:creator><description>&lt;p&gt;I tried pressing the reset button. There is a small time window when current goes low but not enough to consider deep sleep&lt;br /&gt;&lt;br /&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/pastedimage1687769547996v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up Deep Sleep and Wake Up interrupt</title><link>https://devzone.nordicsemi.com/thread/432875?ContentTypeID=1</link><pubDate>Mon, 26 Jun 2023 08:38:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:809ce4d7-76ae-47cb-aade-32beaf7fd26e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Does the power consumption remain high if you power cycle the board too?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up Deep Sleep and Wake Up interrupt</title><link>https://devzone.nordicsemi.com/thread/432874?ContentTypeID=1</link><pubDate>Mon, 26 Jun 2023 08:37:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa0b8c2d-0d19-4d03-a6e1-e0a67c024de2</guid><dc:creator>jptalledo</dc:creator><description>&lt;p&gt;I removed the debugger from my board so wondering what else it could be impacting on the system&amp;nbsp; current consumption and not going into power save mode. Any suggestions how to debug this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up Deep Sleep and Wake Up interrupt</title><link>https://devzone.nordicsemi.com/thread/432873?ContentTypeID=1</link><pubDate>Mon, 26 Jun 2023 08:27:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd93adc3-6ef2-471c-8df0-03b9f82fe7be</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, the pin appears to be configured correctly, but judging from the power consumption, it seems that the device is not entering System OFF mode. Did you disconnect the debugger before taking the measurement? If not, it will enter &lt;a title="Emulated System OFF mode" href="https://infocenter.nordicsemi.com/topic/ps_nrf52833/power.html?cp=5_1_0_4_2_2_0#unique_1918818570"&gt;Emulated System OFF mode&lt;/a&gt;&amp;nbsp;and keep&amp;nbsp;the CPU active.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up Deep Sleep and Wake Up interrupt</title><link>https://devzone.nordicsemi.com/thread/432800?ContentTypeID=1</link><pubDate>Sat, 24 Jun 2023 10:52:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d8d2c99-2758-4862-8e08-d2033c60dbda</guid><dc:creator>jptalledo</dc:creator><description>&lt;p&gt;I was expecting current consumption be very low but it is not the case. Not sure how to optimize for ultra low power consumption when I am putting the MCU to sleep.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/segger1.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up Deep Sleep and Wake Up interrupt</title><link>https://devzone.nordicsemi.com/thread/432799?ContentTypeID=1</link><pubDate>Sat, 24 Jun 2023 10:49:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb7fd229-a6f4-4027-ad7d-75149a6ff8e4</guid><dc:creator>jptalledo</dc:creator><description>&lt;p&gt;It seems that P0.13 is configured properly&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/4857.segger.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up Deep Sleep and Wake Up interrupt</title><link>https://devzone.nordicsemi.com/thread/432724?ContentTypeID=1</link><pubDate>Fri, 23 Jun 2023 13:58:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc6d6a7c-c6f8-4673-9fbd-64848af7a102</guid><dc:creator>jptalledo</dc:creator><description>&lt;p&gt;I am using the LISD2H IMU Driver which it is supported and have similar registers to the LISD3H. I will try to answer your question regarding Pin 13.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up Deep Sleep and Wake Up interrupt</title><link>https://devzone.nordicsemi.com/thread/432721?ContentTypeID=1</link><pubDate>Fri, 23 Jun 2023 13:55:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0290ffa8-d83d-4f2c-9b9d-b3c9cbeac568</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I couldn&amp;#39;t spot any errors in the code you posted. Could you please check the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52833/gpio.html?cp=5_1_0_5_7_1_9#register.PIN_CNF-0-31"&gt;PIN_CNF[n]&lt;/a&gt;&amp;nbsp;configuration register for P0.13 right before&amp;nbsp;pm_power_state_force() is called to confirm it is configured correctly?&lt;/p&gt;
&lt;p&gt;You can use the &amp;#39;Peripherals&amp;#39; view in VS code for this:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/pastedimage1687528296609v4.png" alt=" " /&gt;&lt;/p&gt;
[quote user="jptalledo"]I am configuring Button1 as Input/Interrupt but also it is being used by the LISD3H IMU Driver. Wondering if there is a conflict?[/quote]
&lt;p&gt;I didn&amp;#39;t find any references to this driver in the SDK tree. Is it a custom driver you made, or is there anywhere I can find the source code?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up Deep Sleep and Wake Up interrupt</title><link>https://devzone.nordicsemi.com/thread/432500?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2023 11:23:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2e08736-0a0b-43cf-b7fa-4380da06b6fd</guid><dc:creator>jptalledo</dc:creator><description>&lt;p&gt;I am configuring Button1 as Input/Interrupt but also it is being used by the LISD3H IMU Driver. Wondering if there is a conflict?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>