cancel
Showing results for 
Search instead for 
Did you mean: 

ST-Util GDB Server Quit Unexpectedly. See gdb-server output for more details.

SHara.1
Associate

Hi,

I'm want to do a step by step debug of the project "https://github.com/aws/amazon-freertos"/(varient), I have installed VM on windows 10 and using vs code I want to do a step by step debugging. I have installed the GDB and all relevant tools in ubuntu 18. The launch file for the same is -

{

// Use IntelliSense to learn about possible attributes.

// Hover to view descriptions of existing attributes.

// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387

"version": "0.2.0",

"configurations": [

{

//"cwd": "${workspaceFolder}/hotwater-fw/",

"cwd": "${workspaceFolder}",

"executable": "/home/suman/sandbox/hotwater-fw/build/aws_demos.elf",

//"executable": "/hotwater-fw/build/aws_demos.elf",

"name": "Debug hotwater code",

"request": "launch",

"type": "cortex-debug",

"runToEntryPoint": "main",

"showDevDebugOutput": true, //"none",

//"servertype": "openocd",

//"servertype": "stlink",

"servertype": "stutil",

"gdbpath": "/usr/bin/gdb-multiarch"

}

]

}

When start debugging in vscode using F5/Run->Start Debugging I get a error with below text in debug terminal-

Reading symbols from arm-none-eabi-objdump --syms -C -h -w /home/suman/sandbox/hotwater-fw/build/aws_demos.elf

Reading symbols from arm-none-eabi-nm --defined-only -S -l -C -p /home/suman/sandbox/hotwater-fw/build/aws_demos.elf

Launching GDB: arm-none-eabi-gdb -q --interpreter=mi2 /home/suman/sandbox/hotwater-fw/build/aws_demos.elf

  Set "showDevDebugOutput": true in your "launch.json" to see verbose GDB transactions here. Helpful to debug issues or report problems

Launching gdb-server: st-util -p 50000 --no-reset

  Please check TERMINAL tab (gdb-server) for output from st-util

Finished reading symbols from objdump: Time: 304 ms

ST-Util GDB Server Quit Unexpectedly. See gdb-server output for more details.

I did change the server to ST-Link but the error remains as shared below -

Reading symbols from arm-none-eabi-objdump --syms -C -h -w /home/suman/sandbox/hotwater-fw/build/aws_demos.elf

Reading symbols from arm-none-eabi-nm --defined-only -S -l -C -p /home/suman/sandbox/hotwater-fw/build/aws_demos.elf

Launching GDB: arm-none-eabi-gdb -q --interpreter=mi2 /home/suman/sandbox/hotwater-fw/build/aws_demos.elf

1-gdb-set target-async on

Setting GDB-SErver CWD: /opt/st/stm32cubeide_1.9.0/plugins/com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.linux64_2.0.200.202202231230/tools/bin

Launching gdb-server: /opt/st/stm32cubeide_1.9.0/plugins/com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.linux64_2.0.200.202202231230/tools/bin/ST-LINK_gdbserver -p 50000 -cp /opt/st/stm32cubeide_1.9.0/plugins/com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.linux64_2.0.200.202202231230/tools/bin --swd --halt

  Please check TERMINAL tab (gdb-server) for output from /opt/st/stm32cubeide_1.9.0/plugins/com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.linux64_2.0.200.202202231230/tools/bin/ST-LINK_gdbserver

Finished reading symbols from objdump: Time: 236 ms

ST-LINK GDB Server Quit Unexpectedly. See gdb-server output for more details.

Can you please help me resolve the same.

0 REPLIES 0