<?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>Debug session &amp;quot;hangs&amp;quot; immediately and &amp;quot;pause&amp;quot; button on debug toolbar does nothing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120263/debug-session-hangs-immediately-and-pause-button-on-debug-toolbar-does-nothing</link><description>I have compiled code that debugs and runs normally on the nRF52840DK. I just connected my custom PCB to the debug out connector on the DK and I have two issues that are probably related. If I start a debug session, the programming, verifying, pin reset</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Apr 2025 01:50:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120263/debug-session-hangs-immediately-and-pause-button-on-debug-toolbar-does-nothing" /><item><title>RE: Debug session "hangs" immediately and "pause" button on debug toolbar does nothing</title><link>https://devzone.nordicsemi.com/thread/531758?ContentTypeID=1</link><pubDate>Tue, 15 Apr 2025 01:50:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6812cb8c-84b6-4ed3-8e60-dd2d48bbb036</guid><dc:creator>PaulJ</dc:creator><description>&lt;p&gt;OK thanks. I added the command to the launch.json file and now it isn&amp;#39;t automatically reprogramming the device at the start of a debug session. I also found this line in the board.cmake file that appears to set the speed for the JLink:&amp;nbsp;board_runner_args(jlink &amp;quot;--device=nRF52840_xxAA&amp;quot; &amp;quot;--speed=500&amp;quot;). Note that I have set it to 500 for my application. I was still unable to start a debug session, but I managed to talk to the device with JLink Commander and I can see that the Stack Pointer is not set correctly. I will now dig into the mountains of config files to figure out which one sets up the various memory boundaries and set it correctly for my device (I found it while digging around earlier but seem to have forgotten what it is called and where it resides). I have wasted enough of your time on this so I am going to label this as solved since you have explained how to slow down the Jlink speed and remove the auto program.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug session "hangs" immediately and "pause" button on debug toolbar does nothing</title><link>https://devzone.nordicsemi.com/thread/531732?ContentTypeID=1</link><pubDate>Mon, 14 Apr 2025 14:57:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62638e97-5189-4e4b-95e4-4d69089c336c</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;div&gt;You can disable the automatic flashing that occurs when starting a debug session:&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;&lt;span&gt;Go to VS Code Settings&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;&lt;span&gt;Navigate to User → nRF Connect → Debugging:Flash&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;&lt;span&gt;Disable this setting&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;Or you can set&amp;nbsp;the following line to the configuration section of your&amp;nbsp;&lt;code dir="ltr"&gt;launch.json&lt;/code&gt;&amp;nbsp;file:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;quot;flash&amp;quot;: false&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/105029/frustrated-with-nrf5340-vscode---restarting-debugging-will-reflash-the-firmware-again/452293"&gt;(+) Frustrated with nrf5340 &amp;amp; vscode - Restarting debugging will reflash the firmware again! - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I alos have seen that you can set target speed for SWD from J-Link RTT Viewer&lt;/p&gt;
&lt;p&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/pastedimage1744642617262v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug session "hangs" immediately and "pause" button on debug toolbar does nothing</title><link>https://devzone.nordicsemi.com/thread/531413?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2025 15:43:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d88abad-053b-4d44-9beb-ab5a145317c2</guid><dc:creator>PaulJ</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Kazi&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;The problem lies with the &amp;quot;Debug&amp;quot; icon from the VS screen. If I click on that, it always reprograms the cpu. How do I set this programming speed? Or is there a way to stop it from programming the CPU and then I can program manually from nRF Command Line Tools and jump to a debug session without a re-programming?&lt;/div&gt;
&lt;div&gt;Thanks&lt;/div&gt;
&lt;div&gt;Paul&lt;/div&gt;
&lt;div&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/pastedimage1744299821288v3.png" alt=" " /&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug session "hangs" immediately and "pause" button on debug toolbar does nothing</title><link>https://devzone.nordicsemi.com/thread/531269?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2025 06:50:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f720a61c-21bd-422a-adf2-5b6bfa2ffd4a</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Paul,&lt;/p&gt;
&lt;p&gt;Do you mean how nrfjprog command can be used?&lt;/p&gt;
&lt;p&gt;Please read this documnentation&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf_cltools/page/UG/cltools/nrf_installation.html"&gt;Installing the nRF Command Line Tools&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You can run the command from command prompt of your system, from the toolchain manager app of nRF Connect for Desktop&lt;/p&gt;
&lt;p&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/pastedimage1744267778198v1.png" alt=" " /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;and also form VS code terminal&amp;nbsp;&lt;/p&gt;
&lt;p&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/pastedimage1744267841169v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug session "hangs" immediately and "pause" button on debug toolbar does nothing</title><link>https://devzone.nordicsemi.com/thread/531227?ContentTypeID=1</link><pubDate>Wed, 09 Apr 2025 15:31:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71af5e8d-73de-4f6d-a2fb-010f57f02786</guid><dc:creator>PaulJ</dc:creator><description>&lt;p&gt;Thank you. And I apologize in advance for not being up to speed on all the configuration methods, but which file does this instruction go into? I would guess the json file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug session "hangs" immediately and "pause" button on debug toolbar does nothing</title><link>https://devzone.nordicsemi.com/thread/531146?ContentTypeID=1</link><pubDate>Wed, 09 Apr 2025 09:54:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b6f3d13-0928-455d-b866-eea529846c2a</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Paul,&lt;/p&gt;
&lt;p&gt;You can use &lt;strong&gt;nrfjprog -r --clockspeed 10000&lt;/strong&gt; (or any specified value for your device) command.&lt;/p&gt;
&lt;p&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/3716.pastedimage1744192237037v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&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/2211.pastedimage1744192233356v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf_cltools/page/UG/cltools/nrf_nrfjprogexe_reference.html"&gt;nrfjprog commands&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug session "hangs" immediately and "pause" button on debug toolbar does nothing</title><link>https://devzone.nordicsemi.com/thread/530714?ContentTypeID=1</link><pubDate>Sun, 06 Apr 2025 16:26:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c060c08c-fa76-45ce-821d-6ec59db21021</guid><dc:creator>PaulJ</dc:creator><description>&lt;p&gt;Just wondering if you have found the answer to the need for a slower SWCLK clock speed for the programming phase?&lt;/p&gt;
&lt;p&gt;Paul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug session "hangs" immediately and "pause" button on debug toolbar does nothing</title><link>https://devzone.nordicsemi.com/thread/530092?ContentTypeID=1</link><pubDate>Wed, 02 Apr 2025 01:20:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4168fc74-3f3c-4476-95dd-2122898c244a</guid><dc:creator>PaulJ</dc:creator><description>&lt;p&gt;Hi, and thank you for the suggestion. I will confess that I have been trying to avoid learning the &amp;quot;devicetree&amp;quot; system but I guess I will need to dig into it to &amp;quot;unset&amp;quot; all the configurations that were set for the example I used to get started. My ultimate goal is to remove all these front end configurations and the RTOS. I am trying to design a canoe, not a cruise ship!&lt;/p&gt;
&lt;p&gt;There is one question above that I would like to get answered before I go too much further; how do I slow down the SWCLK clock speed for the programming phase? It&amp;#39;s currently running at 2MHz which is too fast for the hardware/cables that I have developed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug session "hangs" immediately and "pause" button on debug toolbar does nothing</title><link>https://devzone.nordicsemi.com/thread/529921?ContentTypeID=1</link><pubDate>Tue, 01 Apr 2025 08:28:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af105908-feb6-491e-b24d-bf53a6557044</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I think you can try the workouts you mentioned in the case. If those don&amp;#39;t help, can you check your custom application if the internal RC Oscillator is set? If not, you can set this my following configurations&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y
CONFIG_CLOCK_CONTROL_NRF_K32SRC_500PPM=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>