How to debug hardware or baremetal via openocd? #8943
Unanswered
InLAnn (inlann)
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
Uh oh!
There was an error while loading. Please reload this page.
Hello:
I have already debugged a baremetal (a hardware board) in terminal using openocd:
/path/to/openocd -c "gdb_port 33333" -c "tcl_port disabled; telnet_port disabled" -f "/path/to/openocd_configfile"gdb -ex "target remote 127.0.0.1:33333" -ex "monitor reset halt" -ex "load /path/to/openocd_configfile"I'm trying to do it in VS Code. So I need to modify the tasks.json and launch.json:
It seems like the executable file path
${workspaceFolder}/helloworld.elfinmiDebuggerArgsis duplicated with the program and themiDebuggerPathis redundant.Can I simplify them by adding some debugger args to remove the
miDebuggerPathand themiDebuggerArgs?All reactions