I've got the ST-LINK V2 programmer shown here and am running Ubuntu AMD64 14.04.4 LTS using the latest openocd (0.9.0). I'm unable to connect--running openocd -d, I get the message:
Code: Select all
Debug: 251 34 stlink_usb.c:777 stlink_usb_init_mode(): MODE: 0x01 Debug: 252 38 stlink_usb.c:402 stlink_usb_error_check(): unknown/unexpected STLINK status code 0x9 Error: 253 38 stlink_usb.c:1739 stlink_usb_open(): init mode failed (unable to connect to the target)
I've tried exactly the same setup on Windows 7 (x32) and also gotten a "failure to connect". The pins on the Blue Pill STLINK connector are, top to bottom, GND, SWCLK, SWDIO, 3.3. These are connected to the corresponding STLINK pins 6 (GND) 2 (SWCLK) and 4 (SWDIO).
I'm able to access the MCU using the ST serial flash loader, but no soap with the ST LINK widget.
Can anyone offer a suggestion or two?