<?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>Unable to start debugging</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107946/unable-to-start-debugging</link><description>When starting debug inside VC I get this: 
 
 My launch.json looks like this: 
 
 I use nRF v2.5.1. 
 Segger j-link base. 
 Debug works on the nRF eval/DK boards. 
 I can run &amp;quot;west debug&amp;quot; and debug in gdb. 
 Programming works fine in all cases.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Feb 2024 12:33:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107946/unable-to-start-debugging" /><item><title>RE: Unable to start debugging</title><link>https://devzone.nordicsemi.com/thread/467560?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2024 12:33:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0875c61-7cb9-441a-982a-f340a940d6ed</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Great!&lt;/p&gt;
&lt;p&gt;I am glad you got it working, and thanks for sharing your solution.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to start debugging</title><link>https://devzone.nordicsemi.com/thread/467521?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2024 09:21:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee467e7c-2ac1-4683-9132-08fd82383e2f</guid><dc:creator>Tage Korsdal Nielsen</dc:creator><description>&lt;p&gt;Added this to configurations in launch.json:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;quot;serverArgs&amp;quot;: &amp;quot;-if swd -device ${device} -select usb=${snr} -speed 4000 -port ${port} -singlerun -nogui -halt -noir -silent -rtos ${rtosPlugin}&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Now it works!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;rgds Tage&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to start debugging</title><link>https://devzone.nordicsemi.com/thread/467351?ContentTypeID=1</link><pubDate>Fri, 02 Feb 2024 11:59:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3483505-6bb4-4e73-8e13-e9654a4d4c24</guid><dc:creator>Tage Korsdal Nielsen</dc:creator><description>&lt;p&gt;I tried starting debugging while having windows dbgview running.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It seems jlinkgdbserver is started with a target SWD speed of 12000kHz:&lt;/p&gt;
&lt;p&gt;MS_MIDebug: 1: (124) Starting: &amp;quot;C:\Program Files\SEGGER\JLink\JLinkGDBServerCL.exe&amp;quot; -if swd -device nRF52832_xxAA -select usb=50123743 -speed 12000 -port 49330 -singlerun -nogui -halt -noir -silent -rtos c:/Users/tnielsen/.vscode/extensions/nordic-semiconductor.nrf-connect-2023.11.301-win32-x64/debug/jlink/x64/zephyr_rtos.dll&lt;/p&gt;
&lt;p&gt;This is too fast for my target setup -&amp;nbsp; I tried starting jlink with 12000kHz and the target could not connect.&lt;/p&gt;
&lt;p&gt;How do I change that?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Rgds Tage&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to start debugging</title><link>https://devzone.nordicsemi.com/thread/467341?ContentTypeID=1</link><pubDate>Fri, 02 Feb 2024 10:57:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c8f48a6-535a-4e8b-babc-0d5eff1fc890</guid><dc:creator>Tage Korsdal Nielsen</dc:creator><description>&lt;p&gt;&lt;span&gt;Debugging a nRF52DK_52832 board with the Segger j-link box works!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Debugging my target from VC/nRF extension fails for me on bot NCS v2.3.0 and v2.5.1.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Rgds&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Tage&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to start debugging</title><link>https://devzone.nordicsemi.com/thread/467331?ContentTypeID=1</link><pubDate>Fri, 02 Feb 2024 10:08:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9da8fe62-3538-43d2-86d1-ee93e7269623</guid><dc:creator>Elfving</dc:creator><description>[quote user="Tage Korsdal Nielsen"]&lt;p&gt;I will try to debug a nRF52DK_52832 board with the Segger j-link box and update here.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Great, let me know if that works.&lt;/p&gt;
[quote user="Tage Korsdal Nielsen"]&lt;p&gt;I have a colleague still working on V2.3.0 - and it works for him.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Could one of you also try doing it with the other SDK just to be sure that its related to the SDK, and not the environment/HW?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to start debugging</title><link>https://devzone.nordicsemi.com/thread/467203?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2024 14:46:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0eb71ffb-fe1b-4030-9ee4-c564c7d0a2bb</guid><dc:creator>Tage Korsdal Nielsen</dc:creator><description>&lt;p&gt;Hello Elfving,&lt;/p&gt;
&lt;p&gt;Yes I am using this external &amp;quot;j-link BASE&amp;quot; black box from Segger.&lt;/p&gt;
&lt;p&gt;I am tasked with moving us to V2.5.1.&lt;/p&gt;
&lt;p&gt;I have a colleague still working on V2.3.0 - and it works for him.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So yes - it looks a lot like the case you linked.&lt;/p&gt;
&lt;p&gt;I will try to debug a nRF52DK_52832 board with the Segger j-link box and update here.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Rgds Tage&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to start debugging</title><link>https://devzone.nordicsemi.com/thread/467198?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2024 14:34:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82bbef72-db16-4f47-9743-85e5ab27f24a</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello Tage,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]&lt;p&gt;Debug works on the nRF eval/DK boards.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So you are using an external programmer, like a JLink Commander or similar? Did this used to work for you in the past?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/support-private/support/320862"&gt;This reminds&amp;nbsp;me a lot of this previous case of mine&lt;/a&gt;. What I suggested to him&amp;nbsp;(and what I assumed the issue was related to) was the debugger being connected incorrectly. Though if you both are seeing this issue maybe there is something wrong with the newer version of the VSC extension.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to start debugging</title><link>https://devzone.nordicsemi.com/thread/466990?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2024 15:36:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6965765-0dfd-4fc1-a483-d898132bdccd</guid><dc:creator>Tage Korsdal Nielsen</dc:creator><description>&lt;p&gt;Also, I needed to add this to launch.json:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;&amp;quot;gdbPath&amp;quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&amp;quot;c:/dev/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb.exe&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Starting JLink GDB server, and&amp;nbsp;&lt;span&gt;arm-zephyr-eabi-gdb.exe worked - starting from inside VS/nRF extension give the error dialog above.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to start debugging</title><link>https://devzone.nordicsemi.com/thread/466988?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2024 15:32:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f01f9b01-bd1e-4988-a330-9ccfd2ebb2da</guid><dc:creator>Tage Korsdal Nielsen</dc:creator><description>&lt;p&gt;After uninstall/install of nRF VS extensions I now get this:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:323px;max-width:558px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1116x646/__key/communityserver-discussions-components-files/4/4578.e2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>