GDB exited unexpectedly with exit code 253 (0xFD).

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:

SDK:  Zephyr v4.1.99

Toolchain: nRF Connect SDK Toolchain v3.0.2

Board target:  nrf9151dk/nrf9151/ns

Optimization level:  Optimize for debugging (-Og)

After the build files are generated, it looks like this:

After selecting "debug", which should burn the build on the board and begin debugging it, I get the following error message: 

Just as a side note, this appears to be a problem with the debugger.  I have not had problems flashing code to this board. 

Here is my nrf-connect-support-20250610154243.jsonc file:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// IMPORTANT: The following data can contain sensitive or confidential information about your environment.
// If you do not want others to see this information, make sure to remove it before sharing the data.
// For help and support, visit Nordic Semiconductor's DevZone at https://devzone.nordicsemi.com/.
{
"platform": {
"os": "linux",
"osVersion": "#63~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 22 19:00:15 UTC 2",
"osKernel": "6.8.0-60-generic",
"vscode": "1.100.3",
"electron": "34.5.1",
"node": "v20.19.0",
"name": "Ubuntu",
"id": "ubuntu",
"version": "22.04.4 LTS (Jammy Jellyfish)",
"versionId": "22.04"
},
"system": {
"date": "2025-06-10T15:42:34.805Z",
"vscodeRoot": "/usr/share/code/resources/app",
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

I would appreciate any help you could provide on this.

Thank you,

sonic4

Parents
  • Hi Sonic4,

    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.

    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?

Reply
  • Hi Sonic4,

    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.

    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?

Children
No Data