Debug fails with stlink-v2-1: open failed, remote communication error

Hello,

I’m trying to debug a simple blinkenled demo on a NUCLEO F103RB board. Compile and upload works fine, but debugging always fails.

platform = ststm32
framework = libopencm3
board = nucleo_f103rb
debug_tool = stlink-v2-1

Here’s my platformio.ini settings.

GNU ARM Eclipse 32-bits Open On-Chip Debugger 0.10.0-00114-g8419536 (2017-04-18-22:14)

Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
none separate
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : clock speed 950 kHz
Error: open failed
in procedure ‘init’
in procedure ‘ocd_bouncer’
.pioinit:1: Error in sourced command file:
Remote communication error. Target disconnected.: No error.
.pioinit:1: Error in sourced command file:
Remote communication error. Target disconnected.: No error.

This is the output of the Debug Console.

The debug build goes ok, but I don’t seem to actually be able to connect to the debugger. Does anyone have a suggestion?

Thank you in advance!

What is your operation system?

Windows 7 64 bit.
Thanks so much!

Do you have non-ASCII chars in project path?