<?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-DK Low Power Configuration Issues</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79490/nrf5340-dk-low-power-configuration-issues</link><description>Hi, 
 I am performing some evaluation on the low power capabilities of the nRF5340 using the DK and the PPK v1. 
 I have written a really basic BLE Peripheral Application based loosely around the peripheral_lbs sample code as I want to test with a button</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Sep 2021 12:43:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79490/nrf5340-dk-low-power-configuration-issues" /><item><title>RE: nRF5340-DK Low Power Configuration Issues</title><link>https://devzone.nordicsemi.com/thread/330284?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 12:43:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07e9c460-f505-4190-bf67-6afea9f11e4e</guid><dc:creator>hatt-mazley</dc:creator><description>&lt;p&gt;Hi - I got this working.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It was a problem with segger embedded studio, there might be a potential bug with it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It was not finding my .dtoverlay file - it had duplicated the path string behind the file so it could not find it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When I stopped using the IDE and went to West on the terminal, it found the dtoverlay fine:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;-- Found devicetree overlay: /Users/mhazley/src/nrf-low-power-investigation/application/boards/nrf5340dk_nrf5340_cpuappns.overlay&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The build from west gave me an average current of 8uA&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK Low Power Configuration Issues</title><link>https://devzone.nordicsemi.com/thread/329498?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 15:52:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efb039a1-f337-4fde-a45c-8f00529f3f38</guid><dc:creator>hatt-mazley</dc:creator><description>&lt;p&gt;Thanks for discussing internally, I will try the hooks tomorrow and let you know.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK Low Power Configuration Issues</title><link>https://devzone.nordicsemi.com/thread/329388?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 10:57:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0b4bbd2-5dd5-4d1a-83a4-0035d089421d</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;I&amp;#39;m currently discussing the this internally, trying to find a good answer to this. I&amp;#39;m uncertain if adding CONFIG_PM will&amp;nbsp;activate&amp;nbsp;the Power Management automatically or if you need to enable it by adding e.g.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/**
 * @brief Put processor into a power state.
 *
 * This function implements the SoC specific details necessary
 * to put the processor into available power states.
 *
 * @param info Power state which should be used in the ongoing
 *	suspend operation.
 */
void pm_power_state_set(struct pm_state_info info)&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Or if the k_cpu_idle() is sufficient for your use. Can you &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.1/zephyr/reference/power_management/index.html#power-management-hook-interface"&gt;please try adding Power Management hooks&lt;/a&gt; into your main?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK Low Power Configuration Issues</title><link>https://devzone.nordicsemi.com/thread/329081?ContentTypeID=1</link><pubDate>Fri, 10 Sep 2021 16:26:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74f0de81-e948-4142-a10b-02aff36bff75</guid><dc:creator>hatt-mazley</dc:creator><description>&lt;p&gt;Ok, so based on the blog, I have made some changes but get exactly the same result.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;I have added&amp;nbsp;hci_rpmsg.conf in a folder in named child_image as described,&amp;nbsp;copied&amp;nbsp;ncs\v1.6.1\zephyr\samples\bluetooth\hci_rpmsg in and changed LOG and SERIAL to n&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_LOG=n
CONFIG_SERIAL=n

CONFIG_RPMSG_SERVICE=y
CONFIG_RPMSG_SERVICE_MODE_REMOTE=y

CONFIG_HEAP_MEM_POOL_SIZE=8192

CONFIG_MAIN_STACK_SIZE=512
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
CONFIG_BT=y
CONFIG_BT_HCI_RAW=y
CONFIG_BT_MAX_CONN=16
CONFIG_BT_CTLR_ASSERT_HANDLER=y
CONFIG_BT_HCI_RAW_RESERVE=1

CONFIG_ASSERT=y
CONFIG_DEBUG_INFO=y
CONFIG_EXCEPTION_STACK_TRACE=y&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;Added the following to my prj.conf&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_PM=y
CONFIG_PM_DEVICE=y&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;Disabled Uart0 and Uart1&amp;nbsp;in&amp;nbsp;nrf5340dk_nrf5340_cpuappns.overlay&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart0{

    status=&amp;quot;disabled&amp;quot;;
};

&amp;amp;uart1{

    status=&amp;quot;disabled&amp;quot;;
};&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I still get the base current of around 200uA as shown...&lt;/p&gt;
&lt;p&gt;On that blog post it says:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;quot;Power Management Subsystem can put an idle system in one of the supported power states, based on the selected power management policy and the duration of the idle time allotted by the kernel&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I am making the idle call at the end of my main, do I also need to set some kind of power policy via my code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK Low Power Configuration Issues</title><link>https://devzone.nordicsemi.com/thread/329067?ContentTypeID=1</link><pubDate>Fri, 10 Sep 2021 14:27:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bc8b5ed-2ee8-48c8-a7ec-59688adfd8ca</guid><dc:creator>hatt-mazley</dc:creator><description>&lt;p&gt;Ok, if I bridge SB40 again on the dev kit, I can use the PPK off the DK &lt;br /&gt;&lt;br /&gt;DUT set to External,&amp;nbsp;&amp;nbsp;Power Select set to Reg, I get same result as before.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1631283989622v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Based off the blog you linked, I am now looking at disabling the peripherals to see if it has an effect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK Low Power Configuration Issues</title><link>https://devzone.nordicsemi.com/thread/329064?ContentTypeID=1</link><pubDate>Fri, 10 Sep 2021 14:16:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e6e51ba-c715-4c8e-8227-852c131fc990</guid><dc:creator>hatt-mazley</dc:creator><description>&lt;p&gt;That&amp;nbsp;was the level I was seeing being I turned off all the logging configs on main app and SPM and HCI_RPMSG images&lt;br /&gt;&lt;br /&gt;PPK is 1.0.0 2016.27&lt;/p&gt;
&lt;p&gt;DK is 0.11.0 2020.50&lt;/p&gt;
&lt;p&gt;I can only run the PPK when attached on top, for some reason, once I cut SB40 for the current measurements, I cannot power my device from an external source&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK Low Power Configuration Issues</title><link>https://devzone.nordicsemi.com/thread/329057?ContentTypeID=1</link><pubDate>Fri, 10 Sep 2021 13:40:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eeca3f09-3259-4144-8548-89e495fce7c3</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Here is my measurement running the PPK2&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1631281014229v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;And here is measured using PPK1 (not mounted on top)&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1631281166817v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;What version of the PPK1 and the DK are you running? What version of NCS are you running?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK Low Power Configuration Issues</title><link>https://devzone.nordicsemi.com/thread/329051?ContentTypeID=1</link><pubDate>Fri, 10 Sep 2021 13:24:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f34a2c4-4630-4e58-937d-3bc87b9f23b3</guid><dc:creator>hatt-mazley</dc:creator><description>&lt;p&gt;I did not see this. I will work through this now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK Low Power Configuration Issues</title><link>https://devzone.nordicsemi.com/thread/329036?ContentTypeID=1</link><pubDate>Fri, 10 Sep 2021 12:50:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95fc566d-4228-4413-9a0f-ac1f4dbfec9f</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;By the way did you see our blog post on &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/optimizing-power-on-nrf53-designs"&gt;Optimizing power on nRF53 designs?&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK Low Power Configuration Issues</title><link>https://devzone.nordicsemi.com/thread/329025?ContentTypeID=1</link><pubDate>Fri, 10 Sep 2021 12:10:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9236096-88a6-4c31-b2be-e4c3f364184d</guid><dc:creator>hatt-mazley</dc:creator><description>&lt;p&gt;Hi - Just so its clear, I am using PPK 1 and I am measuring by placing the PPK1 on top of the DK and setting both switches to DK. This means Power Profiler software is talking to PPK via the J-Link on the DK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK Low Power Configuration Issues</title><link>https://devzone.nordicsemi.com/thread/329020?ContentTypeID=1</link><pubDate>Fri, 10 Sep 2021 11:53:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0580fd69-5ea9-4ed0-88e0-a76b11faecbe</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Scratch that, it&amp;#39;s been a while since I used the PPK1. Measuring by following the &amp;quot;Measuring current on custom hardware without an nRF5 DK&amp;quot; chapter worked for me. Let me program the attached project and configure my kit similar to yours.&lt;/p&gt;
&lt;p&gt;-Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK Low Power Configuration Issues</title><link>https://devzone.nordicsemi.com/thread/329005?ContentTypeID=1</link><pubDate>Fri, 10 Sep 2021 11:11:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:482b1c0c-df4c-430a-b98d-65b2ef950274</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;To verify, are you using PPK1 or PPK2? I&amp;#39;m not able to connect my PPK1 to the nRF5340 DK. If using PPK1, what versions of the kits are you working with?&lt;br /&gt;&lt;br /&gt;Thank you!&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>