<?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>Debugging nRF52840 DK in VS Code</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118776/debugging-nrf52840-dk-in-vs-code</link><description>I am trying to debug an application in VS Code for the nRF52840 DK in the nRF Connect SDK. 
 After starting debugging, I immediately get this error: &amp;quot;Exception has occurred. Debugger was unable to continue the process&amp;quot;. 
 This occurs at line 951 of cmsis_gcc</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Feb 2025 15:32:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118776/debugging-nrf52840-dk-in-vs-code" /><item><title>RE: Debugging nRF52840 DK in VS Code</title><link>https://devzone.nordicsemi.com/thread/522496?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2025 15:32:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04f771de-028e-4cfb-8955-350ea300b413</guid><dc:creator>len_</dc:creator><description>&lt;p&gt;The debug console says:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;JLinkGDBServerCLexe: SEGGER J-Link GDB Server V7.94i Command Line Version
JLinkGDBServerCLexe: 
JLinkGDBServerCLexe: JLinkARM.dll V7.94i (DLL compiled Feb  7 2024 17:05:53)
JLinkGDBServerCLexe: 
JLinkGDBServerCLexe: -----GDB Server start settings-----
JLinkGDBServerCLexe: GDBInit file:                  none
JLinkGDBServerCLexe: GDB Server Listening port:     57549
JLinkGDBServerCLexe: SWO raw output listening port: 2332
JLinkGDBServerCLexe: Terminal I/O port:             2333
JLinkGDBServerCLexe: Accept remote connection:      yes
JLinkGDBServerCLexe: Generate logfile:              off
JLinkGDBServerCLexe: Verify download:               off
JLinkGDBServerCLexe: Init regs on start:            off
JLinkGDBServerCLexe: Silent mode:                   on
JLinkGDBServerCLexe: Single run mode:               on
JLinkGDBServerCLexe: Target connection timeout:     0 ms
JLinkGDBServerCLexe: ------J-Link related settings------
JLinkGDBServerCLexe: J-Link Host interface:         USB
JLinkGDBServerCLexe: J-Link script:                 none
JLinkGDBServerCLexe: J-Link settings file:          none
JLinkGDBServerCLexe: ------Target related settings------
JLinkGDBServerCLexe: Target device:                 nRF52840_xxAA
JLinkGDBServerCLexe: Target device parameters:      none
JLinkGDBServerCLexe: Target interface:              SWD
JLinkGDBServerCLexe: Target interface speed:        12000kHz
JLinkGDBServerCLexe: Target endian:                 little
JLinkGDBServerCLexe: 
=thread-group-added,id=&amp;quot;i1&amp;quot;
=cmd-param-changed,param=&amp;quot;pagination&amp;quot;,value=&amp;quot;off&amp;quot;
__enable_irq () at /opt/nordic/ncs/v2.8.0/modules/hal/cmsis/CMSIS/Core/Include/cmsis_gcc.h:951
951	  __ASM volatile (&amp;quot;cpsie i&amp;quot; : : : &amp;quot;memory&amp;quot;);
[New Thread 536899472]
[New Thread 536880040]
[New Thread 536899256]
[New Thread 536899840]
[New Thread 536890528]
[New Thread 536890744]
[New Thread 536890960]
[New Thread 536899072]
ERROR: Command aborted. See the output window for additional details.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The output says:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[15:24:13] west flash -d /Users/student/abc/build_debug --domain central_unit --dev-id 1050291687 --no-reset
[15:24:52] Success.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and there is no abnormal output on the Serial port.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging nRF52840 DK in VS Code</title><link>https://devzone.nordicsemi.com/thread/522414?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2025 11:53:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78626f51-b4ec-40bd-9e76-bcdec0005972</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Do you get anything printed in the log (either UART or RTT) about this exception&amp;nbsp;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging nRF52840 DK in VS Code</title><link>https://devzone.nordicsemi.com/thread/522250?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2025 14:52:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b9144f3-c777-4568-bb12-3174ebe9d41d</guid><dc:creator>len_</dc:creator><description>&lt;p&gt;Hi Sigurd, here is the call stack when the exception happens:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:170px;max-width:403px;" height="170" src="https://devzone.nordicsemi.com/resized-image/__size/806x340/__key/communityserver-discussions-components-files/4/Screenshot-2025_2D00_02_2D00_10-at-2.47.42-PM.png" width="403" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:170px;max-width:400px;" height="170" src="https://devzone.nordicsemi.com/resized-image/__size/800x340/__key/communityserver-discussions-components-files/4/Screenshot-2025_2D00_02_2D00_10-at-2.48.13-PM.png" width="400" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:171px;max-width:402px;" height="171" src="https://devzone.nordicsemi.com/resized-image/__size/804x342/__key/communityserver-discussions-components-files/4/Screenshot-2025_2D00_02_2D00_10-at-2.48.26-PM.png" width="402" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:181px;max-width:400px;" height="181" src="https://devzone.nordicsemi.com/resized-image/__size/800x362/__key/communityserver-discussions-components-files/4/Screenshot-2025_2D00_02_2D00_10-at-2.48.42-PM.png" width="400" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging nRF52840 DK in VS Code</title><link>https://devzone.nordicsemi.com/thread/522199?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2025 13:28:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28bfa406-22db-46fa-9271-3bbfb7ca8a4b</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;How does the stack trace looks like?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>