<?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 low power mode / sleep mode [ZephyrsOS]</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118387/nrf52832-low-power-mode-sleep-mode-zephyrsos</link><description>Hi guys, 
 I&amp;#39;m working on this project which was basically a migration from STM32 to the nordic NRF52832 in order to enable the BLE beaconing mode. 
 It has been a challenge to make all of the project to run on ZephyrsOS. However, the code is now at a</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Nov 2025 13:47:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118387/nrf52832-low-power-mode-sleep-mode-zephyrsos" /><item><title>RE: NRF52832 low power mode / sleep mode [ZephyrsOS]</title><link>https://devzone.nordicsemi.com/thread/553569?ContentTypeID=1</link><pubDate>Thu, 06 Nov 2025 13:47:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e81f132-5029-45ec-94c5-900d7813bc9c</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Robert&lt;/p&gt;
&lt;p&gt;The 32.768kHz crystal connected to P0.00 and P0.01 will also not be counted by the nRF52832 while in system OFF mode, as the CPU is turned off entirely.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1.44mA sounds very high if all peripherals are turned off, so I think something hasn&amp;#39;t been shut down correctly, that tthe sys_poweroff() is taking care of for you. It&amp;#39;s hard to say based on this what exactly, so I suggest you create a new DevZone ticket where you describe in detail what you&amp;#39;re doing, what you&amp;#39;re trying to do, and what goes wrong exactly.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 low power mode / sleep mode [ZephyrsOS]</title><link>https://devzone.nordicsemi.com/thread/553492?ContentTypeID=1</link><pubDate>Wed, 05 Nov 2025 20:29:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbf4db0e-deed-4b04-8753-d8fecd454a21</guid><dc:creator>Robert de Brum</dc:creator><description>&lt;p&gt;I have a similar situation that&amp;nbsp;is making me arrive at this same conclusion:&lt;/p&gt;
&lt;p&gt;I need to maintain the RTC even in &amp;quot;low-power&amp;quot; mode so that I can maintain the day/time on an nrf52832-based custom board. I am understanding I will likely need to implement this in software without entering system off mode.&lt;/p&gt;
&lt;p&gt;I have seen in several blogs that I cannot use sys_poweroff(), as this will halt all clock sources. However I do have an external crystal hooked up to p0.00 and p0.01. Is it true that I still can&amp;#39;t use sys_poweroff() even if I have an external clock source?&lt;/p&gt;
&lt;p&gt;When I use sys_poweroff() I can boot back up on button press and I see 46uA drawn while in system off mode. This is good enough for now and I think I can get it lower. However when I replace sys_poweroff() with k_sleep(K_FOREVER) I see 1.44mA drawn. I know my hardware is different but if I am still powering down all peripherals the same way, what would be the reason for the difference between the sys_poweroff()drawing 46uA and k_sleep drawing 1.44mA?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 low power mode / sleep mode [ZephyrsOS]</title><link>https://devzone.nordicsemi.com/thread/521447?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2025 07:34:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26d61136-5dac-480c-b58b-c75920af1cdc</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Fernando&lt;/p&gt;
&lt;p&gt;Glad to hear a lot here is resolved on your end with testing.&lt;/p&gt;
&lt;p&gt;Regarding system ON mode, k_sleep should be sufficient I believe. The RTC should be used if you need a counter to keep track of time or similar while in sleep mode, but should not be necessary in otherwise.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 low power mode / sleep mode [ZephyrsOS]</title><link>https://devzone.nordicsemi.com/thread/521354?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2025 15:10:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4639c001-8925-42bc-bf59-2240574dda0d</guid><dc:creator>Fernando Fontes</dc:creator><description>&lt;p&gt;Hi everyone,&lt;/p&gt;
&lt;p&gt;Following up on this investigation, I&amp;rsquo;ve conducted several tests:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Unsoldered the TDC1000 from the PCB&lt;/strong&gt;
&lt;ul&gt;
&lt;li&gt;No improvements. The average current remained around 42&amp;micro;A.&lt;/li&gt;
&lt;li&gt;However, I no longer needed to configure &lt;code&gt;cs_gpio&lt;/code&gt; as INPUT to achieve this current.&lt;/li&gt;
&lt;li&gt;This suggests that the TDC1000 is responsible for drawing 6mA when the pin is not set as input, likely due to leakage.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Unsoldered the LIS3DH from the PCB&lt;/strong&gt;
&lt;ul&gt;
&lt;li&gt;Significant improvements. The average current dropped from 42&amp;micro;A to 2.5&amp;micro;A, which is close to the expected minimum when not using the DC-DC converter.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Unsoldered the Quectel modem from the PCB&lt;/strong&gt;
&lt;ul&gt;
&lt;li&gt;No improvements.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Since the LIS3DH&amp;rsquo;s expected consumption in low-power mode is about 1&amp;micro;A, the 42&amp;micro;A reading didn&amp;rsquo;t make sense. With the LIS3DH removed, the current consumption was as expected, confirming that the I2C pull-ups were not the issue. However, if &lt;code&gt;LIS_INT&lt;/code&gt; is at logic level 0, a current of 33&amp;micro;A is expected&amp;mdash;adding this to the 2.5&amp;micro;A explains the measured increase.&lt;/p&gt;
&lt;p&gt;To further investigate, I re-soldered the LIS3DH and removed &lt;code&gt;R30&lt;/code&gt;, which resulted in an average current consumption of &lt;strong&gt;3.26&amp;micro;A&lt;/strong&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/pastedimage1738680186810v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;At this point, I believe the issue is mostly resolved, and I don&amp;#39;t expect to get much lower consumption. I also attempted to set the &lt;code&gt;LIS_INT&lt;/code&gt; pin to &lt;strong&gt;OUTPUT_HIGH&lt;/strong&gt; before going to sleep, expecting it to resolve the issue, but it didn&amp;#39;t. Since the correct current consumption is observed with the LIS3DH removed, it seems that the LIS3DH itself is pulling &lt;strong&gt;INT1&lt;/strong&gt; low. I&amp;rsquo;ll continue investigating potential configurations within the LIS3DH to address this (change the interrupt polarity for instance).&lt;/p&gt;
&lt;p&gt;This brings me close to a final solution. However, I have one remaining question:&lt;br /&gt;I can&amp;#39;t use &lt;strong&gt;system off&lt;/strong&gt; since I need periodic wake-ups. What is the best approach to optimize power consumption in &lt;strong&gt;system on&lt;/strong&gt; mode? I assume calling &lt;code&gt;pm_device_action_run(..., PM_DEVICE_ACTION_SUSPEND)&lt;/code&gt; is the correct approach, but what&amp;rsquo;s the best way to sleep until the next wake-up? Is &lt;code&gt;k_sleep()&lt;/code&gt; sufficient, or should I rely on the RTC for better efficiency?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Fernando Fontes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 low power mode / sleep mode [ZephyrsOS]</title><link>https://devzone.nordicsemi.com/thread/520766?ContentTypeID=1</link><pubDate>Thu, 30 Jan 2025 16:06:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:907cade0-8605-4cf3-a418-013113a29325</guid><dc:creator>Fernando Fontes</dc:creator><description>&lt;p&gt;Hi Simon,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;What do you suggest to check if the current is actually going to the nRF52? Cut the CS line and measure there?&lt;/p&gt;
&lt;p&gt;The TDC1000 which is where the CS pins connects to is being powered via two different pmos:&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/pastedimage1738252279652v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Since the pmos is off there&amp;#39;s no voltage going to the supply pins (VDD1, VDD2, VIO). There is always some leakage but not enough to power the TDC1000. That&amp;#39;s why it&amp;#39;s super strange the 6mA. Shouldn&amp;#39;t the&amp;nbsp;&lt;span&gt;gpio_pin_configure_dt&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;cs_gpio&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;GPIO_OUTPUT_INACTIVE) make the pin to low logic level? Meaning, 0V? That would make almost impossible for current to be flowing trough the CS pin.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ppk2_2D00_6mA.ppk2"&gt;devzone.nordicsemi.com/.../ppk2_2D00_6mA.ppk2&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ppk2_2D00_50u.ppk2"&gt;devzone.nordicsemi.com/.../ppk2_2D00_50u.ppk2&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;ve uploaded the 6mA (1 min) version and the 50uA (3 min) version. Sorry, reduced to 1 min when I saw the file size :).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Fernando Fontes&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 low power mode / sleep mode [ZephyrsOS]</title><link>https://devzone.nordicsemi.com/thread/520700?ContentTypeID=1</link><pubDate>Thu, 30 Jan 2025 12:14:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95bd7e06-90b0-47a2-a659-90e1f382a2f4</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Thank you. I discussed this with a colleague today, and have some more suggestions here. Have you checked that the 6mA actually goes to the nRF52. That this current is actually drawn by the nRF52 here and that it goes over the P0.18. Please also make sure that the sensor P0.18 is connected and powered by the same VDD as the nRF52, as powering the board through the CS pin might result in something like that.&lt;/p&gt;
&lt;p&gt;Can you export and upload the .ppk files here so we can take a closer look at the power consumption you&amp;#39;re seeing. I&amp;#39;m glad to read you&amp;#39;ve found some sort of a workaround, but the 6mA floor current definitely shouldn&amp;#39;t be there, so there is something causing this.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 low power mode / sleep mode [ZephyrsOS]</title><link>https://devzone.nordicsemi.com/thread/520580?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2025 15:07:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:976a6f1c-a2f7-4ed5-9b3f-a718ecc6b4b0</guid><dc:creator>Fernando Fontes</dc:creator><description>&lt;p&gt;Ok, so I&amp;#39;ve been playing around with the gpio configuration by&amp;nbsp;calling the&amp;nbsp;&lt;span&gt;gpio_pin_configure_dt() and this was what I got:&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;gpio_pin_configure_dt&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;cs_gpio&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;GPIO_INPUT&lt;/span&gt;&lt;span&gt;):&lt;/span&gt;&lt;/div&gt;
&lt;/div&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/pastedimage1738150526780v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;gpio_pin_configure_dt&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;cs_gpio&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;GPIO_OUTPUT_INACTIVE):&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/pastedimage1738150708108v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve measured with the multimeter and oscilloscope and when the P0.18 is configured as&amp;nbsp;&lt;span&gt;GPIO_OUTPUT_INACTIVE the voltage is around 2V and with&amp;nbsp;GPIO_INPUT is 0V. It doesn&amp;#39;t make sense for GPIO_OUTPUT_INACTIVE to make the voltage around 2V right?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CS line is only connecting the MCU and the TDC1000. Nothing else connected on that line.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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/pastedimage1738162716184v4.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I also don&amp;#39;t have any clue from where does this 1mA pulses are coming from. At the beginning I&amp;nbsp;thought&amp;nbsp;it was the LIS3D accelerometer, but that are the 400uA. Disabling the accel by setting ODR to 0 gives me this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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/pastedimage1738162500577v3.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Is the CPU waking up?&lt;/p&gt;
&lt;p&gt;With the following code, I can fix the 6mA issue, since I force the pin to go to input mode before sleeping.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/*
 * Copyright (c) 2019 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#include &amp;lt;inttypes.h&amp;gt;
#include &amp;lt;stdio.h&amp;gt;

#include &amp;lt;zephyr/device.h&amp;gt;
#include &amp;lt;zephyr/drivers/gpio.h&amp;gt;
#include &amp;lt;zephyr/drivers/sensor.h&amp;gt;
#include &amp;lt;zephyr/kernel.h&amp;gt;
#include &amp;lt;zephyr/pm/device.h&amp;gt;
#include &amp;lt;zephyr/sys/poweroff.h&amp;gt;
#include &amp;lt;zephyr/sys/util.h&amp;gt;
#include &amp;lt;zephyr/pm/device.h&amp;gt;

#define SPI_NODE DT_NODELABEL(spi1)

static const struct device *spi_dev = DEVICE_DT_GET(SPI_NODE);
static const struct gpio_dt_spec cs_gpio = GPIO_DT_SPEC_GET_BY_IDX(SPI_NODE, cs_gpios, 0);
const struct device *const sensor = DEVICE_DT_GET_ANY(st_lis2dh);

int main(void)
{
	struct sensor_trigger trig;
    int rc;

    trig.type = SENSOR_TRIG_DATA_READY;
    trig.chan = SENSOR_CHAN_ACCEL_XYZ;

	// turn off
    struct sensor_value odr = {
        .val1 = 0,
    };

    rc = sensor_attr_set(sensor, trig.chan,
                         SENSOR_ATTR_SAMPLING_FREQUENCY,
                         &amp;amp;odr);

	pm_device_action_run(spi_dev, PM_DEVICE_ACTION_SUSPEND);

	gpio_pin_configure_dt(&amp;amp;cs_gpio, GPIO_INPUT);

	sys_poweroff();

	return 0;
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m also attaching the&amp;nbsp;zephyr.dts and&amp;nbsp;zephyr.map of this build.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7725.zephyr.map"&gt;devzone.nordicsemi.com/.../7725.zephyr.map&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1057.zephyr.dts"&gt;devzone.nordicsemi.com/.../1057.zephyr.dts&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Fernando Fontes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 low power mode / sleep mode [ZephyrsOS]</title><link>https://devzone.nordicsemi.com/thread/520380?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2025 14:07:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e04c252f-e7a4-47bc-8c4c-58b597391c1c</guid><dc:creator>Fernando Fontes</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Thank you for the ongoing support.&lt;/p&gt;
&lt;p&gt;The example prints a message every time it goes into sleep mode. I was trusting that. Then I moved to my original setup and I&amp;rsquo;ve disabled the logs in the conf.proj file.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;m using the power profiler kit 2 in voltage mode to measure the power consumption. The programmer is not connected. I&amp;rsquo;ve this difference from 50uA to 6mA when the SPI is enabled with the CS pin on the P0.18 port.&lt;/p&gt;
&lt;p&gt;Tomorrow I will be on the lab and I will measure the pin to try to get more insights on what is happening when it goes to sleep mode.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I will also try to upload the files later today or tomorrow.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;So, there is nothing obvious regarding the P0.18 that could be causing this?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Fernando Fontes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 low power mode / sleep mode [ZephyrsOS]</title><link>https://devzone.nordicsemi.com/thread/520357?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2025 12:12:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c2877ac-4288-4a95-898c-5191daeb37e1</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;How do you verify that you&amp;#39;re in an idle mode on your end here. How do you measure current consumption, and can you confirm that a debugger isn&amp;#39;t attached and running or that debug mode isn&amp;#39;t enabled, as that would cause pin P0.18 to be active.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you checked the signal on P0.18 when seeing this high current consumption to see what&amp;#39;s happening on that pin. Try setting the P0.18 to an idle level and see if that affects the current consumption.&lt;/p&gt;
&lt;p&gt;Can you upload the zephyr.dts file of these two builds here so we can see what the differences are. Please also upload the memory map for reference.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 low power mode / sleep mode [ZephyrsOS]</title><link>https://devzone.nordicsemi.com/thread/520228?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2025 15:50:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:706747e9-75e5-4479-bba5-d1a1edd25972</guid><dc:creator>Fernando Fontes</dc:creator><description>&lt;p&gt;Ok, I did some follow up investigation and the problem is not the target board, both&amp;nbsp;&lt;span&gt;nrf52dk_nrf52832.overlay or nrf52kbd_nrf52832.overlay work the same on the system_off example.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The problem is actually on the proj.conf file. More specifically I did one by one enable until finding the issue and noticed the following:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_SENSOR=y will increase the power consumption from 40.6uA by around 12uA. Later on, when enabling the&amp;nbsp;&lt;/span&gt;&lt;span&gt;CONFIG_LIS2DH_ODR_1&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y and&amp;nbsp;&lt;/span&gt;&lt;span&gt;CONFIG_LIS2DH_OPER_MODE_LOW_POWER&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&amp;nbsp;&lt;/span&gt;&lt;span&gt;there was a reduction of 6uA. So, I guess this increase is resulting by the sensor callbacks being triggered?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Anyway, the big issue is the&amp;nbsp;&lt;/span&gt;&lt;span&gt;CONFIG_SPI&lt;/span&gt;&lt;span&gt;=y. This&amp;nbsp;makes the power consumption to go for the 6mA. I did some investigation and I think the issue has something to do with this line:&amp;nbsp;&lt;/span&gt;&lt;span&gt;cs-gpios&lt;/span&gt;&lt;span&gt; = &amp;lt;&amp;amp;&lt;/span&gt;&lt;span&gt;gpio0&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;18&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;GPIO_ACTIVE_LOW&amp;gt;. If I use any other gpio from my debug pins, it works just fine. It goes to sleep mode with the 50uA. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;P0.18 on the nrf52832 is the SWO pin. Maybe, the sleep mode on the SPI puts this pin in some state that conflicts with the SWO definitions? What can I do to fix this? Changing the hardware is not really an option at the moment.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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/pastedimage1737993022581v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(No, external pull-ups on the pin).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Fernando Fontes&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>