How do I set up DAP to connect to OpenOCD? #12317
Unanswered
lucas-yotsui
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm currently working on a project in Zig for embedded devices and I'd like to debug it using Helix's DAP.
I'm currently targetting a STM32F411CC (black pill).
I've already debugged this project extensively using OpenOCD and GDB's CLI and it works fine. To do so, I do the following:
gdb <EXECUTABLE_DIR>/<EXECUTABLE>.elf -ex "target extended-remote localhost:3333"
in a separate tabThis works fine, but running GDB in the terminal is not really my favorite thing in the world, so i'd like to run it in Helix.
To configure my debugger template I've taken the configurations shown in #10236 and modified it in about every possible way, but nothing seems to work.
My latest attempt looks like this:
This gave me the best result so far, as it starts GDB and connects it to OpenOCD. However, that's as far as it gets, not running the application properly: it just gives me a
Lost debug server connection
error as soon as I try to do anything (restart, continue or step).Here's the log obtained after running helix with
helix -v .
and trying to use the debugger:The logs seem to show that GDB is started properly, lldb connects to it with the initCommands but it dies as soon as it hits the launch command.
Am I doing something wrong? Is there a way to make this setup work?
Beta Was this translation helpful? Give feedback.
All reactions