Hi,
i am using this launch.config:
{
"version": "0.2.0",
"configurations": [
{
"cwd": "${workspaceRoot}",
"executable": "C:\\Projects\\mbed-projects\\BUILD\\F411\\Debug\\F411.elf",
"name": "debug stlink",
"request": "launch",
"type": "cortex-debug",
"servertype": "stlink",
}
]
}
Starting a debugging session brings this output in the debugging console:
Please check OUTPUT tab (Adapter Output) for output from c:\ST\STM32CubeIDE_1.5.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.win32_1.5.0.202011040924\tools\bin\ST-LINK_gdbserver.exe
Launching server: "c:\ST\STM32CubeIDE_1.5.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.win32_1.5.0.202011040924\tools\bin\ST-LINK_gdbserver.exe" "-p" "50000" "-cp" "c:\ST\STM32CubeIDE_1.5.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_1.5.0.202011040924\tools\bin" "--swd"
VS Code Error windows says: Failed to launch ST_LINK GDB Server: Error: spawn c.\ST....\com-st-stm32cu...\ST-LINK_gdpserver.exe ENOENT
Hint: the first "..." above are not really shown as ... - just just beacause its the lon default path. the "stm32cu..." is real.
When im running:
c:\ST\STM32CubeIDE_1.5.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.win32_1.5.0.202011040924\tools\bin\ST-LINK_gdbserver.exe -p 50000 -cp c:\ST\STM32CubeIDE_1.5.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_1.5.0.202011040924\tools\bin --swd
STMicroelectronics ST-LINK GDB server. Version 5.7.0
Copyright (c) 2020, STMicroelectronics. All rights reserved.
Starting server with the following options:
Persistent Mode : Disabled
Logging Level : 31
Listen Port Number : 50000
Status Refresh Delay : 15s
Verbose Mode : Disabled
SWD Debug : Enabled
Target connection mode: Default
Reading ROM table for AP 0 @0xe00fffd0
Hardware watchpoint supported by the target
COM frequency = 4000 kHz
ST-LINK Firmware version : V2J37S7
Device ID: 0x431
PC: 0x80045d0
ST-LINK device status: HALT_MODE
ST-LINK detects target voltage = 3.17 V
ST-LINK device status: HALT_MODE
ST-LINK device initialization OK
Waiting for debugger connection...
Waiting for connection on port 50000...
The server is running. I am using a stm32F411ceu connected to a stlink v2 china clone with newest firmware. I have no idea whats going wrong.
thanks for your help! :)
Mike.
Hi,
i am using this launch.config:
{
"version": "0.2.0",
"configurations": [
}
Starting a debugging session brings this output in the debugging console:
Please check OUTPUT tab (Adapter Output) for output from c:\ST\STM32CubeIDE_1.5.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.win32_1.5.0.202011040924\tools\bin\ST-LINK_gdbserver.exe
Launching server: "c:\ST\STM32CubeIDE_1.5.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.win32_1.5.0.202011040924\tools\bin\ST-LINK_gdbserver.exe" "-p" "50000" "-cp" "c:\ST\STM32CubeIDE_1.5.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_1.5.0.202011040924\tools\bin" "--swd"
VS Code Error windows says: Failed to launch ST_LINK GDB Server: Error: spawn c.\ST....\com-st-stm32cu...\ST-LINK_gdpserver.exe ENOENT
Hint: the first "..." above are not really shown as ... - just just beacause its the lon default path. the "stm32cu..." is real.
When im running:
c:\ST\STM32CubeIDE_1.5.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.win32_1.5.0.202011040924\tools\bin\ST-LINK_gdbserver.exe -p 50000 -cp c:\ST\STM32CubeIDE_1.5.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_1.5.0.202011040924\tools\bin --swd
STMicroelectronics ST-LINK GDB server. Version 5.7.0
Copyright (c) 2020, STMicroelectronics. All rights reserved.
Starting server with the following options:
Persistent Mode : Disabled
Logging Level : 31
Listen Port Number : 50000
Status Refresh Delay : 15s
Verbose Mode : Disabled
SWD Debug : Enabled
Target connection mode: Default
Reading ROM table for AP 0 @0xe00fffd0
Hardware watchpoint supported by the target
COM frequency = 4000 kHz
ST-LINK Firmware version : V2J37S7
Device ID: 0x431
PC: 0x80045d0
ST-LINK device status: HALT_MODE
ST-LINK detects target voltage = 3.17 V
ST-LINK device status: HALT_MODE
ST-LINK device initialization OK
Waiting for debugger connection...
Waiting for connection on port 50000...
The server is running. I am using a stm32F411ceu connected to a stlink v2 china clone with newest firmware. I have no idea whats going wrong.
thanks for your help! :)
Mike.