Skip to content

GDB Server connected and exit directly #1

@Lunaring

Description

@Lunaring

If you follow the instructions exactly, you will inevitably encounter these errors:

GDB Server Side:
Starting server with the following options:
Persistent Mode : Disabled
Logging Level : 1
Listen Port Number : 60230
Status Refresh Delay : 15s
Verbose Mode : Enabled
SWD Debug : Enabled

Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
Shutting down...
Exit.

IDE Side:
Target disconnected:
undocumented errno 10061

It's a configuration error in the provided run_stlink_gdb_server.bat file. The example assumes the SWD debugger, and the .bat file uses -m 0, which stands for JTag. Simply replace it with -m 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions