Can't Start Debugging with NRF Connect SDK in VS Code due to arm-zephyr-eabi-gdb-no-py.exe

Hey everyone, I looked all over and could not find any solution to my problem.

Could not start GDB process, does the program exist in filesystem?
Error: spawn d:\Tools\ncs\toolchains\v2.2.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gdb-no-py.exe ENOENT

The info I found suggested I need to install python 3.8.  I already had python installed but I installed this specific version with chocolatey and then I installed it using the normal installer, no change.  I tried creating new projects from samples and still had the same issue.  If I could just find where nrf connect tries to launch the debugger from i could force it to use the 'py' versio though maybe it's only in binary form so I can't troubleshoot in that way.

Any help would be greatly appreciated.

Parents
  • I am having the same issue.

    Cortex-Debug: VSCode debugger extension version 1.12.0 git(d7a405a). Usage info: github.com/.../cortex-debug
    Warn: /home/parallels/src/gen2/scu-ble-fw/build/zephyr/merged_domains.hex is not an ELF file format. Some features won't work -- Globals, Locals, disassembly, etc.Launching GDB: /home/parallels/zephyr-sdk-0.16.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb-no-py -q --interpreter=mi2
    IMPORTANT: Set "showDevDebugOutput": "raw" in "launch.json" to see verbose GDB transactions here. Very helpful to debug issues or report problems
    Could not start GDB process, does the program exist in filesystem?
    Error: spawn /home/parallels/zephyr-sdk-0.16.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb-no-py ENOENT

    I am running ubuntu in parallels on MacOS M1 Apple Silicon. There is no compatible NRF Connect Desktop so I had to do the manual SDK install of arm64+ubuntu.  Everything else seems to work fine inside and outside of VS Code except the no-py is missing:

    parallels@ubuntu-linux-22-04-desktop:~/src/gen2$ ls -1 ~/zephyr-sdk-0.16.1/arm-zephyr-eabi/bin
    arm-zephyr-eabi-addr2line
    arm-zephyr-eabi-ar
    arm-zephyr-eabi-as
    arm-zephyr-eabi-c++
    arm-zephyr-eabi-c++filt
    arm-zephyr-eabi-cc
    arm-zephyr-eabi-cpp
    arm-zephyr-eabi-ct-ng.config
    arm-zephyr-eabi-elfedit
    arm-zephyr-eabi-g++
    arm-zephyr-eabi-gcc
    arm-zephyr-eabi-gcc-12.2.0
    arm-zephyr-eabi-gcc-ar
    arm-zephyr-eabi-gcc-nm
    arm-zephyr-eabi-gcc-ranlib
    arm-zephyr-eabi-gcov
    arm-zephyr-eabi-gcov-dump
    arm-zephyr-eabi-gcov-tool
    arm-zephyr-eabi-gdb
    arm-zephyr-eabi-gdb-add-index
    arm-zephyr-eabi-gdb-add-index-py
    arm-zephyr-eabi-gdb-py
    arm-zephyr-eabi-gprof
    arm-zephyr-eabi-gprof-py
    arm-zephyr-eabi-ld
    arm-zephyr-eabi-ld.bfd
    arm-zephyr-eabi-lto-dump
    arm-zephyr-eabi-nm
    arm-zephyr-eabi-objcopy
    arm-zephyr-eabi-objdump
    arm-zephyr-eabi-ranlib
    arm-zephyr-eabi-readelf
    arm-zephyr-eabi-size
    arm-zephyr-eabi-strings
    arm-zephyr-eabi-strip


Reply
  • I am having the same issue.

    Cortex-Debug: VSCode debugger extension version 1.12.0 git(d7a405a). Usage info: github.com/.../cortex-debug
    Warn: /home/parallels/src/gen2/scu-ble-fw/build/zephyr/merged_domains.hex is not an ELF file format. Some features won't work -- Globals, Locals, disassembly, etc.Launching GDB: /home/parallels/zephyr-sdk-0.16.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb-no-py -q --interpreter=mi2
    IMPORTANT: Set "showDevDebugOutput": "raw" in "launch.json" to see verbose GDB transactions here. Very helpful to debug issues or report problems
    Could not start GDB process, does the program exist in filesystem?
    Error: spawn /home/parallels/zephyr-sdk-0.16.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb-no-py ENOENT

    I am running ubuntu in parallels on MacOS M1 Apple Silicon. There is no compatible NRF Connect Desktop so I had to do the manual SDK install of arm64+ubuntu.  Everything else seems to work fine inside and outside of VS Code except the no-py is missing:

    parallels@ubuntu-linux-22-04-desktop:~/src/gen2$ ls -1 ~/zephyr-sdk-0.16.1/arm-zephyr-eabi/bin
    arm-zephyr-eabi-addr2line
    arm-zephyr-eabi-ar
    arm-zephyr-eabi-as
    arm-zephyr-eabi-c++
    arm-zephyr-eabi-c++filt
    arm-zephyr-eabi-cc
    arm-zephyr-eabi-cpp
    arm-zephyr-eabi-ct-ng.config
    arm-zephyr-eabi-elfedit
    arm-zephyr-eabi-g++
    arm-zephyr-eabi-gcc
    arm-zephyr-eabi-gcc-12.2.0
    arm-zephyr-eabi-gcc-ar
    arm-zephyr-eabi-gcc-nm
    arm-zephyr-eabi-gcc-ranlib
    arm-zephyr-eabi-gcov
    arm-zephyr-eabi-gcov-dump
    arm-zephyr-eabi-gcov-tool
    arm-zephyr-eabi-gdb
    arm-zephyr-eabi-gdb-add-index
    arm-zephyr-eabi-gdb-add-index-py
    arm-zephyr-eabi-gdb-py
    arm-zephyr-eabi-gprof
    arm-zephyr-eabi-gprof-py
    arm-zephyr-eabi-ld
    arm-zephyr-eabi-ld.bfd
    arm-zephyr-eabi-lto-dump
    arm-zephyr-eabi-nm
    arm-zephyr-eabi-objcopy
    arm-zephyr-eabi-objdump
    arm-zephyr-eabi-ranlib
    arm-zephyr-eabi-readelf
    arm-zephyr-eabi-size
    arm-zephyr-eabi-strings
    arm-zephyr-eabi-strip


Children
Related