since version 4.5 it can't start debug
See original GitHub issueHi, I am using ubuntu 20 and trying to start debugging my stm32f103 project using stlink 2.0. It used to work well, but since v 0.4.5 I get the error “Failed to start Openocd gdb server: Timeout”. To fix this problem, I reboot version 0.4.4 and it works fine. My config
{
"name": "stlink-v2",
"request": "launch",
"type": "cortex-debug",
"cwd": "${workspaceRoot}",
"servertype": "openocd",
"executable": "${command:cmake.launchTargetPath}",
"svdFile": "svd_file.svd",
"configFiles": [
"/usr/share/openocd/scripts/interface/stlink-v2.cfg",
"/usr/share/openocd/scripts/target/stm32f1x.cfg"
]
},
It is bug or I a idiot?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:15
Top Results From Across the Web
Error: Unable to Start Debugging on the Web Server
This error may occur when debugging locally with a 32-bit version of Visual Studio, which use the 64-bit version of the remote debugger...
Read more >cannot start debugging because the debug target is missing ...
Show activity on this post. Right click on the Visual Studio Project - Properties - Debug - (Start Action section) - select "Start...
Read more >Could not debug .NET Framework on Windws 10 machine
After starting debugging and press F11, it step over the StringBuilder class code line. It works fine in my Visual Studio 2017 Enterprise...
Read more >Debugging ArcMap Add-In .Net 4.5 in Visual Studio 2013
Use Select some project as Startup then click Start in the toolbar. If that doesn't work this works every time: delete all DLLs...
Read more >Create and edit run/debug configurations - Android Developers
Default run/debug configuration; Project scope and version control ... Run/debug configurations specify details such as app installation, launch, and test ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
OpenOCD v0.10.0 is almost five years old. The “Listening on port %hu for %s connections” messages were added on Jan 13, 2018, this happened AFTER v0.10.0 was released (Jan 22, 2017), see https://review.openocd.org/c/openocd/+/4316 @ilia19911, please update the OpenOCD. Ideally, you should build it from sources. Since you are using Ubuntu, the process is straightforward.
Thanks, @bohdan-tymkiv I just didn’t know it changed but wasn’t sure when. Closing this issue.