<?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>How Can I  Attaching to a Running Target(52832) with  J-Link</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105508/how-can-i-attaching-to-a-running-target-52832-with-j-link</link><description>How Can I Attaching to a Running Target(52832) with J-Link</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Nov 2023 15:35:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105508/how-can-i-attaching-to-a-running-target-52832-with-j-link" /><item><title>RE: How Can I  Attaching to a Running Target(52832) with  J-Link</title><link>https://devzone.nordicsemi.com/thread/454970?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2023 15:35:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f0bce09-9cc7-41e6-8c73-1cf4d739a37a</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You can attach to a running target with the Debugger in the nRF Connect for VS Code extension, Ozone, and Segger Embedded Studio. Note that you need to build with debug options enabled.&lt;/p&gt;
&lt;p&gt;If you are using the radio, you need to use monitor mode debugging to not interfere with the radio timings.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;nRF Connect for VS Code&lt;/strong&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;Add your project as an application in the extension.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;Build your project with &amp;quot;Optimize for debugging&amp;quot; chosen in the build configuration.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;Flash your target board.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;Select the build in the Applications tab and hover over Debug in the Build tab.&amp;nbsp;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;Select the three dots.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1699541579501v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;Select &amp;quot;Attach Debugger to Target&amp;quot;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1699541585625v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Ozone&lt;/strong&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;You can use Ozone on its own or through the nRF Connect for VS Code extension. The method for using it with VS Code extension is the same as listed above, just substitute &amp;quot;Debug&amp;quot; with &amp;quot;Debug with Ozone&amp;quot;.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;See the getting started guide for Ozone for the other approach to use Ozone: &lt;a href="https://www.segger.com/products/development-tools/ozone-j-link-debugger/technology/getting-started-with-ozone/"&gt;https://www.segger.com/products/development-tools/ozone-j-link-debugger/technology/getting-started-with-ozone/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Segger Embedded Studio&lt;/strong&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;See this documentation for general debugging in SES: &lt;a href="https://wiki.segger.com/Embedded_Studio#Debugging"&gt;https://wiki.segger.com/Embedded_Studio#Debugging&lt;/a&gt; &lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;This documentation covers monitor mode for in SES and Ozone: &lt;a href="https://wiki.segger.com/nRF52_Series_Devices#Monitor_Mode_Debugging_on_Nordic_nRF52"&gt;https://wiki.segger.com/nRF52_Series_Devices#Monitor_Mode_Debugging_on_Nordic_nRF52&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>