<?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>Error JLINKARM_DLL_ERROR when using Power Profiler</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19973/error-jlinkarm_dll_error-when-using-power-profiler</link><description>I am getting an error in the Power Profiler ppk.py when it is starting. The error occurs on the first call to nrfjprog.rtt_read. The error is JLINKARM_DLL_ERROR, which is -102. 
 ( Updated )
I wrote a similar small Python program to test pynrfprog and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 08 Mar 2017 09:58:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19973/error-jlinkarm_dll_error-when-using-power-profiler" /><item><title>RE: Error JLINKARM_DLL_ERROR when using Power Profiler</title><link>https://devzone.nordicsemi.com/thread/77721?ContentTypeID=1</link><pubDate>Wed, 08 Mar 2017 09:58:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d37b8176-f5fe-4b44-8725-eb3107dcd29e</guid><dc:creator>Jim</dc:creator><description>&lt;p&gt;This now works if you use the Nordic Development board NOT the Rigado BDM-300.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error JLINKARM_DLL_ERROR when using Power Profiler</title><link>https://devzone.nordicsemi.com/thread/77723?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2017 09:45:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7f657bf-fa04-4525-a6a4-75702f56938d</guid><dc:creator>wlgrd</dc:creator><description>&lt;p&gt;Good to hear :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error JLINKARM_DLL_ERROR when using Power Profiler</title><link>https://devzone.nordicsemi.com/thread/77722?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2017 21:55:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63a515fb-cf09-4ccc-b8c4-f6d6001a10b6</guid><dc:creator>Ed Kuzemchak</dc:creator><description>&lt;p&gt;Yes, I was trying to run the PPK board mounted on a BMD-300 DK, not the Nordic DK.   I switched to running the PPK board standalone as described in Section 5.6 in the User Guide and that worked.   And I just received the correct Nordic DK board, and the DK+PPK solution works as well.    Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error JLINKARM_DLL_ERROR when using Power Profiler</title><link>https://devzone.nordicsemi.com/thread/77718?ContentTypeID=1</link><pubDate>Mon, 27 Feb 2017 11:43:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a71a385-f1dd-40ef-92d2-566de28d437c</guid><dc:creator>wlgrd</dc:creator><description>&lt;p&gt;Oh... Yeh, it only supports the original DK&amp;#39;s. But you are saying &amp;quot;running on the dk&amp;quot;. The PPK firmware should never run on the DK, but only be flashed to the PPK. If the software finds an RTT session on another board, it may hook onto it, but never give you any valid data. Please make absolutely sure that you are flashing the PPK. With a non-Nordic DK, I assume you have never had contact with the actual PPK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error JLINKARM_DLL_ERROR when using Power Profiler</title><link>https://devzone.nordicsemi.com/thread/77717?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2017 16:54:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d6a39fd-a3cd-4e9d-9684-7bbb9b1c3f68</guid><dc:creator>Ed Kuzemchak</dc:creator><description>&lt;p&gt;Update - I am able to run the PPK board and the Power Profiler software if I run without the DK as described in Section 5.6 of the User Guide.    That led me to realize my dev board isn&amp;#39;t a Nordic DK, but rather a Rigado BMD-300 dev board for the nRF52.    Soooo, I&amp;#39;m ordering the right Nordic DK board and I&amp;#39;m sure that will work great when it gets here - many thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error JLINKARM_DLL_ERROR when using Power Profiler</title><link>https://devzone.nordicsemi.com/thread/77716?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2017 16:17:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbd0902b-6e83-41c0-8420-e13c4241bf17</guid><dc:creator>Ed Kuzemchak</dc:creator><description>&lt;p&gt;After trying 2 things, it appears more like the PPK firmware is not executing on the DK:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I cleared the Flash on the DK, and the above Python snipped behaves the same (is willing to rtt_start, but never finds a control block).   So with no program on the DK, rtt_start() succeeds but no control block is ever found.&lt;/li&gt;
&lt;li&gt;I added a simple SEGGER_RTT_printf() to Blinky, and the above Python program runs OK with that.   I can print the result of the rtt_read to see my message&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;So, now, why would the PPK firmware not run on my DK?   My DK is marked &amp;quot;BMD-300 Series Evaluation Board 320-00050 vB&amp;quot;   My PPK board is &amp;quot;PCA63511 Rev 1.0.0 2016.27&amp;quot;.&lt;/p&gt;
&lt;p&gt;For the PPK firmware, I have tried loading it with &amp;quot;flash_ppy.py&amp;quot; and also loading ppk_v1_0_0.hex using nRFgo Studio.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error JLINKARM_DLL_ERROR when using Power Profiler</title><link>https://devzone.nordicsemi.com/thread/77714?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2017 15:30:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7243920f-1e3b-4695-b0bf-dae4f617042a</guid><dc:creator>Ed Kuzemchak</dc:creator><description>&lt;p&gt;Updated my question above.  I tried spinning until rtt_is_control_block_found() is True and it is always False.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error JLINKARM_DLL_ERROR when using Power Profiler</title><link>https://devzone.nordicsemi.com/thread/77720?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2017 13:53:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ff0a41a-8c9f-40cf-bd37-23faaf4b0961</guid><dc:creator>Ed Kuzemchak</dc:creator><description>&lt;p&gt;On a clean machine, I started over and made sure I used the versions specified in the PPK user guide:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Python 2.7.12 (32 bit Windows)&lt;/li&gt;
&lt;li&gt;nRF5x Command Line Tools 9.0.0 (which installs Segger JLink 5.12g)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The Segger JLinkconfig.exe connects to the DK board OK.&lt;/p&gt;
&lt;p&gt;I will try your suggestion above of spinning on rtt_is_control_block_found.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error JLINKARM_DLL_ERROR when using Power Profiler</title><link>https://devzone.nordicsemi.com/thread/77719?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2017 13:09:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b826090-911e-4f31-b6df-cb88daf51a76</guid><dc:creator>wlgrd</dc:creator><description>&lt;p&gt;This block has always worked for me&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    self.nrfjprog.sys_reset()
    self.nrfjprog.go()
    self.nrfjprog.rtt_start()
    time.sleep(1)

    data = self.nrfjprog.rtt_read(0, 100, encoding=None)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But quite a few people have the ppk software and haven&amp;#39;t stumbled into this issue, so it makes me wonder if you have an outdated or failing Segger Jlink installation(?).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error JLINKARM_DLL_ERROR when using Power Profiler</title><link>https://devzone.nordicsemi.com/thread/77715?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2017 13:03:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f453e81-c278-4b8a-bfcf-bec3dd2077c7</guid><dc:creator>wlgrd</dc:creator><description>&lt;p&gt;Try adding a &lt;code&gt;import time&lt;/code&gt; at the top, and &lt;code&gt;time.sleep(1)&lt;/code&gt; after &lt;code&gt;nrfjprog.rtt_start()&lt;/code&gt;. I don&amp;#39;t remember why but, but it usually fixes this issue (unless it was the -2, INVALID_OPERATION it fixed).&lt;/p&gt;
&lt;p&gt;You can also try to spool on &lt;code&gt;rtt_is_control_block_found&lt;/code&gt; before proceeding&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>