<?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 configure to wake up from SYSTEM_ON and SYSTEM_OFF using RTC2 (periodically) and from GPIO pin change</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87406/how-to-configure-to-wake-up-from-system_on-and-system_off-using-rtc2-periodically-and-from-gpio-pin-change</link><description>Hi, 
 I need to configure an nRF52832 to wake up periodically from SYSTEM_ON and SYSTEM_OFF and, also, when a GPIO pin changes. 
 Where can I find sample code and docs for this? 
 I&amp;#39;m using nRF Connect SDK version 1.9.1 and Visual Studio Code. 
 BR</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 May 2022 12:53:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87406/how-to-configure-to-wake-up-from-system_on-and-system_off-using-rtc2-periodically-and-from-gpio-pin-change" /><item><title>RE: How to configure to wake up from SYSTEM_ON and SYSTEM_OFF using RTC2 (periodically) and from GPIO pin change</title><link>https://devzone.nordicsemi.com/thread/366469?ContentTypeID=1</link><pubDate>Thu, 05 May 2022 12:53:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35860eac-f393-46f0-a8af-4445c6e7e64c</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;This looks much better. The spikes look like the auto-controlled refresh mode being active, where the frequency depends on the current being drawn on the regulator output. In system OFF mode the refresh interval is at 100-150ms.&lt;/p&gt;
&lt;p&gt;The current consumed during refresh modes are documented &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fpmu.html&amp;amp;anchor=unique_205654252"&gt;here&lt;/a&gt;.&amp;nbsp;&lt;span&gt;Note that the numbers in the PS are typical numbers only, and there will be device to device variations.&lt;/span&gt;&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: How to configure to wake up from SYSTEM_ON and SYSTEM_OFF using RTC2 (periodically) and from GPIO pin change</title><link>https://devzone.nordicsemi.com/thread/366316?ContentTypeID=1</link><pubDate>Wed, 04 May 2022 16:20:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:331a0b9a-287b-4697-a754-669e9a1fd296</guid><dc:creator>V.Lorz</dc:creator><description>&lt;p&gt;Hi, let&amp;#39;s see if it is better now.&lt;/p&gt;
&lt;p&gt;I inserted the coin cell battery, PPK-II in Ampere meter mode and connected like below:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/captura1.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;I started capturing data and pressed BTN1 for taking the SoC out from POWER_OFF.&lt;/p&gt;
&lt;p&gt;Here is how it looks like (full data set and close-up):&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/captura2.jpg" /&gt; &lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/captura3.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;The spikes are periodic, and in between them the current seems to fall to what is expected. I suppose the noise originates in the PPK&amp;#39;s current sense signal-chain and the long sensing wires, as expected.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/captura4.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;The full dataset is attached here.&lt;/p&gt;
&lt;p&gt;According to your experience/knowledge, what&amp;#39;s the origin of those peaks? They have a fast rise time and a slow exponential-like decay, like in a low-ESR capacitor charge discharge cycle.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0880.capture5.png" /&gt;&lt;/p&gt;
&lt;p&gt;Thanks again.&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ppk_2D00_20220504T160437_2D00_data_2D00_logger.zip"&gt;devzone.nordicsemi.com/.../ppk_2D00_20220504T160437_2D00_data_2D00_logger.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure to wake up from SYSTEM_ON and SYSTEM_OFF using RTC2 (periodically) and from GPIO pin change</title><link>https://devzone.nordicsemi.com/thread/366241?ContentTypeID=1</link><pubDate>Wed, 04 May 2022 12:43:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7800fe45-40f8-4fe1-a234-c66ef94702f8</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;If you have matched the voltage for the PPK and DK (~2.7V) in the first image that measurement should be correct, but it looks very strange indeed, and there shouldn&amp;#39;t be any current measurements looking like this, so it does indeed look like the PPK might have some issue with it. To confirm, can you try with the PPK2 in Ampere mode as well, using a clean supply to power the DK as I explained in my last reply.&lt;/p&gt;
&lt;p&gt;You can&amp;#39;t power the DK just from the PPK like in image 2, that won&amp;#39;t result in a correct current measurement or behavior.&amp;nbsp;&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: How to configure to wake up from SYSTEM_ON and SYSTEM_OFF using RTC2 (periodically) and from GPIO pin change</title><link>https://devzone.nordicsemi.com/thread/365951?ContentTypeID=1</link><pubDate>Tue, 03 May 2022 11:03:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dda6d1e2-964e-4c8e-93ac-7d0dda901197</guid><dc:creator>V.Lorz</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m starting to think on the possibility of PPK/DK not working properly for some reason (maybe me).&lt;/p&gt;
&lt;p&gt;Here are how I connected the PPK-II and the nRF52 DK for Source Meter mode. One with the USB connected to the DK, the other without.&lt;/p&gt;
&lt;p&gt;&lt;img alt="DK with USB connected" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/IMG_5F00_20220503_5F00_114241_2D00_seg.jpg" /&gt; &lt;img alt="DK without USB connected" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/IMG_5F00_20220503_5F00_112159_2D00_seg.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;Here attached are also the ppk capture files.&lt;/p&gt;
&lt;p&gt;I have SB9 open in the DK and uploaded same project I attached previously.&lt;/p&gt;
&lt;p&gt;I configured VOUT for 2.75V in the PPK, but I&amp;#39;ve seen a strange bahaviour, the SoC is not reset when powered from the PPK only. I tested from 2.0V to 3.2V with same results: I needed to power from USB with the PPK VOUT active, then remove the USB plug. After doing this the app behaved like expected, wake up on pressing BTN1, then going to &amp;quot;low power&amp;quot;.&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t check voltage across P0.21/RESET, but I think the nRF is not been reset when the SAM (U2) is not powered.&lt;/p&gt;
&lt;p&gt;Enabling and disabling power output from the PPK did enable and disable the PPK voltage output, checked with voltmeter at DC4 pin (C10 in the DK) and had 1.24V, and also had the same VOUT voltage at VDD pin (C9 in the DK).&lt;/p&gt;
&lt;p&gt;Is the PPK-DK wiring correct? Am I missing something? Is there any need to change anything the compiler/project options for the board so anything else is initialised in the silicon?&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/data_2D00_logger_2D00_source-meter-_2D00_-2750mV-_2B00_-USB.zip"&gt;devzone.nordicsemi.com/.../data_2D00_logger_2D00_source-meter-_2D00_-2750mV-_2B00_-USB.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/data_2D00_logger_2D00_source-meter-_2D00_-2750mV.zip"&gt;devzone.nordicsemi.com/.../data_2D00_logger_2D00_source-meter-_2D00_-2750mV.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure to wake up from SYSTEM_ON and SYSTEM_OFF using RTC2 (periodically) and from GPIO pin change</title><link>https://devzone.nordicsemi.com/thread/365885?ContentTypeID=1</link><pubDate>Tue, 03 May 2022 07:17:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ae00b45-5723-49d8-a599-53db1a2435c5</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;These are spikes caused by noise from the USB port.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You have two options, either unplug the USB cable and power the DK with a clean supply on the power supply header. Then you can measure current going through the current measurement header with the PPK2 in ampere meter mode.&lt;/p&gt;
&lt;p&gt;Alternatively you can leave the USB plugged in, but then you will have to power the nRF52 from the PPK using source meter mode. Connect the GND from PPK to GND on the DK, and VOUT from the PPK to the nRF52 side of the current measurement header (the pin closest to the debug out header). Then you need to adjust the PPK2 output voltage to match the VDD voltage on the DK exactly. I believe it should be around 2.7V.&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: How to configure to wake up from SYSTEM_ON and SYSTEM_OFF using RTC2 (periodically) and from GPIO pin change</title><link>https://devzone.nordicsemi.com/thread/365815?ContentTypeID=1</link><pubDate>Mon, 02 May 2022 14:09:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a3bea8b-a76a-4f3f-86e3-26980eb2da99</guid><dc:creator>V.Lorz</dc:creator><description>&lt;p&gt;Simonr, please find here the data captured and the project for reproducing the behaviour.&lt;/p&gt;
&lt;p&gt;It was not possible for me to compile neither the original project nor a new project created using the sample as a template. This project uses snippets from the original code.&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/hello_5F00_off.zip"&gt;devzone.nordicsemi.com/.../hello_5F00_off.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/power_2D00_off_2D00_capture_2D00_data.zip"&gt;devzone.nordicsemi.com/.../power_2D00_off_2D00_capture_2D00_data.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure to wake up from SYSTEM_ON and SYSTEM_OFF using RTC2 (periodically) and from GPIO pin change</title><link>https://devzone.nordicsemi.com/thread/365799?ContentTypeID=1</link><pubDate>Mon, 02 May 2022 13:28:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f930afd9-6b74-40a8-a79e-225510e527f7</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Indeed, the version of the application you were using seemed to not take care of the final call to put the device to sleep. Glad you were able to figure it out yourself!&lt;/p&gt;
&lt;p&gt;Can you upload the .ppk file here by exporting it from the Power Profiler app and uploading it in a .zip file so we can get a better look at what&amp;#39;s going on here.&amp;nbsp;We&amp;#39;ll need to zoom in more on these spikes to determine what they are 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: How to configure to wake up from SYSTEM_ON and SYSTEM_OFF using RTC2 (periodically) and from GPIO pin change</title><link>https://devzone.nordicsemi.com/thread/365658?ContentTypeID=1</link><pubDate>Sat, 30 Apr 2022 17:42:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d1ae038-5915-4376-bf5f-98b4f205612c</guid><dc:creator>V.Lorz</dc:creator><description>&lt;p&gt;In regard to the power off sample project, I found out that calling&amp;nbsp;&lt;code&gt;pm_power_state_force()&lt;/code&gt; and checking immediately after it returns would always be interpreted as an error since nothing was done in that function but setting some flags. Then I came across this recent thread &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/86447/system_off-sample-project-not-completely-working-with-bl653"&gt;here&lt;/a&gt; [&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/86447/system_off-sample-project-not-completely-working-with-bl653" rel="noopener noreferrer" target="_blank"&gt;^&lt;/a&gt;] dealing with same issue, a bug in the sample code.&lt;/p&gt;
&lt;p&gt;It was &lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues/43285"&gt;reported&lt;/a&gt; [&lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues/43285" rel="noopener noreferrer" target="_blank"&gt;^&lt;/a&gt;] to zephyr project and the solution is straight forward (see &lt;a href="https://github.com/zephyrproject-rtos/zephyr/pull/43187/files/92062bdc4db8ee19980b6b0a46d4a13a54270498"&gt;here&lt;/a&gt; [&lt;a href="https://github.com/zephyrproject-rtos/zephyr/pull/43187/files/92062bdc4db8ee19980b6b0a46d4a13a54270498"&gt;^&lt;/a&gt;]), the thread must be put to sleep, as simple as calling &lt;code&gt;&lt;span class="blob-code-inner blob-code-marker js-code-nav-pass "&gt;&lt;span class="pl-c1"&gt;k_sleep&lt;/span&gt;(&lt;span class="pl-c1"&gt;K_SECONDS&lt;/span&gt;(SLEEP_S))&lt;/span&gt;&lt;/code&gt; after the call to&amp;nbsp;&lt;code&gt;pm_power_state_force()&lt;/code&gt;, so the power manager detects the idle task is running and enforces the power off mode.&lt;/p&gt;
&lt;p&gt;Now I&amp;#39;m dealing with some strange behaviour I see in the current consumption while in power off in the power profiler (PPK-II). Current is not flat and peaks at an approximately constant pace.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="238" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/ppk_2D00_20220430T172844.png" width="421" /&gt;&lt;/p&gt;
&lt;p&gt;Before going to power off, I disable the console&amp;#39;s uart with a call to&amp;nbsp;&lt;code&gt;pm_device_action_run(cons, PM_DEVICE_ACTION_SUSPEND), where cons is const struct device *cons = device_get_binding(DT_LABEL(DT_CHOSEN(zephyr_console))).&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Is there any reason to expect such behaviour?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure to wake up from SYSTEM_ON and SYSTEM_OFF using RTC2 (periodically) and from GPIO pin change</title><link>https://devzone.nordicsemi.com/thread/365569?ContentTypeID=1</link><pubDate>Fri, 29 Apr 2022 11:37:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e9e4f81-13e4-47c4-a486-5c2c1033d91e</guid><dc:creator>V.Lorz</dc:creator><description>&lt;p&gt;Simonr, thanks for your comments, I couldn&amp;#39;t test until now.&lt;/p&gt;
&lt;p&gt;I tried to compile the sample application for system OFF but it failed in both ways I tried, &amp;quot;Add existing application&amp;quot; and &amp;quot;Create a new application from sample&amp;quot;. Build log is at the end.&lt;/p&gt;
&lt;p&gt;Then I took the code and incorporated it to my application, enabling CONFIG_PM and CONFIG_PM_DEVICE in my prj.conf. Here below is the code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;///...headers here...

#define CONSOLE_LABEL DT_LABEL(DT_CHOSEN(zephyr_console))
#define BUSY_WAIT_S 4U
#define SLEEP_S 2U
#define CONSOLE_LABEL DT_LABEL(DT_CHOSEN(zephyr_console))

static int disable_ds_1(const struct device *dev)
{
	ARG_UNUSED(dev);

	pm_constraint_set(PM_STATE_SOFT_OFF);
	return 0;
}

SYS_INIT(disable_ds_1, PRE_KERNEL_2, 0);

/* main */
void main(void)
{
	int rc;
	const struct device *cons = device_get_binding(CONSOLE_LABEL);

	nrf_gpio_cfg_input(DT_GPIO_PIN(DT_NODELABEL(button0), gpios), NRF_GPIO_PIN_PULLUP);
	nrf_gpio_cfg_sense_set(DT_GPIO_PIN(DT_NODELABEL(button0), gpios), NRF_GPIO_PIN_SENSE_LOW);

	printk(&amp;quot;Busy-wait %u s\n&amp;quot;, BUSY_WAIT_S);
	k_busy_wait(BUSY_WAIT_S * USEC_PER_SEC);

	printk(&amp;quot;Busy-wait %u s with UART off\n&amp;quot;, BUSY_WAIT_S);
	rc = pm_device_action_run(cons, PM_DEVICE_ACTION_SUSPEND);
	k_busy_wait(BUSY_WAIT_S * USEC_PER_SEC);
	rc = pm_device_action_run(cons, PM_DEVICE_ACTION_RESUME);

	printk(&amp;quot;Sleep %u s\n&amp;quot;, SLEEP_S);
	k_sleep(K_SECONDS(SLEEP_S));

	printk(&amp;quot;Sleep %u s with UART off\n&amp;quot;, SLEEP_S);
	rc = pm_device_action_run(cons, PM_DEVICE_ACTION_SUSPEND);
	k_sleep(K_SECONDS(SLEEP_S));
	rc = pm_device_action_run(cons, PM_DEVICE_ACTION_RESUME);

	printk(&amp;quot;Entering system off; press BUTTON1 to restart\n&amp;quot;);

	pm_power_state_force(0u, (struct pm_state_info){PM_STATE_SOFT_OFF, 0, 0});

	printk(&amp;quot;ERROR: System off failed\n&amp;quot;);


	volatile int stay = true;

	while (stay)
	{
	}
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Here is what comes out in the console:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v2.7.99-ncs1-1  ***
Busy-wait 4 s
Busy-wait 4 s with UART off
Sleep 2 s
Sleep 2 s with UART off
Entering system off; press BUTTON1 to restart
ERROR: System off failed
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I have the DK connected to a PPK-II and I can see the changes in power consumption after the calls to &lt;code&gt;k_sleep()&lt;/code&gt; ,so I can confirm it did not enter power off after the call to &lt;code&gt;pm_power_state_force()&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;---- build log for original sample project ----&lt;/p&gt;
&lt;p&gt;&amp;gt; Executing task: nRF Connect: Build: system_off/build (active) &amp;lt;&lt;br /&gt;&lt;br /&gt;Building system_off&lt;br /&gt;west build --build-dir d:\nordic\v1.9.1\zephyr\samples\boards\nrf\system_off\build d:\nordic\v1.9.1\zephyr\samples\boards\nrf\system_off&lt;br /&gt;&lt;br /&gt;-- west build: generating a build system&lt;br /&gt;Including boilerplate (Zephyr base (cached)): D:/nordic/v1.9.1/zephyr/cmake/app/boilerplate.cmake&lt;br /&gt;-- Application: D:/nordic/v1.9.1/zephyr/samples/boards/nrf/system_off&lt;br /&gt;-- Zephyr version: 2.7.99 (D:/nordic/v1.9.1/zephyr), build: v2.7.99-ncs1-1&lt;br /&gt;-- Found west (found suitable version &amp;quot;0.12.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)&lt;br /&gt;-- Board: nrf52dk_nrf52832&lt;br /&gt;-- Cache files will be written to: D:/nordic/v1.9.1/zephyr/.cache&lt;br /&gt;-- Found dtc: D:/nordic/v1.9.1/toolchain/opt/bin/dtc.exe (found suitable version &amp;quot;1.4.7&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;)&lt;br /&gt;-- Found toolchain: gnuarmemb (d:/nordic/v1.9.1/toolchain/opt)&lt;br /&gt;-- Found BOARD.dts: D:/nordic/v1.9.1/zephyr/boards/arm/nrf52dk_nrf52832/nrf52dk_nrf52832.dts&lt;br /&gt;-- Generated zephyr.dts: D:/nordic/v1.9.1/zephyr/samples/boards/nrf/system_off/build/zephyr/zephyr.dts&lt;br /&gt;-- Generated devicetree_unfixed.h: D:/nordic/v1.9.1/zephyr/samples/boards/nrf/system_off/build/zephyr/include/generated/devicetree_unfixed.h&lt;br /&gt;-- Generated device_extern.h: D:/nordic/v1.9.1/zephyr/samples/boards/nrf/system_off/build/zephyr/include/generated/device_extern.h&lt;br /&gt;-- Including generated dts.cmake file: D:/nordic/v1.9.1/zephyr/samples/boards/nrf/system_off/build/zephyr/dts.cmake&lt;br /&gt;Parsing D:/nordic/v1.9.1/zephyr/samples/boards/nrf/system_off/Kconfig&lt;br /&gt;Loaded configuration &amp;#39;D:/nordic/v1.9.1/zephyr/boards/arm/nrf52dk_nrf52832/nrf52dk_nrf52832_defconfig&amp;#39;&lt;br /&gt;Merged configuration &amp;#39;D:/nordic/v1.9.1/zephyr/samples/boards/nrf/system_off/prj.conf&amp;#39;&lt;br /&gt;Merged configuration &amp;#39;D:/nordic/v1.9.1/zephyr/samples/boards/nrf/system_off/build/zephyr/misc/generated/extra_kconfig_options.conf&amp;#39;&lt;br /&gt;Traceback (most recent call last):&lt;br /&gt;&amp;nbsp; File &amp;quot;D:/nordic/v1.9.1/zephyr/scripts/kconfig/kconfig.py&amp;quot;, line 278, in &amp;lt;module&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;br /&gt;&amp;nbsp; File &amp;quot;D:/nordic/v1.9.1/zephyr/scripts/kconfig/kconfig.py&amp;quot;, line 65, in main&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if kconf.syms['WARN_EXPERIMENTAL'].tri_value == 2:&lt;br /&gt;KeyError: &amp;#39;WARN_EXPERIMENTAL&amp;#39;&lt;br /&gt;CMake Error at D:\nordic\v1.9.1\zephyr\cmake\kconfig.cmake:272 (message):&lt;br /&gt;&amp;nbsp; command failed with return code: 1&lt;br /&gt;Call Stack (most recent call first):&lt;br /&gt;&amp;nbsp; D:\nordic\v1.9.1\zephyr\cmake\app\boilerplate.cmake:544 (include)&lt;br /&gt;&amp;nbsp; D:\nordic\v1.9.1\zephyr\share\zephyr-package\cmake\ZephyrConfig.cmake:24 (include)&lt;br /&gt;&amp;nbsp; D:\nordic\v1.9.1\zephyr\share\zephyr-package\cmake\ZephyrConfig.cmake:40 (include_boilerplate)&lt;br /&gt;&amp;nbsp; d:\nordic\v1.9.1\zephyr\samples\boards\nrf\system_off\build\CMakeLists.txt:4 (find_package)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-- Configuring incomplete, errors occurred!&lt;br /&gt;FATAL ERROR: command exited with status 1: &amp;#39;d:\nordic\v1.9.1\toolchain\opt\bin\cmake.EXE&amp;#39; &amp;#39;-DWEST_PYTHON=d:\nordic\v1.9.1\toolchain\opt\bin\python.exe&amp;#39; &amp;#39;-Bd:\nordic\v1.9.1\zephyr\samples\boards\nrf\system_off\build&amp;#39; &amp;#39;-Sd:\nordic\v1.9.1\zephyr\samples\boards\nrf\system_off&amp;#39; -GNinja&lt;br /&gt;The terminal process terminated with exit code: 1.&lt;br /&gt;&lt;br /&gt;Terminal will be reused by tasks, press any key to close it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure to wake up from SYSTEM_ON and SYSTEM_OFF using RTC2 (periodically) and from GPIO pin change</title><link>https://devzone.nordicsemi.com/thread/365435?ContentTypeID=1</link><pubDate>Thu, 28 Apr 2022 13:07:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bc5a88c-4f81-4a03-910e-55fee2a92846</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;First off, to clarify. When the nRF52832 (or any of our devices are in &amp;quot;system OFF&amp;quot;) the CPU and all peripherals are completely turned off, so it can&amp;#39;t be waken up periodically from the RTC in system OFF mode. That will only be possible in system ON mode. To wake up the device from System OFF mode you have to use an external source, like when a button is pressed or have an external timer going that trigs a GPIO every X amount of time.&lt;/p&gt;
&lt;p&gt;We have a sample project showing how you can put the nRF5x series devices into system OFF &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/boards/nrf/system_off/README.html"&gt;here&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We don&amp;#39;t have an official example showing how to use the RTC in the nRF Connect SDK at the moment, but one of my colleagues made &lt;a href="https://github.com/Rallare/fw-nrfconnect-nrf/blob/nrf9160_samples/samples/nrf9160/nrfx/rtc/src/main.c"&gt;this example for the RTC on the nRF91&lt;/a&gt;. Since the same driver is used in the nRF52 series, it should be pretty straight forward to modify to work on an nRF52832 as well. Alternatively, you can check out the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/kernel/timing/timers.html"&gt;Zephyr kernel timer&lt;/a&gt;&amp;nbsp;that can perform an application-defined action after a specific time limit is reached.&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></channel></rss>