VScode_Docker_Stm32 icon indicating copy to clipboard operation
VScode_Docker_Stm32 copied to clipboard

Can't open the device

Open dzid26 opened this issue 1 year ago • 0 comments

After downgrading Cortex-debug to 1.4.4 and fixing this ERROR: GDB major version should be >= 9, yours is 8, image , now I have another error with connecting via ST-LINK to STM32F103:

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

[2022-11-11T12:36:26.183Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session connected. You can switch to "DEBUG CONSOLE" to see GDB interactions.
openocd -c "gdb_port 50000" -c "tcl_port 50001" -c "telnet_port 50002" -s /workspaces/VScode_Docker_Stm32/firmware -f /root/.vscode-server/extensions/marus25.cortex-debug-1.4.4/support/openocd-helpers.tcl -f /workspaces/VScode_Docker_Stm32/firmware/openocd/STM32F103xx.cfg
Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
CDRTOSConfigure
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 4000 kHz
adapter_nsrst_delay: 100
none separate
Info : clock speed 4000 kHz
Error: open failed
in procedure 'init' 
in procedure 'ocd_bouncer'

I tried reloading docker and WSL2, but it didn't help. I tried changing STM32F103xx.cfg content to one that I use in Platformio, but also no success. Any ideas?

dzid26 avatar Nov 11 '22 12:11 dzid26