ST-LINK/V2, in-circuit debugger/programmer for STM8 and STM32 Description The ST-LINK/V2 is an in-circuit debugger and programmer for the STM8 and STM32 microcontroller families. The single wire interface module (SWIM) and JTAG/serial wire debugging (SWD) interfaces are used to communicate with any STM8 or STM32 microcontroller located on an application board. STM8 applications use the USB full speed interface to communicate with STMicroelectronic's ST Visual Develop (STVD) or ST Visual Program (STVP) software. STM32 applications use the USB full speed interface to communicate with Atollic, IAR, Keil or TASKING integrated development environments. Connecting with STM32 application board ST-LINK/V2 Status The LED labeled 'COM' on top of the ST-LINK/V2 shows the ST-LINK/V2 status (whatever the connection type). When the:. LED is blinking RED: the first USB enumeration with the PC is taking place.
![St link v2 download St link v2 download](https://www.st.com/content/ccc/fragment/product_related/rpn_information/board_photo/78/0b/34/64/99/a2/4f/6b/board_st-linkv2.jpg/files/board_st-linkv2.jpg/_jcr_content/translations/en.board_st-linkv2.jpg)
If it keeps blinking RED, maybe the USB driver is NOT found. LED is RED: communication between ST-LINK/V2 and the PC is established (end of enumeration). LED is blinking GREEN/RED: data are being exchanged between the target and the PC. LED is GREEN: the last communication has been successful. LED is ORANGE: ST-LINK/V2 communication with the target has failed.
![Link Link](/uploads/1/2/5/6/125618595/916007345.jpg)
When installing MDK-ARM on your PC, the Pack Installer (Figure 2) will prompt. For Windows systems, the ST-Link USB driver (needed to communicate with the. On the ST web page, STM32 ST-LINK/V2 Utility, is the useful (and free) utility. While connecting the ST-LINK/V2 to the computer through USB interface, the USB driver is required and should be installed correctly first. Click on the link below.
Hello All, I am learning mbed on a 5-year old STM32 VL DISCOVERY board that was lying around (platform: ststm32, board: discof100rb, 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 -stlinkversion=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 v4.0.0.0, 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/V1onE: 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. I did not see it earlier, but how come the path given to st-util is pointing to Downloads/stlink?? Shouldnt the bundled st-util be under the /Users/.platformio folder??? Are you trying the run the executable manually?? Can you please post the console output when you hit the upload button from atom IDE. And can you post the contents of your platformio.ini file?? Also, what is VID:PID as reported by windows??
Is there a windows centric driver that you should install for the board to show up in device manager?? If so did you install it?? Does the board show up as a storage disk in windows explorer?? If so, can you simple try dragging and dropping the compiled binary manually from the.pioenvs directory onto the disk and check if the program runs?? Hi, Command: platformio.exe run -e discof100rb -target upload 03/11/17 11:08:18 Processing discof100rb (platform: ststm32, board: discof100rb, framework: mbed) - Verbose mode can be enabled via `-v, -verbose` option Collected 8 compatible libraries Looking for dependencies.