UM1075 STMICROELECTRONICS | Alldatasheet
Document overview
- Manufacturer or author: Provided By ALLDATASHEET.COM(FREE DATASHEET DOWNLOAD SITE)
- PDF pages: 19
Technical content
Datasheet sections
- 1 Features
- 2 Ordering information
- 3 Product contents
- 4 Hardware configuration
- 4.1 Connection with STM8
- 4.1.1 Standard ERNI connection with SWIM flat ribbon
- 4.1.2 Low-cost SWIM connection
- 4.1.3 SWIM signals and connections
- 4.2 Connection with STM32
- 4.3 ST-LINK/V2 status LED
- 5 Software configuration
- 5.1 ST-LINK/V2 firmware upgrade
- 5.2 STM8 application development
- 5.3 STM32 application development and Flash programming
- 6 Schematics
- 7 Revision history
microcontroller operating on an application board. voltages of up to 1000 VRMS.
- STM8 devices via ST Visual Develop (STVD) or ST Visual Program (STVP) software (available from STMicroelectronics)
- STM32 devices via Atollic®, IAR™ , Keil® and TASKING® integrated development environments.
Figure 1. ST-LINK/V2 and ST-LINK/V2-ISOL
1 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 volt age 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 app lication via an ERNI standard vertical (ref: 284697 or 214017) or horizontal (ref: 214012) connector – SWIM cable for connection to the applicat ion 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 suppo rted 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 – Supports JTAG communication – Supports serial wire debug (SWD) and serial wire viewer (SWV) communication
- Direct firmware update feature supported (DFU)
- Status LED, which blinks during communication with the PC
- 1000 VRMS high isolation voltage (ST-LINK/V2-ISOL only)
- Operating temperature from 0 to 50 °C
2 Ordering information
To order the ST-LINK/V2 refer to Table 1. Table 1. List of the order codes
3 Product contents
- USB standard A to Mini-B cable (A)
- ST-LINK/V2 debugging and programming (B)
- SWIM low-cost connector (C)
- SWIM flat ribbon with a standard ERNI connector at one end (D)
- JTAG or SWD and SWV flat ribbon with a 20-pin connector (E)
Figure 2. ST-LINK/V2 product contents
Figure 3. ST-LINK/V2-ISOL product contents
4 Hardware configuration
high-performance Arm®(a) Cortex®-M3 core. It is available in a TQFP48 package.
- an STM32 connector for the JTAG/SWD and SWV interface
- an STM8 connector for the SWIM interface The ST-LINK/V2-ISOL provides one connector f or the STM8 SWIM, STM32 JTAG/SWD and SWV interfaces.
Figure 4. Connectors of the ST-LINK/V2 (on the left) and of the ST-LINK/V2-ISOL (on the right)
- A = STM32 JTAG and SWD target connector
- B = STM8 SWIM target connector
- C = STM8 SWIM, STM32 JTAG and SWD target connector
- D = Communication activity LED
a. Arm is a registered trademark of Arm Limited (o r its subsidiaries) in the US and/or elsewhere.
4.1 Connection with STM8
- SWIM flat ribbon with a standard ERNI connector at one end
- SWIM cable with two 4-pin, 2.54 mm connector or SWIM separate-wires cable
4.1.1 Standard ERNI connect ion with SWIM flat ribbon
present on the application board. Figure 5. ERNI connection
- A = Target application board with ERNI connector
- B = Wire cable with ERNI connector at one end
- C = STM8 SWIM target connector
Figure 6. Key detail on connectors
4.1.2 Low-cost SW IM connection
connector is present on the application board. Figure 7. Low-cost connection
- A = Target application board with 4- pin, 2.54 mm, low-cost connector
- B = Wire cable with a 4-pin connector or separate-wires cable
- C = STM8 SWIM target connector
4.1.3 SWIM signals and connections
wire cable with a 4-pin connector.
Figure 8. Target SWIM connector ease the connection on target. connector or to pin headers available on the target board. Table 2. SWIM flat ribbon connections for ST-LINK/V2
1 VDD Target VCC (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 DATA SWIM MCU SWIM pin
3 GND GROUND GND
4 RESET RESET MCU RESET pin
Table 3. SWIM low-cost cable connections for ST-LINK/V2-ISOL
- 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.
- BOOT0, UART-TX and UART-RX are reserved for future developments.
4.2 Connection with STM32
to be connected to the application using the standard 20-pin JTAG flat ribbon provided. standard 20-pin JTAG flat ribbon. Table 4. JTAG/SWD cable connections
- The power supply from the application board is connected to the ST-LINK/V2 debugging and programming
board to ensure signal compatibility between the boards.
3 TRST JTAG TRST JNTRST GND (2)
- Connect to GND for noise reduction on the ribbon.
- Available on ST-LINK/V2 only, not connected on ST-LINK/V2-ISOL.
- At least one of this pin must be connected to th e ground for correct behavior (connecting all of them is
5 TDI JTAG TDO JTDI GND (2)
7 TMS_SWDIO JTAG TMS, SW IO JTMS SWDIO
9 TCK_SWCLK JTAG TCK, SW CLK JTCK SWCLK
10 GND (5)
- GND on ST-LINK/V2, used by SWIM on ST-LINK/V2-ISOL (see Table 3).
11 Not connected Not connected Not connected Not connected
12 GND GND GND (4) GND(4)
13 TDO_SWO JTAG TDI, SWO JTDO TRACESWO (6)
- Optional: for Serial Wire Viewer (SWV) trace.
14 GND (5) GND(5) GND(4)(5) GND(4)(5)
15 NRST NRST NRST NRST
16 GND
17 Not connected Not connected Not connected Not connected
18 GND GND GND
20 GND GND GND (4) GND(4)
Hardware configuration UM1075 14/19 UM1075 Rev 8 For more details on this solution and application-PCB-footprint information, visit www.tag-connect.com. The references of components compatible with JTAG and SWD interfaces are: a) TC2050-ARM2010 adapter (20-pin- to 10-pin-interface board) b) TC2050-IDC or TC2050-IDC-NL (No Legs) (10-pin cable) c) TC2050-CLIP retaining clip fo r use with TC2050-IDC-NL (optional)
4.3 ST-LINK/V2 status LED
The LED labeled ‘COM’ on top of the ST-LINK/V2 shows the ST-LINK/V2 status (whatever the connection type). In detail:
- LED is blinking RED: the first USB enumeration with the PC is taking place
- LED is RED: communication between the PC and ST-LINK/V2 is established (end of enumeration)
- LED is blinking GREEN / RED: data 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.
5 Software configuration
5.1 ST-LINK/V2 firmware upgrade
5.2 STM8 application development
(STVD) and ST Visual Programmer (STVP).
5.3 STM32 application develop ment and Flash programming
the most recent version available.
- In the search tab, part number field, look for ST-LINK/V2.
- Click on the Generic Part Number column hyperlink to ST-LINK/V2.
- In the Design support tab, SW drivers section, click on the icon to download
- Unzip and run ST-Link_V2_USBdriver.exe.
- www.atollic.com
- www.iar.com
- www.keil.com
- www.tasking.com
Table 5. How third-party toolchains support ST-LINK/V2
6 Schematics
Figure 11. SWIM ST-LINK/V2 standard ERNI cable
- Legend for pin descriptions:
Figure 12. SWIM ST-LINK/V2 low-cost cable
- Legend for pin descriptions:
7 Revision history
Table 6. Document revision history 22-Apr-2011 1 Initial release. footnote 1 to the function “Target VCC”. 19-Aug-2011 3 Added USB driver details to Section 5.3. Table 4: JTAG/SWD cable connections. Added ST-LINK/V2-ISOL order code. Updated Section 4.1: STM8 application development on page 15. LINK/V2 status LEDs on page 14. 18-Oct-2012 6 Added Section 5.1: ST-LINK/V2 firmware upgrade on page 15. 25-Mar-2016 7 Updated V RMS value in Introduction and in Features. 18-Oct-2018 8 Updated Table 4: JTAG/SWD cable connections and its footnotes. Minor text edits across the whole document.