Replies: 2 comments 13 replies
-
I don't know if it requires any custom extensions, if it doesn't it should at least in theory work. You could get the built version or compile it from source as described in their README.
And try with an adapter configuration like this: dap.adapters.cortex = {
type = 'executable',
command = 'node',
args = '/path/to/cortex-debug/dist/debugadapter.js'
} As for the |
Beta Was this translation helpful? Give feedback.
-
Are there any news on this or has anybody achieved this? I'm currently trying to set up a similar setup using the ST-Link GDB server and have a launch.json file with which i can launch a debug session in vscode through the cortex-debug extension and am now trying to port it to neovim. I also have an adapter configuration that launches the st-link GDB server like this: dap.adapters.cortex = {
type = 'executable';
command = '/home/rick/dev/st/stm32cubeide_1.10.1/plugins/com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.linux64_2.0.300.202203231527/tools/bin/ST-LINK_gdbserver';
args = {'-p 50000', '-cp /usr/bin/', '--shared', '--swd', '--halt'};
} With this configuration i'm able to start the GDB server from nvim-dap with {
"version": "0.2.0",
"configurations": [
{
"name": "Cortex Debug",
"cwd": "${workspaceFolder}",
"executable": "./build/display_eval.elf",
"request": "launch",
"type": "cortex",
"runToEntryPoint": "main",
"servertype": "stlink",
"stlinkPath": "/home/rick/dev/st/stm32cubeide_1.10.1/plugins/com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.linux64_2.0.300.202203231527/tools/bin/ST-LINK_gdbserver",
"stm32cubeprogrammer": "/usr/bin/",
"gdbPath": "/usr/bin/arm-none-eabi-gdb",
"runToMain": true,
"device": "STM32L486VGTX",
"armToolchainPath": "/usr/bin/",
"v1": false
}
]
} I can confirm that this starts the server since i'm able to connect to it with So i guess my problem is the config about how i try to connect to the adapter and i don't really know how to go about this atm. |
Beta Was this translation helpful? Give feedback.
-
I like this plugin, the integration is quite intuitive when I test it on a cpp debugger. However, currently I am looking to implement it for an embedded application. From what I know I have two alternatives, either use
vscode-cpptools
adapter with some limitation or usecortex-debug
(https://github.com/Marus/cortex-debug) adapter which is specific for what I am using.Looking into 'cortex-debug' adapter it seems that it is not listed in the https://microsoft.github.io/debug-adapter-protocol/implementors/adapters/
I wonder if using
cortex-debug
adapter is possible with nvim-dap, and if it is, do you have hints on where to start?Side note, I already tried the
cortex-debug
adapter on vscode, and it is working in my PC, I wonder how to integrate that with nvim-dapBeta Was this translation helpful? Give feedback.
All reactions