<?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>GDB exited unexpectedly with exit code 253 (0xFD).</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122177/gdb-exited-unexpectedly-with-exit-code-253-0xfd</link><description>Dear colleagues, I am using the Nordic nrF9151-DK as part of exercise1, lesson 2 of the intermediate Devacademy course. Lesson 2 is about trying and using the various vscode/nRF-Extension Pack debugger features. 
 Build configuration is set as follows</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Jul 2025 04:12:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122177/gdb-exited-unexpectedly-with-exit-code-253-0xfd" /><item><title>RE: GDB exited unexpectedly with exit code 253 (0xFD).</title><link>https://devzone.nordicsemi.com/thread/542456?ContentTypeID=1</link><pubDate>Tue, 15 Jul 2025 04:12:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e6fc3cf-6a44-4591-85fb-0048adcffe2b</guid><dc:creator>roman.turkin</dc:creator><description>&lt;p&gt;I had exactly the same issue. SDK v3.0.2, Ubuntu 22.04, a custom PCB with NRF9151, and I was running a JLink v782. I was able to attach with a debugger and perform my debugging session after removing the JLink DEB package and installing JLink v850.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GDB exited unexpectedly with exit code 253 (0xFD).</title><link>https://devzone.nordicsemi.com/thread/542328?ContentTypeID=1</link><pubDate>Mon, 14 Jul 2025 07:56:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23c01620-9d44-4ef3-aad1-482fd3e86b23</guid><dc:creator>JetroSimen</dc:creator><description>&lt;p&gt;Thanks a lot ;)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;looking forward to your reply!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GDB exited unexpectedly with exit code 253 (0xFD).</title><link>https://devzone.nordicsemi.com/thread/542327?ContentTypeID=1</link><pubDate>Mon, 14 Jul 2025 07:54:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fccd785-80ac-49b3-a6f8-3cb8b4d29783</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Thanks for the info Simen,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Since more than one is having this issue, I will try to get help to investigate this internally. Seems like an issue in our solution but if it is in the SDK or VSC is unclear for now until we dive in a bit deeper. The response internally will be a bit slower these coming 3 weeks due to summer holidays in Norway. But if I get an update sooner I will revert here after that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GDB exited unexpectedly with exit code 253 (0xFD).</title><link>https://devzone.nordicsemi.com/thread/542248?ContentTypeID=1</link><pubDate>Fri, 11 Jul 2025 12:52:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:532d0139-285a-4c4e-a8b2-29001d523339</guid><dc:creator>JetroSimen</dc:creator><description>&lt;p&gt;Hi, I have the same problem. I had to roll back to 2.9.x to get it to work.&lt;br /&gt;&lt;br /&gt;Today I tried on a different pc (windows 10), with clean SDK 3.0.2 and only debugging a blinky on nrf9151dk.&lt;/p&gt;
&lt;p&gt;I have the same issue while debugging with J-Link Base debugger.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;Please check power, connection and settings.
&amp;quot;C:\Program Files\SEGGER\JLink_V794i\JLinkGDBServerCL.exe&amp;quot; exited with code -3 (0xFFFFFFFD).&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Please take a closer look at this, seems to be an issue with nRF9151 and SDK 3.0.2.&lt;br /&gt;&lt;br /&gt;debugging nRF5340 on SDK 3.0.2 works fine, I only have issues on the nRF9151&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GDB exited unexpectedly with exit code 253 (0xFD).</title><link>https://devzone.nordicsemi.com/thread/539307?ContentTypeID=1</link><pubDate>Mon, 16 Jun 2025 06:36:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5eecd5d6-1918-4e2a-ae61-a03f594fa627</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Sonic4,&lt;/p&gt;
&lt;p&gt;Seems liike there are two issues that you are seeing. The debugger seeems to be failing mostly due to the target voltage being low or not detected which could be a hardware or USB issue.&lt;/p&gt;
&lt;p&gt;The second problem seems to be that your TFM generated files seems to use an outdate function (flash_area_get_sector) which might not be available in the SDK version you are using. Are you sure you are using the same SDK version suggested in the lesson?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GDB exited unexpectedly with exit code 253 (0xFD).</title><link>https://devzone.nordicsemi.com/thread/538889?ContentTypeID=1</link><pubDate>Wed, 11 Jun 2025 17:16:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ea34532-c697-40d1-9bf0-1fb1fb766f6c</guid><dc:creator>sonic4</dc:creator><description>&lt;p&gt;...as expected, the &amp;quot;workaround&amp;quot; I described above only worked to get me through assignment 1 in lesson 2 of the Nordic Devacademy intermediate course.&amp;nbsp; Opening a new ticket for the &amp;quot;issue&amp;quot; that is occuring with assignment 2 in lesson 2.&amp;nbsp; This making me hanker for an IDE that is less-ambitious in its functionality, but way-more reliable and transparent. Most of the time I&amp;#39;m doing on this course is figuring out workarounds with VSCode.&amp;nbsp; Trying to build lesson 2 of assigment 2 of the Nordic Devacademy intermediate class with an nRF9151-Dk.&amp;nbsp; On to the next ticket...&lt;/p&gt;
&lt;p&gt;sonic4&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GDB exited unexpectedly with exit code 253 (0xFD).</title><link>https://devzone.nordicsemi.com/thread/538823?ContentTypeID=1</link><pubDate>Wed, 11 Jun 2025 12:56:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af6f41da-a453-4bfa-9f7c-a184fb5c81d0</guid><dc:creator>sonic4</dc:creator><description>&lt;p&gt;Dear Colleagues,&lt;/p&gt;
&lt;p&gt;Strangely, I got a sort-of workaround going today.&amp;nbsp; I upversioned to JLink V810i (nrf-connect wanted V794i).&amp;nbsp; Then, after building with &amp;quot;Optimize for debugging (-Og) enabled in the configuration, I edited bootutil_misc.c to correct line 153.&amp;nbsp; A problem with this file is shown in the &amp;quot;problems&amp;quot; window:&amp;nbsp; &lt;span style="color:#ffcc00;"&gt;&amp;nbsp;&lt;span style="color:#ff6600;"&gt;implicit declaration of function &amp;#39;flash area_get_sector&amp;#39;; did you mean &amp;#39;flash_area_get_sectors&amp;#39;?[-Wimplicit-function-declaration] gcc [Ln 153, Col 15]&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I simply edited the file inline and hit &amp;quot;debug&amp;quot;, the trusted firmware version flashed and now I am proceeding with the lesson. I did not rebuild.&lt;/p&gt;
&lt;p&gt;I believe this will be a consistent problem with each future &amp;quot;debugging enabled&amp;quot; build, since bootutil_misc.c appears to be generated as part of the build.&lt;/p&gt;
&lt;p&gt;At least I can proceed with this lesson, though and seem to have identified a temporary workaround. It will be interesting to see what happens the next time I have to use the debugger-- or the next time I start VS.&lt;/p&gt;
&lt;p&gt;Thanks,&amp;nbsp; sonic4&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>