ST logo

UWM 1075
Cov neeg siv phau ntawv
ST-LINK/V2 nyob rau hauv-circuit debugger/programmer
rau STM8 thiab STM32

STMicroelectronics UM1075 ST-LINK V2 Hauv-Circuit Debugger Programmer

Taw qhia

ST-LINK/V2 yog ib qho hauv-circuit debugger/programmer rau STM8 thiab STM32 microcontroller tsev neeg. Ib leeg xaim interface module (SWIM) thiab JTAG/serial hlau
debugging (SWD) interfaces, pab txhawb kev sib txuas lus nrog txhua tus STM8 lossis STM32 microcontroller nyob rau ntawm daim ntawv thov. Ntxiv rau kev muab cov haujlwm ua haujlwm zoo ib yam li ST-LINK / V2, ST-LINK / V2-ISOL nta kev cais tawm digital ntawm PC thiab lub hom phiaj daim ntawv thov pawg thawj coj saib. Nws kuj withstands voltages txog li 1000 VRMS. Lub USB puv-ceev interface tso cai rau kev sib txuas lus nrog lub PC thiab:

  • STM8 li ntawm ST Visual Develop (STVD) lossis ST Visual Program (STVP) software (uas muaj los ntawm STMicroelectronics).
  • STM32 cov khoom siv ntawm Atollic®, thiab TASKING kev sib koom ua ke ib puag ncig kev txhim kho.™®, IAR, Keil

STMicroelectronics UM1075 ST-LINK V2 Hauv-Circuit Debugger Programmer - Fig 1

Nta

  • 5 V fais fab mov los ntawm USB connector
  • USB 2.0 puv ceev tau tshaj interface
  • USB standard A rau Mini-B cable
  • SWIM cov yam ntxwv tshwj xeeb
    - 1.65V rau 5.5V daim ntawv thov voltage txhawb ntawm SWIM interface
    - SWIM low-speed thiab high-speed hom txhawb nqa
    - SWIM programming-ceev tus nqi: 9.7 Kbytes / s nyob rau hauv qis ceev thiab 12.8 Kbytes / s hauv kev kub ceev
    - SWIM cable rau kev sib txuas rau daim ntawv thov ntawm ERNI tus qauv ntsug (ref: 284697 lossis 214017) lossis kab rov tav (ref: 214012) txuas
    - SWIM cable rau kev txuas rau daim ntawv thov ntawm tus pin header lossis 2.54 mm suab txuas
  • JTAG/serial hlau debugging (SWD) tshwj xeeb nta
    - 1.65V rau 3.6V daim ntawv thov voltage txhawb JTAG/SWD interface thiab 5 V tolerant inputs
    -JTAG cable rau kev txuas mus rau tus qauv JTAG 20-pin suab 2.54 mm connector
    - Txhawb JTAG kev sib txuas lus
    - Txhawb serial hlau debug (SWD) thiab serial hlau viewer (SWV).
  • Direct firmware hloov tshiab feature txhawb (DFU)
  • Cov xwm txheej LED uas ntsais thaum sib txuas lus nrog PC
  • 1000 VRMS siab cais tawm voltage (ST-LINK/V2-ISOL nkaus xwb)
  • Ua haujlwm kub 0 txog 50 ° C

Ordering cov ntaub ntawv

Txhawm rau xaj ST-LINK/V2 xa mus rau Table 1:
Table 1. Daim ntawv teev cov lej xaj

Order code ST-LINK piav qhia
ST-LINK/V2 Hauv-circuit debugger / programmer
ST-LINK/V2-ISOL Nyob rau hauv-circuit debugger/programmer nrog digital cais

Cov khoom txheem

Cov xaim xaim xaim hauv cov khoom tau pom hauv daim duab 2: ST-LINK / V2 cov khoom txheem thiab daim duab 3: ST-LINK / V2-ISOL cov khoom txheem. Lawv suav nrog (los ntawm sab laug mus rau sab xis hauv daim duab 2 thiab daim duab 3):

  • USB tus qauv A rau Mini-B cable (A)
  • ST-LINK/V2 debugging thiab programming (B)
  • SWIM tus nqi qis connector (C)
  • SWIM tiaj tus ribbon nrog tus qauv ERNI txuas ntawm ib kawg (D)
  • JTAG los yog SWD thiab SWV flat ribbon with a 20-pin connector (E)

STMicroelectronics UM1075 ST-LINK V2 Hauv-Circuit Debugger Programmer - Fig 2

STMicroelectronics UM1075 ST-LINK V2 Hauv-Circuit Debugger Programmer - Fig 3

Kho vajtse configuration

ST-LINK/V2 yog tsim nyob ib ncig ntawm STM32F103C8 ntaus ntawv, uas suav nrog cov kev ua tau zoo ARM® Cortex®
-M3 core. Nws muaj nyob rau hauv pob TQFP48.
Raws li pom hauv daim duab 4, ST-LINK/V2 muab ob lub connectors:

  • STM32 connector rau JTAG/SWD and SWV interface
  • STM8 connector rau SWIM interface
    ST-LINK/V2-ISOL muab ib qho txuas rau STM8 SWIM, STM32 JTAG/SWD and SWV interfaces.

STMicroelectronics UM1075 ST-LINK V2 Hauv-Circuit Debugger Programmer - Fig 4

  1. A = STM32 JTAG thiab SWD target connector
  2. B = STM8 SWIM lub hom phiaj connector
  3. C = STM8 SWIM, STM32 JTAG thiab SWD target connector
  4. D = Kev sib txuas lus ua haujlwm LED

Kev sib txuas nrog STM8 daim ntawv thov
Rau STM8 kev txhim kho, ST-LINK / V2 tuaj yeem txuas rau lub hom phiaj ntawm ob lub xov tooj sib txawv, nyob ntawm qhov txuas muaj nyob ntawm daim ntawv thov.
Cov kab no yog:

  • SWIM ca ribbon nrog tus qauv ERNI connector ntawm ib kawg
  • SWIM cable nrog ob 4-pin, 2.54 mm connector lossis SWIM cais-xaim cable

Standard ERNI kev twb kev txuas nrog SWIM ca ribbon
Daim duab 5 qhia yuav ua li cas txuas ST-LINK / V2 yog tias tus qauv ERNI 4-pin SWIM connector muaj nyob rau ntawm daim ntawv thov.

STMicroelectronics UM1075 ST-LINK V2 Hauv-Circuit Debugger Programmer - Fig 5

 

  1. A = Lub hom phiaj daim ntawv thov board nrog ERNI connector
  2. B = Hlau cable nrog ERNI connector ntawm ib kawg
  3. C = STM8 SWIM lub hom phiaj connector
  4. Saib daim duab 11: SWIM ST-LINK/V2 tus qauv ERNI cable.

Daim duab 6 qhia tau tias tus pin 16 ploj lawm ntawm ST-LINK / V2-ISOL lub hom phiaj txuas. Qhov no tus pin uas ploj lawm yog siv los ua tus yuam sij kev nyab xeeb ntawm lub cable txuas, los lav qhov kev sib txuas ntawm SWIM cable nyob rau hauv txoj hauj lwm raug ntawm lub hom phiaj txuas txawm pins, siv rau ob qho tib si SWIM thiab J.TAG kab.

STMicroelectronics UM1075 ST-LINK V2 Hauv-Circuit Debugger Programmer - Fig 6

Tus nqi qis SWIM txuas
Daim duab 7 qhia yuav ua li cas txuas ST-LINK/V2 yog 4-pin, 2.54 mm, tus nqi qis SWIM connector nyob rau ntawm daim ntawv thov board.

STMicroelectronics UM1075 ST-LINK V2 Hauv-Circuit Debugger Programmer - Fig 7

  1. A = Lub hom phiaj daim ntawv thov board nrog 4-pin, 2.54 mm, tus nqi qis connector
  2. B = Hlau cable nrog 4-pin connector lossis cais-wires cable
  3. C = STM8 SWIM lub hom phiaj connector
  4. Saib daim duab 12: SWIM ST-LINK/V2 tus nqi qis cable

SWIM teeb liab thiab kev sib txuas
Table 2 piav qhia txog cov npe teeb liab, kev ua haujlwm, thiab lub hom phiaj kev sib txuas cov teeb liab siv cov xov hlau txuas nrog 4-pin connector.

Rooj 2. SWIM tiaj ribbon txuas rau ST-LINK/V2

Pin nr. Lub npe Muaj nuj nqi Lub hom phiaj kev sib txuas
1 VDD Target VCC-1 MCU VCC
2 DATA SWIM MCU SWIM pin
3 GND PIB GND
4 RESET RESET MCU RESET pin

STMicroelectronics UM1075 ST-LINK V2 Hauv-Circuit Debugger Programmer - Fig 8

Table 3 piav qhia txog cov npe teeb liab, kev ua haujlwm, thiab lub hom phiaj kev sib txuas cov teeb liab siv cov kab hluav taws xob sib cais.
Raws li SWIM cais-xaim cable muaj kev ywj pheej txuas rau txhua tus pins ntawm ib sab, nws tuaj yeem txuas ST-LINK / V2-ISOL rau daim ntawv thov board yam tsis muaj tus qauv SWIM txuas. Nyob rau hauv lub tiaj tus ribbon no, tag nrho cov teeb liab tau hais los ntawm ib qho xim tshwj xeeb thiab ib daim ntawv lo kom yooj yim rau kev sib txuas ntawm lub hom phiaj.

Table 3. SWIM tus nqi qis cable txuas rau ST-LINK/V2-ISOL

Xim Cable pin npe Muaj nuj nqi Lub hom phiaj kev sib txuas
Liab TVCC Target VCC-1 MCU VCC
Ntsuab UAS-RX Tsis siv Reserved (2) (tsis txuas rau ntawm lub hom phiaj pawg thawj coj saib)
Xiav UAS-TX
Daj NKAUS
Txiv kab ntxwv SWIM SWIM MCU SWIM pin
Dub GND PIB GND
Dawb SWIM-RST RESET MCU RESET pin
  1. Lub hwj chim mov los ntawm daim ntawv thov board txuas nrog ST-LINK / V2 debugging thiab programming board los xyuas kom meej lub teeb liab sib raug zoo ntawm ob lub rooj tsavxwm.
  2. BOOT0, UART-TX, thiab UART-RX tau tshwj tseg rau kev txhim kho yav tom ntej.
    TVCC, SWIM, GND, thiab SWIM-RST tuaj yeem txuas nrog tus nqi qis 2.54 mm pitch connector lossis pin headers muaj nyob rau ntawm lub hom phiaj.

Kev sib txuas nrog STM32 daim ntawv thov

Rau kev txhim kho STM32, ST-LINK / V2 yuav tsum tau txuas nrog daim ntawv thov siv tus qauv 20-pin JTAG tiaj tus ribbon muab.
Table 4 qhia txog cov cim npe, lub luag haujlwm, thiab lub hom phiaj kev sib txuas cov cim ntawm tus qauv 20-pin JTAG flat ribbon.

Tab 4. JTAG/SWD cable txuas

Pin nr. ST-LINKN2 txuas (CN3) ST-LINKN2 muaj nuj nqi Lub hom phiaj kev sib txuas (JTAG) Target connection (SWD)
1 VAPP Target VCC MCU VDU') MCU VDD(1)
2
3 TRST JTAG TRST JNTRST GND(2)
4 GND GND GND(3) GND(3)
5 TDI JTAG TDO JTDI GND(2)
6 GND GND GND(3) GND(3)
7 TMS SWDIO JTAG TSW, 10 JTMS SWDIO
8 GND GND GND(3) GND(3)
9 TXK SWCLK JTAG TXK, SW CLK JTCK SWCLK
10 GND GND GND(3) GND(3)
11 NC Tsis txuas Tsis txuas Tsis txuas
12 GND GND GND(3) GND(3)
13 TSO SWO JTAG TDI, SWB JTDO TRACESW0(4)
14 GND GND GND(3) GND(3)
15 NRST NRST NRST NRST
16 GND GND GND(3) GND(3)
17 NC Tsis txuas Tsis txuas Tsis txuas
18 GND GND GND(3) GND(3)
19 VDD VDD (3.3V)t5. Tsis txuas Tsis txuas
20 GND GND GND(3) GND(3)
  1. Lub hwj chim mov los ntawm daim ntawv thov board txuas nrog ST-LINK / V2 debugging thiab programming board los xyuas kom meej lub teeb liab sib raug zoo ntawm ob lub rooj tsavxwm.
  2. Txuas mus rau GND kom txo cov suab nrov ntawm cov ribbon.
  3. Yam tsawg kawg ib tus pin no yuav tsum txuas nrog rau hauv av kom coj tus cwj pwm kom raug (kev sib txuas tag nrho yog pom zoo).
  4. Yeem: rau Serial Hlau Viewer (SWV) trace.
  5. Muaj nyob ntawm ST-LINK/V2 nkaus xwb thiab tsis txuas nrog ST-LINK/V2/OPTO.

Daim duab 9 qhia yuav ua li cas txuas ST-LINK/V2 rau lub hom phiaj siv JTAG kab.

  1. STMicroelectronics UM1075 ST-LINK V2 Hauv-Circuit Debugger Programmer - Fig 9A = Lub hom phiaj daim ntawv thov board nrog JTAG txuas
  2. B = JTAG/ SWD 20-hlau ca cable
  3. C = STM32 JTAG thiab SWD target connector

Kev siv ntawm cov khoom sib txuas uas xav tau ntawm lub hom phiaj daim ntawv thov pawg thawj coj saib yog: 2x10C header wrapping 2x40C H3 / 9.5 ( suab 2.54) - HED20 SCOTT PHSD80.

STMicroelectronics UM1075 ST-LINK V2 Hauv-Circuit Debugger Programmer - Fig10

Nco tseg:
Rau cov ntawv thov uas tsis muaj nqi lossis thaum tus qauv 20-pins-2.54mm-pitch-connector hneev taw loj dhau, nws muaj peev xwm siv tau. Tag-Txuas kev daws teeb meem kom txuag tau tus nqi thiab qhov chaw ntawm daim ntawv thov board. Cov Tag-Txuas adapter thiab cable muab ib qho yooj yim txhim khu kev qha txhais tau tias ntawm kev sib txuas ST-LINK / V2 los yog ST-LINK / V2-ISOL rau PCB yam tsis tas yuav muaj kev sib tw.

Kho vajtse configuration
ib feem ntawm daim ntawv thov PCB. Yog xav paub ntxiv txog cov tshuaj no thiab daim ntawv thov-PCB-footprint cov ntaub ntawv, mus saib www.tag-connect.com. Cov ntaub ntawv pov thawj ntawm cov khoom sib xws nrog JTAG thiab SWD interfaces yog:
a) TC2050-ARM2010 adapter (20-pin-to 10-pin-interface board)
b) TC2050-IDC lossis TC2050-IDC-NL (Tsis muaj ceg) (10-pin cable)
c) TC2050-CLIP tuav clip rau siv nrog TC2050-IDC-NL (yeem)

4.3 ST-LINK/V2 xwm txheej LEDs
Lub LED sau 'COM' nyob rau sab saum toj ntawm ST-LINK / V2 qhia ST-LINK / V2 xwm txheej (txawm li cas los xij Thaum:

  • LED yog blinking liab: thawj USB enumeration nrog lub PC tab tom ua qhov chaw.
  • LED yog RED: kev sib txuas lus ntawm PC thiab ST-LINK / V2 yog tsim (qhov kawg ntawm kev suav).
  • LED yog blinking GREEN / RED: cov ntaub ntawv raug pauv ntawm lub hom phiaj thiab PC.
  • LED yog GREEN: kev sib txuas lus kawg tau ua tiav.
  • LED yog ORANGE: ST-LINK / V2 kev sib txuas lus nrog lub hom phiaj tau ua tsis tiav.

Software teeb tsa

5.1 ST-LINK/V2 firmware upgrade
ST-LINK/V2 embeds firmware upgrade mechanism rau kev hloov kho hauv-situ los ntawm USB chaw nres nkoj. Raws li cov firmware yuav hloov zuj zus mus rau tag nrho lub neej ntawm ST-LINK / V2 cov khoom (kev ua haujlwm tshiab, kho kab laum, kev txhawb nqa rau cov tsev neeg microcontroller tshiab ...), nws raug nquahu kom mus ntsib www.st.com/stlinkv2 ib ntus txhawm rau kom nyob twj ywm nrog cov firmware tshiab kawg.

5.2 STM8 daim ntawv thov kev txhim kho
Xa mus rau ST toolet Pack24 nrog Patch 1 lossis ntau dua tsis ntev los no, uas suav nrog ST Visual Develop (STVD) thiab ST Visual Programmer (STVP).
5.3 STM32 daim ntawv thov kev txhim kho thiab Flash programming
Cov cuab yeej thib peb, Atollic® TrueSTUDIO, IAR™ EWARM, Keil® MDK-ARM™, thiab TASKING VX-toolset txhawb nqa ST-LINK/V2 raws li cov qauv muab hauv Table 5 lossis hauv cov ntawv tshiab tshaj plaws muaj.

Table 5. Yuav ua li cas thib peb-tog toolchains txhawb ST-LINK/V2

Thib peb Toolchain Version
Atollic® TrueSTUDIO 2.1
IAR™ SWARM 6.20
Keil® MDK-ARM™ 4.20
TASKING VX-toolset rau ARM® Cortex® -M 4.0.1

ST-LINK/V2 yuav tsum muaj tus tsav tsheb tshwj xeeb USB. Yog hais tias lub toolset yog ntsia nws cia li, lub file stlink_winusb.inf yog ntsia rau hauv /inf (qhov twg feem ntau yog C: / Windows).
Yog hais tias cov cuab yeej teeb tsa tsis tau nruab nws, tus tsav tsheb tuaj yeem pom ntawm www.st.com:

  1. Txuas rau www.st.com.
  2. Hauv kev tshawb nrhiav tab, ntu ntu ntu, nrhiav ST-LINK/V2.
  3. Nyem rau ntawm Generic Part Number kem hyperlink rau ST-LINK/V2.
  4. Hauv qhov tsim kev txhawb nqa tab, ntu SW tsav tsheb, nyem rau ntawm lub cim txhawm rau rub tawm st-link_v2_usbdriver.zip.
  5. Unzip thiab khiav ST-Link_V2_USBdriver.exe.

Schematics

STMicroelectronics UM1075 ST-LINK V2 Hauv-Circuit Debugger Programmer - Fig 11

1. Lus dab neeg rau tus pin piav qhia:
VDD = Target voltage xav
DATA = SWIM DATA kab ntawm lub hom phiaj thiab cov cuab yeej debug
GND = Av voltage
RESET = Lub hom phiaj rov pib dua

STMicroelectronics UM1075 ST-LINK V2 Hauv-Circuit Debugger Programmer - Fig 12

1. Lus dab neeg rau tus pin piav qhia:
VDD = Target voltage xav
DATA = SWIM DATA kab ntawm lub hom phiaj thiab cov cuab yeej debug
GND = Av voltage
RESET = Lub hom phiaj rov pib dua

Cov ntaub ntawv / Cov ntaub ntawv

STMicroelectronics UM1075 ST-LINK V2 Hauv-Circuit Debugger Programmer [ua pdf] Tus neeg siv phau ntawv
UM1075, ST-LINK V2 Hauv-Circuit Debugger Programmer, UM1075 ST-LINK V2 Hauv-Circuit Debugger Programmer, V2 Hauv-Circuit Debugger Programmer, Hauv-Circuit Debugger Programmer, Debugger Programmer, Programmer

Cov ntaub ntawv

Cia ib saib

Koj email chaw nyob yuav tsis raug luam tawm. Cov teb uas yuav tsum tau muaj yog cim *