bus710 / zephyr-rtos-development-in-linux

Apache License 2.0
10 stars 1 forks source link

Error:spawn openocd ENOENT #1

Open manoj153 opened 3 years ago

manoj153 commented 3 years ago

Hi, I am following a similar launch.json script but I am getting some error, I hope someone can point out the issue. Below is my error and launch.json Error : Launching server: "openocd" "-c" "gdb_port 50000" "-s" "/home/manoj/Documents/Pingspace/h7_basic_bring_up" "-f" "/home/manoj/zephyrproject/zephyr/boards/arm/nucleo_h723zg/support/openocd.cfg"

launch.json :

    "version": "0.2.0",
    "configurations": [
        {
            "name": "Cortex Debug",
            "cwd": "${workspaceRoot}",
            "executable": "build/zephyr/zephyr.elf",
            "request": "launch",
            "type": "cortex-debug",
            "servertype": "openocd",
            "device": "STM32H723ZGT",
            "armToolchainPath": "/home/manoj/zephyr-sdk-0.12.0/arm-zephyr-eabi/bin/",
            "interface": "swd",
             "gdbpath": "/usr/bin/gdb-multiarch",
            // "gdbTarget": "/home/manoj/zephyr-sdk-0.12.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb",
            "configFiles": ["/home/manoj/zephyrproject/zephyr/boards/arm/nucleo_h723zg/support/openocd.cfg"]
        }
    ]
}
bus710 commented 3 years ago

Hi, @manoj153,

You probably googled about it but this issue seems similar to your case.

https://github.com/Marus/cortex-debug/issues/8

It can be the toolchain path or target binary missing, I guess?