<?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>Interaction JLink and Power Profiler PPKII?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82467/interaction-jlink-and-power-profiler-ppkii</link><description>Hi, I am trying to measure power consumption (the device is an nRF52840 dongle) and I get different results when the board is connected or not to a JLink external debugger. The surprising result is that generally the current is _lower_ when the JLink</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Dec 2021 08:42:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82467/interaction-jlink-and-power-profiler-ppkii" /><item><title>RE: Interaction JLink and Power Profiler PPKII?</title><link>https://devzone.nordicsemi.com/thread/342845?ContentTypeID=1</link><pubDate>Fri, 10 Dec 2021 08:42:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:819e03a6-d22a-4bd4-b262-28189a74b131</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Ok, perfect! I believe you can start out by using the zephyr/samples/basic/blinky example in nRF connect SDK. Just remove all code from main(), and it should stay in system ON idle (2-3 uA). You probably will have to disable all UARTs (logging) as well. Add CONFIG_SERIAL=n to prj.conf to quickly disable all UARTs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interaction JLink and Power Profiler PPKII?</title><link>https://devzone.nordicsemi.com/thread/342784?ContentTypeID=1</link><pubDate>Thu, 09 Dec 2021 18:58:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:364936fd-cb6b-4f8b-8438-6a3c1b82f390</guid><dc:creator>androbi</dc:creator><description>&lt;p&gt;You were right, thank you very much! The JLink provided the missing ground reference, now I get the same results with and without JLink, connecting the PPKII GND. I now get 50uA for idle and 500 uA for advertising. I think the idle value is still too high, but this is probably a problem in my code.The example you mention is an SDK example, is there anything similar available for nRF Connect?&lt;/p&gt;
&lt;p&gt;I power the dongle as described in the infocenter using VDD OUT, cutting SB2 and soldering SB1.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interaction JLink and Power Profiler PPKII?</title><link>https://devzone.nordicsemi.com/thread/342677?ContentTypeID=1</link><pubDate>Thu, 09 Dec 2021 10:59:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db96a679-00ca-45d0-9fe9-f288beea063e</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;OK I see. Are you connecting the CR3032 to the VDD_nRF pin?&lt;/p&gt;
&lt;p&gt;The PPK in ampere meter mode should also have a ground reference to the dongle. So connect one of the GND pins on the PPK to the negative side of the battery. I believe this might be the reason for the weird behavior you are seeing. Because when you connect the JLink the ground reference is made through the USB interface to the PPK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interaction JLink and Power Profiler PPKII?</title><link>https://devzone.nordicsemi.com/thread/342662?ContentTypeID=1</link><pubDate>Thu, 09 Dec 2021 09:54:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8e5955a-ddc7-4b34-b078-4d9843bcd225</guid><dc:creator>androbi</dc:creator><description>&lt;p&gt;Thanx for your answer! The results also seem strange to me! You are right, of course we use SWD for the dongle. So it looks like the Debugger sources current in my case (though I have the Vref pin connected). I will try the example you suggest with the debugger disconnected and post my results here.&lt;/p&gt;
&lt;p&gt;In what I have posted so far the USB port was not plugged in, I don&amp;#39;t use it at all. Power comes from a CR3032 cell and I have the PPKII in ampere mode, measuring directly what comes out of the cell.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interaction JLink and Power Profiler PPKII?</title><link>https://devzone.nordicsemi.com/thread/342648?ContentTypeID=1</link><pubDate>Thu, 09 Dec 2021 09:15:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23f3a928-4249-4c9b-817c-c3a1b83fe93d</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi, these results seem a bit strange to me. It&amp;#39;s normal to get some leakage current on the SWD interface (nRF uses SWD not Jtag). Whether the current goes up or down depends on the voltage on the JLink. Usually the voltages should be matched using the VRef pin, but I&amp;#39;ve seen many times that this is not the case and the JLink will either source or sink current. So you should always unplug the debugger before any current measurements, then you don&amp;#39;t have to worry about any leakage currents.&lt;/p&gt;
&lt;p&gt;The fact that the current rises to 150 uA when then JLink is disconnected is strange. I think you should verify your measurement setup using a FW with a known current consumption. You can start with the ble_app_pwr_profiling example. It starts out in system off and you should see below 1 uA of current draw.&lt;/p&gt;
&lt;p&gt;Also please describe your measurement setup. Is the dongle plugged in to the USB port while measuring? The USB interface will often create lots of noise, making the measurements unreliable. Maybe the external debugger is somehow stabilizing this noise?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>