Skip to content

Unable to start a debug session using "servertype": "external", running ST-LINK_gdbserver.exe #688

@daantimmer

Description

@daantimmer

After connecting (and it seems like flashing the MCU does work) but afterwards I get:

Failed to launch GDB: Protocol error with Rcmd (from interpreter-exec console "monitor reset halt")

I've tried launching ST-LINK_gdbserver.exe in two ways:

C:\\ST\\STM32CubeIDE_1.10.0\\STM32CubeIDE\\plugins\\com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.win32_2.0.300.202203231527\\tools\\bin\\ST-LINK_gdbserver.exe -p 50000 -cp C:\\ST\\STM32CubeIDE_1.10.0\\STM32CubeIDE\\plugins\\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.0.300.202205161323\\tools\\bin --swd --halt

and

C:\\ST\\STM32CubeIDE_1.10.0\\STM32CubeIDE\\plugins\\com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.win32_2.0.300.202203231527\\tools\\bin\\ST-LINK_gdbserver.exe -p 50000 -l 1 -d -s -e -cp C:\ST\STM32CubeIDE_1.10.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.0.300.202205161323\tools\bin -m 0 -k

The first entry is the way that cortex-debug launches ST-LINk server, the second one is something random I found by googling.

I can see that cortex-debug connects to the server, it flashes the device, and then it gives the failed to launch error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions