Can't set up DAP to connect to OpenOCD #12361
Unanswered
lucas-yotsui
asked this question in
Troubleshooting
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So, I've started this discussion a few days ago, but I have looked some more into it after that and I still can't make any sense of it.
The LLDB part seems to be just fine, but it just drops the communication with OpenOCD's GDB server out of nowhere. I've tried changing the request from launch to attach, but then it got even worse, even the LLDB part wouldn't work then.
I'm out of ideas on how to make this work, is it something I'm doing wrong or is it a bug in the DAP implementation? Is there anything else I can try? I'm open to running tests here to help diagnose any possible issues, just tell me what to do 🫡
Discussed in #12317
Originally posted by lucas-yotsui December 22, 2024
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