<?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>Re-connecting JLinkExe each time after flashing the device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69696/re-connecting-jlinkexe-each-time-after-flashing-the-device</link><description>I have a problem when using JLinkExe + JLinkRTTClient . My operating system is Ubuntu 18.04, and I compile the project using cmake and gcc (using great helper scripts from nRF5-cmake-scripts ). 
 Recently I have updated to SDK v. 17, I do not know if</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Dec 2020 10:44:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69696/re-connecting-jlinkexe-each-time-after-flashing-the-device" /><item><title>RE: Re-connecting JLinkExe each time after flashing the device</title><link>https://devzone.nordicsemi.com/thread/286680?ContentTypeID=1</link><pubDate>Mon, 28 Dec 2020 10:44:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56f18006-7ba9-4e92-a2f3-915ae65c6829</guid><dc:creator>podkiva</dc:creator><description>&lt;p&gt;Ok, I will look at -AutoConnect option,&lt;/p&gt;
&lt;p&gt;Thanks a lot for the help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Re-connecting JLinkExe each time after flashing the device</title><link>https://devzone.nordicsemi.com/thread/286667?ContentTypeID=1</link><pubDate>Mon, 28 Dec 2020 10:04:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:885b0e8b-1c7b-4ebb-b6b2-1856278f78fb</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes, it&amp;#39;s by design. I&amp;#39;m not aware of any commands to make Jlink commander automatically re-connect, unfortunately, but maybe the&amp;nbsp;&lt;a href="https://wiki.segger.com/J-Link_Commander#-AutoConnect"&gt;-AutoConnect&lt;/a&gt; option could make the re-connect process a bit less annoying.&amp;nbsp; Alternatively, as workaround, you may try to downgrade to an older version of nrfjprog during development.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Re-connecting JLinkExe each time after flashing the device</title><link>https://devzone.nordicsemi.com/thread/286492?ContentTypeID=1</link><pubDate>Wed, 23 Dec 2020 14:56:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39a5b5cc-704d-494c-a6c9-f45e0769e24e</guid><dc:creator>podkiva</dc:creator><description>&lt;p&gt;Ok, thank you for the explanation!&lt;/p&gt;
&lt;p&gt;So, if I understood it correctly, that means that this is by design, and now I have to re-connect J-Link manually like that? So, this behavior is expected?&lt;/p&gt;
&lt;p&gt;It is not that I cannot work like that, it just a little annoying.. Maybe there are some way to tell running JLinkExe to reconnect, e.g. by a bash command, such that it automatically re-connects each time I flash th device?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Re-connecting JLinkExe each time after flashing the device</title><link>https://devzone.nordicsemi.com/thread/286256?ContentTypeID=1</link><pubDate>Tue, 22 Dec 2020 10:16:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab37d070-3100-455a-b12d-9fbefb5d2c83</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I looked through the release notes for nrfjprog and found this for the 10.10.0 release:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;(nrfjprog.dll) Fixed bug where nrfjprog did not correctly handle debug power. NRFJPROG_close now always ensures that debug power is disabled.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;So I suspect this is the problem: nrfjprog turns off the debug power even if Jlink commander is connected and thus breaks the SWD connection to Jlink commander.&lt;/p&gt;
&lt;p&gt;Note that leaving the debug interface powered will lead to increased current consumption (~3 mA in idle).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Re-connecting JLinkExe each time after flashing the device</title><link>https://devzone.nordicsemi.com/thread/286033?ContentTypeID=1</link><pubDate>Mon, 21 Dec 2020 12:14:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e57f648-3565-48ed-83a5-4d79acce83c4</guid><dc:creator>podkiva</dc:creator><description>&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;Yes, I have double checked that right now - I launch the same cmake target that does the flashing after build, and It does not re-build the target each time (only the first time), so the compilation and linking are done only once - but the same effect is observed.&lt;/p&gt;
&lt;p&gt;I think that hex-generation, hex-merging, dfu page generation are some of the operations that are repeated on each target run.&lt;/p&gt;
&lt;p&gt;Below are the cmake output of the &amp;quot;merged&amp;quot; target (the one that flashes everything - app, softdevice and bootloader)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/cmake_5F00_output.txt"&gt;devzone.nordicsemi.com/.../cmake_5F00_output.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;P. S.&lt;/p&gt;
&lt;p&gt;I forgot the link in the original post to the &lt;a href="https://github.com/NRB-Tech/nRF5-cmake-scripts"&gt;nRF5-cmake-scripts&lt;/a&gt; repository that I use to build my project.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Re-connecting JLinkExe each time after flashing the device</title><link>https://devzone.nordicsemi.com/thread/286029?ContentTypeID=1</link><pubDate>Mon, 21 Dec 2020 11:58:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79d15bfe-59f4-4af1-841d-f0e8490ae171</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Are you re-programming the device with the exact same FW? If not, you will likely have to re-connect the debugger in order for j-link to correctly locate the new RTT buffer in RAM (buffer is not linked to a fixed address).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>