0xDEADBEEE when flashing and debugging a custom 52840 board

Hi, 

I'm having some trouble running example code on my custom board with the nrf52840 SoC. Im using nRF Connect for VSC on Windows and can flash the simple "blinky" program to a DK without any trouble. But when flashing the same code to my custom board the debugger says:

"Thread 2 received signal SIGTRAP, Trace/breakpoint trap.

0xdeadbeee in ?? ()"
This error seems to occur before even entering the main loop. Any suggestions of what might be wrong?
Parents Reply Children
  • Hi,

    Is you reset being enabled somehow ? maybe via external circuitry etc? This could be a reason.

    -Priyanka

  • Not that I am aware off.

    Im programming via an external JLink debugger and its working fine for some other custom applications, so the reset should not be enabled by the debugger atleast.

  • Hi,

    Is it possible to attach the Support Information?

    You can get this by selecting the "Generate Support Information" option on the top left corner.

    -Priyanka

  • IMPORTANT: The data below could contain sensitive or confidential information about your environment.
    If you do not wish this to be seen by others, please make sure to remove it before sharing.
    
    For help and support, visit the Nordic DevZone at https://devzone.nordicsemi.com/.
    
    {
      "platform": {
        "os": "win32",
        "osVersion": "Windows 10 Enterprise",
        "osKernel": "10.0.19044",
        "vscode": "1.72.0",
        "electron": "19.0.17",
        "node": "v16.14.2"
      },
      "system": {
        "date": "2022-10-10T07:05:41.883Z",
        "vscodeRoot": "c:\\Users\\augfr\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "01:08:26",
        "osUptime": "90:42:48",
        "cpu": {
          "model": "Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz",
          "speed": "1992 MHz",
          "count": 4
        },
        "memory": {
          "total": "15.85 GB",
          "free": "3.18 GB"
        }
      },
      "workspace": {
        "name": "blinky",
        "workspaceFile": null,
        "folders": [
          "c:\\ncs\\v2.1.0\\zephyr\\samples\\basic\\blinky"
        ]
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2022.10.30",
            "path": "c:\\Users\\augfr\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2022.10.30-win32-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2022.10.7",
            "path": "c:\\Users\\augfr\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2022.10.7",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2022.9.11",
            "path": "c:\\Users\\augfr\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2022.9.11",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2022.10.7",
            "path": "c:\\Users\\augfr\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2022.10.7",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": "1.6.6",
          "ms-vscode.cpptools": "1.12.4",
          "ms-vscode-remote.remote-wsl-recommender": "0.0.17",
          "ms-vscode.js-debug": "1.72.1",
          "ms-vscode.js-debug-companion": "1.0.18",
          "ms-vscode.vscode-js-profile-table": "1.0.3",
          "ms-python.python": "2022.16.0",
          "ms-python.vscode-pylance": "2022.10.10",
          "ms-toolsai.jupyter": "2022.9.1002791758",
          "ms-toolsai.jupyter-keymap": "1.0.0",
          "ms-toolsai.jupyter-renderers": "1.0.10",
          "ms-toolsai.vscode-jupyter-cell-tags": "0.1.6",
          "ms-toolsai.vscode-jupyter-slideshow": "0.1.5",
          "ms-vscode-remote.remote-containers": "0.255.2",
          "ms-vscode-remote.remote-ssh": "0.84.0",
          "ms-vscode-remote.remote-ssh-edit": "0.84.0",
          "ms-vscode-remote.remote-wsl": "0.72.0",
          "ms-vscode-remote.vscode-remote-extensionpack": "0.21.0",
          "ms-vscode.cmake-tools": "1.12.27",
          "ms-vscode.cpptools-themes": "1.0.0",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "twxs.cmake": "0.0.17"
        }
      },
      "tools": {
        "c:\\ncs\\toolchains\\v2.1.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.14.1",
        "C:\\Program Files\\SEGGER\\JLink\\JLink.exe": "7.80b",
        "C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.17.3",
        "nrfutil": "Not found",
        "c:\\ncs\\toolchains\\v2.1.0\\opt\\bin\\cmake.exe": "3.20.5",
        "c:\\ncs\\toolchains\\v2.1.0\\opt\\bin\\Scripts\\west.exe": "0.14.0",
        "c:\\ncs\\toolchains\\v2.1.0\\opt\\bin\\python.exe": "3.8.2",
        "c:\\ncs\\toolchains\\v2.1.0\\opt\\bin\\ninja.exe": "1.9.0",
        "c:\\ncs\\toolchains\\v2.1.0\\opt\\bin\\gperf.exe": "3.1",
        "c:\\ncs\\toolchains\\v2.1.0\\opt\\bin\\dtc.exe": "1.4.7",
        "c:\\ncs\\toolchains\\v2.1.0\\opt\\bin\\gn.exe": "2060",
        "c:\\ncs\\toolchains\\v2.1.0\\mingw64\\bin\\git.exe": "2.26.2.windows.1"
      },
      "sdks": [
        {
          "version": "2.1.0",
          "path": "c:\\ncs\\v2.1.0"
        }
      ],
      "toolchains": [
        {
          "version": "2.1.0",
          "path": "c:\\ncs\\toolchains\\v2.1.0"
        }
      ],
      "connectedDevices": [
        {
          "serialNumber": "59103351"
        }
      ],
      "deviceProviders": [
        "nrfjprog"
      ],
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "${nrf-connect.sdk:2.1.0}",
          "toolchain": {
            "path": "${nrf-connect.toolchain:2.1.0}"
          },
          "ozonePath": "",
          "applications": [
            "${workspaceFolder}"
          ],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig"
          },
          "welcome": {
            "showOnStartup": true
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [],
          "enableTelemetry": false,
          "taskBindings": {},
          "debugging": {
            "backend": "nRF Debug",
            "flash": true
          },
          "activeAppFollowActiveEditor": true
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character"
        },
        "marus25.cortex-debug": {
          "armToolchainPath": null,
          "armToolchainPrefix": "arm-none-eabi",
          "gdbPath": null,
          "objdumpPath": null,
          "JLinkGDBServerPath": null,
          "openocdPath": null,
          "pyocdPath": null,
          "PEGDBServerPath": null,
          "stutilPath": null,
          "stlinkPath": null,
          "stm32cubeprogrammer": null,
          "enableTelemetry": true,
          "registerUseNaturalFormat": true,
          "variableUseNaturalFormat": true,
          "dbgServerLogfile": null,
          "showRTOS": false,
          "showDevDebugOutput": "none"
        }
      },
      "environment": {
        "westExe": "west",
        "westEnv": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "C:\\Users\\augfr",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\augfr",
          "Path": "c:\\ncs\\toolchains\\v2.1.0\\mingw64\\bin;c:\\ncs\\toolchains\\v2.1.0\\mingw64\\libexec\\git-core;c:\\ncs\\toolchains\\v2.1.0\\opt\\bin;c:\\ncs\\toolchains\\v2.1.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin;c:\\ncs\\toolchains\\v2.1.0\\arm-zephyr-eabi\\bin;c:\\ncs\\toolchains\\v2.1.0\\opt\\bin\\Scripts;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Git\\cmd;C:\\Program Files\\usbipd-win\\;C:\\Program Files\\PuTTY\\;C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\tup-latest;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\SEGGER\\JLink;C:\\Users\\augfr\\AppData\\Local\\Programs\\Python\\Python310\\Scripts\\;C:\\Users\\augfr\\AppData\\Local\\Programs\\Python\\Python310\\;C:\\Program Files (x86)\\GNU Arm Embedded Toolchain\\9 2020-q2-update\\bin;C:\\Users\\augfr\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\augfr\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\msys64\\mingw64\\bin",
          "ZEPHYR_BASE": "c:\\ncs\\v2.1.0\\zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "c:\\ncs\\toolchains\\v2.1.0\\opt\\zephyr-sdk",
          "PYTHONPATH": "c:\\ncs\\toolchains\\v2.1.0\\opt\\bin;c:\\ncs\\toolchains\\v2.1.0\\opt\\bin\\Lib;c:\\ncs\\toolchains\\v2.1.0\\opt\\bin\\Lib\\site-packages",
          "Python3_ROOT": "c:\\ncs\\toolchains\\v2.1.0\\opt\\bin"
        },
        "inherited": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "C:\\Users\\augfr",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\augfr",
          "Path": "C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Git\\cmd;C:\\Program Files\\usbipd-win\\;C:\\Program Files\\PuTTY\\;C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\tup-latest;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\SEGGER\\JLink;C:\\Users\\augfr\\AppData\\Local\\Programs\\Python\\Python310\\Scripts\\;C:\\Users\\augfr\\AppData\\Local\\Programs\\Python\\Python310\\;C:\\Program Files (x86)\\GNU Arm Embedded Toolchain\\9 2020-q2-update\\bin;C:\\Users\\augfr\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\augfr\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\msys64\\mingw64\\bin",
          "PATH": "C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Git\\cmd;C:\\Program Files\\usbipd-win\\;C:\\Program Files\\PuTTY\\;C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\tup-latest;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\SEGGER\\JLink;C:\\Users\\augfr\\AppData\\Local\\Programs\\Python\\Python310\\Scripts\\;C:\\Users\\augfr\\AppData\\Local\\Programs\\Python\\Python310\\;C:\\Program Files (x86)\\GNU Arm Embedded Toolchain\\9 2020-q2-update\\bin;C:\\Users\\augfr\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\augfr\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\msys64\\mingw64\\bin"
        },
        "toolchainPath": "c:\\ncs\\toolchains\\v2.1.0",
        "toolchainBinPath": "c:\\ncs\\toolchains\\v2.1.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin",
        "toolchainVersion": "2.1.0"
      },
      "terminal": {
        "shell": null,
        "defaultProfile": null
      }
    }
    
    
    Yes of course.

    Let me know if you need anything else to help me find a solution to the problem.

  • Hi August,

    Could you try to read the RESETREAS register in order to check if the RESET pin was enabled somehow?

    -Priyanka

Related