I am learning mbed on a 5-year old STM32 VL DISCOVERY board that was lying around (platform: ststm32, board: disco_f100rb, framework: mbed). I am on a Win7 machine.
I can build the binary, but see this issue while uploading.
2017-03-03T20:03:24 WARN C:\Users\User\Downloads\stlink\src\usb.c: Error -12 (No error) opening ST-Link/V2 device 001:004
*** [upload] Error -1
The STM32VLDISCOVERY uses the ST-Link/V1 protocol (mounts the board as a USB storage device), but seems platformio is trying to upload using the ST-Link/V2 protocol instead.
When I try to use the st-util to connect (forcing ST-Link/V1), I see
> st-util.exe --stlink_version=1 -v99
2017-03-03T20:55:57 WARN C:\Users\User\Downloads\stlink\src\sg.c: Failed to find an stlink v1 by VID:PID
2017-03-03T20:55:57 ERROR C:\Users\User\Downloads\stlink\src\sg.c: Could not open stlink device
I have the STMicro "official" GUI "ST-LINK Utility" program v18.104.22.168, I am able to connect to my board and upload the binary built by platformio and can get my blinky program to work.
19:39:04 : ST-LINK SN : ST-Link/V1_on_E:
19:39:04 : ST-LINK Firmware version : V1J13S0
19:39:04 : Connected via SWD.
19:39:04 : Connection mode : HotPlug.
19:39:04 : Debug in Low Power mode enabled.
Ideally, I would like to upload using platformio and get gdb up over ST-Link/V1 .
Anyone knows how?
Thanks in advance.