<?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>Not possible to use PPK while debugging</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37234/not-possible-to-use-ppk-while-debugging</link><description>I am trying to measure the power consumption of a PCA10040 board while debugging, using the PPK. I am using the setup shown here: &amp;quot;Measuring current on nRF5 DK while debugging&amp;quot; with the slight change that I am using another PCA10040 board as JLink probe</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Aug 2018 08:37:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37234/not-possible-to-use-ppk-while-debugging" /><item><title>RE: Not possible to use PPK while debugging</title><link>https://devzone.nordicsemi.com/thread/146250?ContentTypeID=1</link><pubDate>Wed, 29 Aug 2018 08:37:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:933e0c78-d67a-4d75-9117-dfcf6f51943f</guid><dc:creator>wlgrd</dc:creator><description>&lt;p&gt;This was working in the beginning, but SEGGER has done some changes, breaking this feature for us. This means that the state of the debug lines to/from the PPK is wrong. The issue has been reported to SEGGER, and as soon as they&amp;#39;ll update per our request this will not longer be a problem.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For now, the only viable thing to do is to not use the PPK at all if you need to do J-Link requests like flash, debug, RTT etc to the application board. And as a side note, CTRL+R will refresh the PPK app, making it faster to start it over :)&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not possible to use PPK while debugging</title><link>https://devzone.nordicsemi.com/thread/145532?ContentTypeID=1</link><pubDate>Thu, 23 Aug 2018 13:37:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b42279d-1ef2-46d2-ba21-a6f990f6a7b2</guid><dc:creator>gnf</dc:creator><description>&lt;p&gt;Yes, I know that the measurements will be wrong when measuring at the same time as debugging. What I want to solve is this workflow:&lt;/p&gt;
&lt;p&gt;- Activate the measurement in the app RF Connect Power Profiler&lt;/p&gt;
&lt;p&gt;- Run the debugger (yes, the current consumption is wrong here but I can still do my usual cycle of compile/debug/recompile/debug/... before finding a state where my code actually seems to work)&lt;/p&gt;
&lt;p&gt;- When the code seems to be working, stop the debugger (or even remove the SWD 9 pin cable) to run the device in a &amp;quot;release&amp;quot; state, with realistic current measurements&lt;/p&gt;
&lt;p&gt;- When I need to reflash the device or start a compile/debug cycle again, I just reattach the SWD cable (although I have seen that it is enough to just stop the debugger in EWARM and keep the SWD cable connected. Most of the time this gives me somewhat useful measurements)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But... My workflow right now looks like this, because of the above issue:&lt;/p&gt;
&lt;p&gt;- Activate the measurement&lt;/p&gt;
&lt;p&gt;- Run the debugger... But this crashes the Power Profiler app!&lt;/p&gt;
&lt;p&gt;- Stop the debugger&lt;/p&gt;
&lt;p&gt;- Close the Power Profiler app and open it again. Find the correct serial port. Start the measurement.... .... You see where this is going?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Edit: So my point is, I am not looking for a solution to get good measurements while debugging. I just want to avoid having to close and reopen the Power Profiler app all the time just because the JLink crashes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not possible to use PPK while debugging</title><link>https://devzone.nordicsemi.com/thread/145449?ContentTypeID=1</link><pubDate>Thu, 23 Aug 2018 08:43:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b204c14a-1896-4501-9e28-362145c02c24</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;It seems that this is an issue with a segger update. According to another colleague, it is not such a great idea to debug &amp;amp; measure the current consumption at the same time, as you will receive around 4 mA no matter what. This is because the debugger will turn on all regulators &amp;amp; clocks on the chip.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not possible to use PPK while debugging</title><link>https://devzone.nordicsemi.com/thread/143593?ContentTypeID=1</link><pubDate>Thu, 09 Aug 2018 13:42:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:885fd1e7-c3f1-4f4d-b82c-15ad9faf653b</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/gnfrnd"&gt;gnf&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;I just tested this with the setup you provided &amp;amp; I also received the same error code:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-b8cab9e93b144df1af5fcaa178c3d8f4/pastedimage1533822057937v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I will mention this internally to the developer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not possible to use PPK while debugging with IAR</title><link>https://devzone.nordicsemi.com/thread/143199?ContentTypeID=1</link><pubDate>Tue, 07 Aug 2018 11:28:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9a70993-448a-4c0d-b243-677c29941026</guid><dc:creator>gnf</dc:creator><description>&lt;p&gt;I think I found another issue reported 6 months ago regarding the same thing:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/29610/power-profiler-kit-ppk-with-dk-rtt-debug-out-not-working"&gt;devzone.nordicsemi.com/.../power-profiler-kit-ppk-with-dk-rtt-debug-out-not-working&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not possible to use PPK while debugging with IAR</title><link>https://devzone.nordicsemi.com/thread/143192?ContentTypeID=1</link><pubDate>Tue, 07 Aug 2018 10:51:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21a0fa30-c916-4d43-9bdb-1f8d39cdc701</guid><dc:creator>gnf</dc:creator><description>&lt;p&gt;A third way of reproducing the problem (which suggests that IAR has nothing to do with this):&lt;/p&gt;
&lt;p&gt;6. Start nRF Connect v2.4.0 Power Profiler and to connect to DK B&lt;/p&gt;
&lt;p&gt;7. Connect Segger RTTViewer to DK A&lt;/p&gt;
&lt;p&gt;8. This will kick the Power Profiler app out (the measurement stops). After this, it is impossible to connect to DK A with the app, showing the error message of step 2 above&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>