Marus / cortex-debug

Visual Studio Code extension for enhancing debug capabilities for Cortex-M Microcontrollers
MIT License
1.02k stars 240 forks source link

gdb-server program client error Error: read ECONNRESET #993

Closed zihlmalb closed 8 months ago

zihlmalb commented 8 months ago

I'm using this plugin in an educational environment with many many intallations on Windows, MAC and Linux together with xpack-openocd and a st32 nucleo board. For many semesters I had no problem (so many thanks for this). In the last fall and now I had/have one student with a non working setup on Windows an following problem:

"gdb_port 50000" -c "tcl_port 50001" -c "telnet_port 50002" -s "C:\\Users\\#####\\OneDrive\\Dokumente\\Studium\\Semester 4\\McGl\\Assembler\\übungen\\mc1_UbgAsm2" -f "c:/Users/####/.vscode/extensions/marus25.cortex-debug-1.12.1/support/openocd-helpers.tcl" -f ./st_nucleo_f0.cfg
xPack OpenOCD x86_64 Open On-Chip Debugger 0.11.0+dev (2021-12-07-17:33)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
CDLiveWatchSetup
WARNING: interface/stlink-v2-1.cfg is deprecated, please switch to interface/stlink.cfg
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
srst_only separate srst_nogate srst_open_drain connect_deassert_srst

Info : Listening on port 50001 for tcl connections
Info : Listening on port 50002 for telnet connections
Info : clock speed 1000 kHz
Info : STLINK V2J33M25 (API v2) VID:PID 0483:374B
Info : Target voltage: 3.253193
[2024-03-08T14:38:56.018Z] SERVER CONSOLE DEBUG: GDBServerConsole: onBackendConnect: gdb-server program client error Error: read ECONNRESET
[2024-03-08T14:38:56.020Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session closed
GDB server session ended. This terminal will be reused, waiting for next session to start...
zihlmalb commented 8 months ago

The problem has been solved. Whitespaces or mutated (ü,ä,ö) vowels in path information can not be handled correctly. After removing "ü" and whitespaces from the directory names it works perfectly. Maybe this should be fixed eventually?