ST-LINK/V2, Programmer/Debugger Tool for STM8 & STM32

robotics-university.com | In embedded systems world, if you want to prototype using microcontroller chip, one important thing that you must have it is microcontroller chip programmer/debugger. This tool has important function to support your prototyping work. Without programmer/debugger tool, you can not download your program into your microcontroller chip. 


It is same when you will build an embedded system application using 8-bit or/and 32-bit microcontroller chip from STMicroelectronics (STM), you must have STM microcontroller chip programmer/debugger. 

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. 

Figure 1. ST-Link/V2 

The USB full-speed interface allows communication with a PC and: 
  • STM8 applications use the USB full-speed interface to communicate with the ST Visual Develop (STVD) or ST Visual Program (STVP) software.
  • STM32 applications use the USB full-speed interface to communicate with licensed Integrated Development Environments (IDE) software like Atollic, IAR, and ARM Keil or with free IDE software like CooCox CoIDE, System Workbench for STM32 (SW4STM32), and Eclipse. 
ST-Link/V2 KEY FEATURES 
  • 5 V power supplied by a USB connector 
  • USB 2.0 full-speed-compatible interface 
  • USB standard A to Mini- B cable 
  • SWIM specific features 
  • 1.65 V to 5.5 V application voltage supported on SWIM interface 
  • SWIM low-speed and high-speed modes supported 
  • SWIM programming speed rate: 9.7 Kbytes/s in low speed and 12.8 Kbytes/s in high speed 
  • SWIM cable for connection to the application via an ERNI standard vertical connector (ref: 284697 or 214017) or horizontal connector (ref: 214012) 
  • SWIM cable for connection to the application via a pin header or a 2.54 mm pitch connector 
  • JTAG/serial wire debugging (SWD) specific features: 
  • 1.65 V to 3.6 V application voltage supported on the JTAG/SWD interface and 5 V tolerant inputs 
  • JTAG cable for connection to a standard JTAG 20-pin pitch 2.54 mm connector 
  • JTAG supported 
  • SWD and serial wire viewer (SWV) communication supported 
  • Direct firmware update feature supported (DFU) 
  • Status LED which blinks during communication with the PC 
  • Operating temperature 0 to 50 °C 

ST-Link/V2 Connect to STM8 Applications 
The ST-LINK/V2 should be connected to the STM8 application via the SWIM cable. Two SWIM cables are delivered with the product: 
  • SWIM flat ribbon with a standard ERNI connector at one end and a 4-pin connector at the other end 
  • SWIM flat ribbon ended with a 4-pin, 2.54 mm, low-cost connector on two sides 

Figure 2. ST-LINK/V2 SWIM header pinout 

Table 1. SWIM flat ribbon connections for ST-LINK/V2 

Figure 3. ST-LINK/V2 connecting with STM8 application board 
(Source: Waveshare

ST-Link/V2 Connect to STM32 Applications 
For STM32 developments the ST-LINK/V2 must be connected to the application using the standard 20-pin female-female JTAG flat ribbon provided as show on figure 4 and figure 5. 

Figure 4. Debugging connector layout on ST-LINK/V2 

Table 2. JTAG/SWD cable connections for ST-LINK/V2 

Note for table 2: 
  1. The power supply from the application board is connected to the ST-LINK/V2 debugging and programming board to ensure signal compatibility between both boards. 
  2. Connect to GND for noise reduction on the ribbon. 
  3. At least one of this pin must be connected to the ground for correct behavior (connecting all of them is recommended). 
  4. Optional: for Serial Wire Viewer (SWV) trace. 
  5. Available on ST-LINK/V2 only and not connected on ST-LINK/V2/OPTO. 
Figure 5. ST-LINK/V2 connecting with STM32 application board 
(Source: Waveshare

ST-Link/V2 Software Support 
1. STM32 ST-LINK utility (GUI for download program process), dowload here! 
2. ST-Link/V2 Firmware, dowload here! 
3. ST-LINK/V2 USB driver (for Windows7/8/10), dowload here! 

ST-LINK/V2 Supported Target Device 
The table 3 below, show for us the STM microcontroller chip (8-bit and 32-bit) that supported by ST-LINK/V2. 

Table 3. STM Microcontroller chip that supported by ST-LINK/V2 



Source: 


Share on Google Plus

About Taufiq D.S. Suyadhi

    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment