question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

since version 4.5 it can't start debug

See original GitHub issue

Hi, 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:15

github_iconTop GitHub Comments

1reaction
bohdan-tymkivcommented, Nov 30, 2021

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.

0reactions
haneefdmcommented, Nov 30, 2021

Thanks, @bohdan-tymkiv I just didn’t know it changed but wasn’t sure when. Closing this issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found