1. Introduction
The STLINK-V3SET is a modular, standalone in-circuit debugger and programmer for STM8 and STM32 microcontrollers. It provides a comprehensive set of interfaces for communication with the target application board, including JTAG/SWD for STM32 and SWIM for STM8, as well as virtual COM port, mass storage, and bridge interfaces (SPI, UART, I2C, CAN, GPIOs). This manual provides essential information for setting up, operating, and maintaining your STLINK-V3SET.
Figure 1: STLINK-V3SET Kit Components (Main unit, debugger board, and various cables)
Figure 2: STLINK-V3SET Kit as packaged
2. Package Contents
The STLINK-V3SET package typically includes the following items:
- STLINK-V3SET main module
- STLINK-V3SET debugger/programmer board (MB1440C)
- USB Type-A to Micro-B cable for PC connection
- Various connection cables/jumpers for target board interfacing (e.g., JTAG/SWD ribbon cables)
3. Setup Instructions
3.1. System Requirements
- Operating System: Windows (7 or later), macOS, Linux
- USB 2.0 port
- Compatible IDE/Software (e.g., STM32CubeIDE, Keil MDK-ARM, IAR EWARM, STM8 Cosmic)
3.2. Driver Installation
Before connecting the STLINK-V3SET to your computer, it is recommended to install the necessary drivers. These drivers are typically included with STMicroelectronics development software packages (e.g., STM32CubeProgrammer, STM32CubeIDE) or can be downloaded from the official STMicroelectronics website.
- Download and install the latest version of STM32CubeProgrammer or STM32CubeIDE from the STMicroelectronics website.
- During installation, ensure that the ST-LINK drivers are selected for installation.
- If drivers are not automatically installed, locate them in the installation directory (e.g.,
C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\Drivers\STLinkUsbDriver) and install manually.
3.3. Hardware Connection
- Connect the STLINK-V3SET main module to the debugger/programmer board (MB1440C) if they are separate.
- Connect the STLINK-V3SET to your computer using the provided USB Type-A to Micro-B cable. The device should be recognized by your operating system.
- Connect the STLINK-V3SET to your target STM8 or STM32 microcontroller board using the appropriate JTAG/SWD or SWIM ribbon cable. Ensure correct pin orientation and voltage levels.
Figure 3: Example connection of STLINK-V3SET to a target board via SWD interface
This diagram illustrates the typical connection for debugging/programming. Ensure VCC, GND, SWDIO, and SWCLK (or JTAG equivalents) are correctly wired between the STLINK-V3SET and your target microcontroller.
4. Operating Instructions
The STLINK-V3SET supports various modes of operation for debugging and programming STM8 and STM32 microcontrollers.
4.1. Debugging and Programming (JTAG/SWD for STM32)
- Ensure the STLINK-V3SET is connected to your PC and target board as described in Section 3.3.
- Open your preferred IDE (e.g., STM32CubeIDE, Keil MDK-ARM, IAR EWARM).
- In the IDE's project settings, configure the debugger to use "ST-LINK" and select the appropriate interface (JTAG or SWD). SWD is generally recommended for STM32 due to fewer pins.
- Build your project.
- Initiate a debug session or program the microcontroller from within the IDE. The STLINK-V3SET will facilitate the communication.
4.2. Programming (SWIM for STM8)
- Ensure the STLINK-V3SET is connected to your PC and target STM8 board using the SWIM interface.
- Open a compatible programming tool (e.g., STM8 Cosmic, ST Visual Develop).
- Configure the programmer to use "ST-LINK" and the SWIM interface.
- Load your firmware file (.hex, .s19).
- Initiate the programming process.
4.3. Virtual COM Port (VCP)
The STLINK-V3SET provides a Virtual COM Port interface, allowing your PC to communicate with the target microcontroller via UART. This is useful for sending/receiving data during debugging or for simple serial communication.
- Ensure the VCP pins on the STLINK-V3SET are connected to the UART pins of your target microcontroller.
- On your PC, identify the COM port assigned to the STLINK-V3SET's VCP (check Device Manager).
- Use any serial terminal program (e.g., PuTTY, Tera Term) to open the identified COM port and communicate with your target.
4.4. Mass Storage Device (MSD)
The STLINK-V3SET can emulate a mass storage device, allowing for drag-and-drop programming of certain target boards (e.g., Nucleo boards). When connected, the target board's flash memory may appear as a removable drive on your PC.
- Connect the STLINK-V3SET to a compatible target board.
- If the target board supports MSD programming, it will appear as a drive.
- Drag and drop your compiled firmware (.bin or .hex) onto this drive to program the microcontroller.
4.5. Bridge Interfaces (SPI, UART, I2C, CAN, GPIOs)
The STLINK-V3SET includes bridge functionality, enabling your PC to communicate with peripherals on your target board using various protocols. Refer to the official STLINK-V3SET documentation and STM32CubeProgrammer for detailed usage of these advanced features.
5. Maintenance
To ensure the longevity and reliable operation of your STLINK-V3SET, follow these general maintenance guidelines:
- Storage: Store the device in a dry, dust-free environment, away from direct sunlight and extreme temperatures.
- Cleaning: Use a soft, dry cloth to clean the exterior. Avoid using liquid cleaners or solvents.
- Handling: Handle the device with care to prevent physical damage. Avoid dropping or subjecting it to strong impacts.
- Static Electricity: Always take precautions against electrostatic discharge (ESD) when handling the device and connecting cables, especially when connecting to target boards.
- Cables: Inspect USB and ribbon cables regularly for signs of wear or damage. Replace damaged cables immediately.
6. Troubleshooting
If you encounter issues with your STLINK-V3SET, consider the following troubleshooting steps:
- Device Not Recognized by PC:
- Ensure USB cable is securely connected to both the STLINK-V3SET and the PC.
- Try a different USB port or USB cable.
- Verify that the ST-LINK drivers are correctly installed (check Device Manager for "STMicroelectronics STLink dongle" or similar). Reinstall drivers if necessary.
- Restart your computer.
- Target Microcontroller Not Detected:
- Check all connections between the STLINK-V3SET and the target board (JTAG/SWD/SWIM, VCC, GND). Ensure correct pinout and orientation.
- Verify that the target board is powered correctly and stably.
- Ensure the target microcontroller is not in a low-power mode that disables the debug interface.
- Check the target voltage setting in your IDE or programming tool; it should match the target board's voltage.
- Try reducing the debug clock speed in your IDE settings.
- Ensure the target microcontroller is supported by your version of the ST-LINK firmware and software.
- Programming/Debugging Errors:
- Ensure your firmware project is correctly configured for your specific target microcontroller.
- Check for any error messages provided by the IDE or programming tool for more specific guidance.
- Update the STLINK-V3SET firmware using STM32CubeProgrammer.
7. Specifications
| Feature | Detail |
|---|---|
| Product Type | Module (In-Circuit Debugger/Programmer) |
| Supported Microcontrollers | STM8S, STM32 families |
| Host Interface | USB 2.0 (5V powered) |
| Target Interfaces | JTAG, SWD (for STM32), SWIM (for STM8) |
| Bridge Interfaces | Virtual COM Port (UART), SPI, I2C, CAN, GPIOs |
| Dimensions (Approximate) | 12 cm (Length) x 12 cm (Width) x 5 cm (Height) |
| Weight (Approximate) | 0.35 kg |
| Condition | New |
| Origin | Mainland China |
8. User Tips
- Always Check Pinouts: Before connecting to any target board, double-check the pin assignments for JTAG/SWD/SWIM, VCC, and GND to prevent damage to both the STLINK-V3SET and your target.
- Keep Software Updated: Regularly update your IDE, programming tools (e.g., STM32CubeProgrammer), and ST-LINK firmware to benefit from the latest features, bug fixes, and support for new microcontrollers.
- Power the Target Separately: While the STLINK-V3SET can provide power to some target boards, it's often best practice to power your target board independently for stability, especially during debugging.
- Start with Simple Examples: If you're new to a specific microcontroller or the STLINK-V3SET, begin with simple blinky examples to confirm your setup and connections are working correctly before moving to complex projects.
9. Warranty and Support
For specific warranty information regarding your STLINK-V3SET, please refer to the terms and conditions provided by your point of purchase or contact the seller directly. STMicroelectronics provides extensive documentation, software, and community support for their ST-LINK products and microcontrollers.
Official Resources:
- STMicroelectronics Website: For datasheets, application notes, software downloads (STM32CubeIDE, STM32CubeProgrammer), and community forums.
- ST-LINK/V3 User Manual: Refer to the official STMicroelectronics user manual for the most detailed and up-to-date technical information.