<?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>nRF5340: Build Error During Power Measurement in Low Power Mode (SDK v2.6.1)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114210/nrf5340-build-error-during-power-measurement-in-low-power-mode-sdk-v2-6-1</link><description>Hello, 
 I’m working on an nRF5340 project and trying to measure power consumption in low power mode using SDK v2.6.1. I followed the instructions provided on your website but I encountered a build error. 
 Details: 
 
 SDK Version : v2.6.1 
 Custom Board</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Oct 2024 09:14:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114210/nrf5340-build-error-during-power-measurement-in-low-power-mode-sdk-v2-6-1" /><item><title>RE: nRF5340: Build Error During Power Measurement in Low Power Mode (SDK v2.6.1)</title><link>https://devzone.nordicsemi.com/thread/504639?ContentTypeID=1</link><pubDate>Wed, 02 Oct 2024 09:14:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf9fe1e7-b9ea-461b-b383-e4a2e57364dc</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Shanmuga,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you working on the same project with Sasikumar ? If not please create a new ticket.&amp;nbsp;&lt;br /&gt;Please check if any of the dependencies is not match. You can check that in the .config file in the build folder.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340: Build Error During Power Measurement in Low Power Mode (SDK v2.6.1)</title><link>https://devzone.nordicsemi.com/thread/504502?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2024 10:37:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8d675e2-88d6-4b34-8db3-18b55f725619</guid><dc:creator>Shanmugam</dc:creator><description>&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/Pm_5F00_proj_5F00_error.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Getting this error / warning in the proj.conf .&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340: Build Error During Power Measurement in Low Power Mode (SDK v2.6.1)</title><link>https://devzone.nordicsemi.com/thread/501389?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2024 13:50:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98f861c8-d6ad-4058-896e-61aedac1aaee</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Do you get any &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/configuring_app/kconfig/index.html#override-kconfig-warnings"&gt;Kconfig override warnings&lt;/a&gt; in your build log?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340: Build Error During Power Measurement in Low Power Mode (SDK v2.6.1)</title><link>https://devzone.nordicsemi.com/thread/501382?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2024 13:18:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51487f66-410f-4b60-b3aa-3a179d6904ed</guid><dc:creator>sasikumar p</dc:creator><description>&lt;p&gt;I encountered a build issue when attempting to use the pm_state_set() API in our custom project. I have attached the error log for your reference. Interestingly, when I tested the same API in the latency sample file, it worked without any issues.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;i have share the error log link please check&lt;/p&gt;
&lt;p&gt;&lt;a title="error log link" href="https://drive.google.com/file/d/1Jl16xjrbsQWVAID1hsWnYgbUF2z6O8Sf/view?usp=sharing"&gt;https://drive.google.com/file/d/1Jl16xjrbsQWVAID1hsWnYgbUF2z6O8Sf/view?usp=sharing&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Could you please help me resolve this issue.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;latency sample code

#include &amp;quot;test.h&amp;quot;
#include &amp;lt;zephyr/device.h&amp;gt;
#include &amp;lt;zephyr/kernel.h&amp;gt;
#include &amp;lt;zephyr/logging/log.h&amp;gt;
#include &amp;lt;zephyr/pm/policy.h&amp;gt;
#include &amp;lt;zephyr/sys_clock.h&amp;gt;
#include &amp;lt;zephyr/pm/pm.h&amp;gt;
#include &amp;lt;zephyr/drivers/gpio.h&amp;gt;
#include &amp;lt;zephyr/pm/device.h&amp;gt;


LOG_MODULE_REGISTER(app, CONFIG_APP_LOG_LEVEL);

void enter_sleep_mode(void)
{
	// Set device to suspend-to-RAM state (deep sleep)
	pm_state_set(PM_STATE_SOFT_OFF, 0);
}

void main(void)
{

	enter_sleep_mode();
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;our custom board code&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
#include &amp;lt;zephyr/drivers/rtc.h&amp;gt;
#include &amp;lt;zephyr/drivers/counter.h&amp;gt;
#include &amp;lt;zephyr/pm/pm.h&amp;gt;
#include &amp;lt;zephyr/sys/reboot.h&amp;gt;
#include &amp;lt;zephyr/device.h&amp;gt;
#include &amp;lt;zephyr/pm/state.h&amp;gt;
#include &amp;lt;zephyr/pm/device.h&amp;gt;
#include &amp;lt;zephyr/pm/policy.h&amp;gt;

#include &amp;lt;zephyr/logging/log.h&amp;gt;
LOG_MODULE_REGISTER(main, CONFIG_APP_LOG_LEVEL);


#define RTC_TEST_GET_SET_TIME (1767225595UL)



/*!
 * @brief The main module consists of the main scheduler designed to coordinate
 * between various modules, initializes all required peripherals, initialize
 * default conditions and call scheduling algorithm.
 *
 *
 * @param[in] None.
 * @return int
 */
int main(void)
{

	LOG_INF(&amp;quot;Hello World!\n&amp;quot;);

	pm_state_set(PM_STATE_SUSPEND_TO_RAM, 0);

	EnterSleepMode();
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;proj.cof&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_I2C&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SENSOR&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_TMP116&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NRFX_SPIM2&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NRFX_SPIM4&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_PM&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;CONFIG_PM_DEVICE=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NRFX_SAADC&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NRFX_TIMER1&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NRFX_DPPI&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340: Build Error During Power Measurement in Low Power Mode (SDK v2.6.1)</title><link>https://devzone.nordicsemi.com/thread/500028?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2024 14:32:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62b94d71-8acb-48ed-a3a3-53189e385ae5</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;The docs you are following are from nRF Connect SDK 1.6.0.&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1724769150068v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Instead, use the latest docs. The API has changed since.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340: Build Error During Power Measurement in Low Power Mode (SDK v2.6.1)</title><link>https://devzone.nordicsemi.com/thread/499870?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2024 04:10:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc2df246-892c-4a39-8dc5-43e46664088f</guid><dc:creator>sasikumar p</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;i have share the error log link please check&lt;/p&gt;
&lt;p&gt;&lt;a title="error log link" href="https://drive.google.com/file/d/1Jl16xjrbsQWVAID1hsWnYgbUF2z6O8Sf/view?usp=sharing"&gt;https://drive.google.com/file/d/1Jl16xjrbsQWVAID1hsWnYgbUF2z6O8Sf/view?usp=sharing&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340: Build Error During Power Measurement in Low Power Mode (SDK v2.6.1)</title><link>https://devzone.nordicsemi.com/thread/499868?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2024 03:55:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:157c69d6-5204-491d-b3f7-cf71b964240b</guid><dc:creator>sasikumar p</dc:creator><description>&lt;p&gt;I understand, but unfortunately, I wasn&amp;#39;t able to add it successfully, and I also couldn&amp;#39;t paste the log here&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340: Build Error During Power Measurement in Low Power Mode (SDK v2.6.1)</title><link>https://devzone.nordicsemi.com/thread/499711?ContentTypeID=1</link><pubDate>Mon, 26 Aug 2024 10:33:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:233083d3-5b71-4aa2-8696-59f2e9f6c96e</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&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/pastedimage1724668418906v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Also, please include the full build log.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340: Build Error During Power Measurement in Low Power Mode (SDK v2.6.1)</title><link>https://devzone.nordicsemi.com/thread/499707?ContentTypeID=1</link><pubDate>Mon, 26 Aug 2024 09:45:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2421897b-4042-4067-ad45-895c0f472878</guid><dc:creator>sasikumar p</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;error code is given below&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Main/main.c:212:&lt;br /&gt; undefined reference to `pm_power_state_force&amp;#39;&lt;br /&gt;c:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../..&lt;br /&gt;/../arm-zephyr-eabi/bin/ld.bfd.exe: C:/ncs/v2.6.1/Waggle_Sensors/application/Node_1/src/&lt;/p&gt;
&lt;p&gt;Main/main.c:213:&lt;br /&gt; undefined reference to `pm_device_state_set&amp;#39;&lt;br /&gt;collect2.exe: error: ld returned 1 exit status&lt;br /&gt;ninja: build stopped: subcommand failed.&lt;br /&gt;FATAL ERROR: command exited with status 1: &amp;#39;C:\ncs\toolchains\cf2149caf2\opt\bin\cmake.EXE&amp;#39; --build &lt;br /&gt;&amp;#39;c:\ncs\v2.6.1\Waggle_Sensors\application\Node_1\build&amp;#39;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340: Build Error During Power Measurement in Low Power Mode (SDK v2.6.1)</title><link>https://devzone.nordicsemi.com/thread/499695?ContentTypeID=1</link><pubDate>Mon, 26 Aug 2024 08:57:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56b49cf8-2105-4837-87a6-bfcbf37d5ab7</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you copy the text from the full log, and paste it into a Insert-&amp;gt;Code box?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340: Build Error During Power Measurement in Low Power Mode (SDK v2.6.1)</title><link>https://devzone.nordicsemi.com/thread/499660?ContentTypeID=1</link><pubDate>Mon, 26 Aug 2024 06:36:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8d8ec28-c21d-4d60-a6bf-0bf680956f17</guid><dc:creator>sasikumar p</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;I have attached error message&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/pastedimage1724654181185v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank You.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>