Home
ST-LINK/V2-ISOL - STMicroelectronics
Contents
1. kva UM1075 YZ User manual ST LINK V2 in circuit debugger programmer for STM8 and STM32 Introduction The ST LINK V2 is an in circuit debugger programmer for the STM8 and STM32 microcontroller families The single wire interface module SWIM and JTAG serial wire debugging SWD interfaces facilitate communication with any STM8 or STM32 microcontroller located on an application board In addition to providing the same functionalities as the ST LINK V2 the ST LINK V2 ISOL features digital isolation between the PC and the target application board It also withstands voltages of up to 2500 VRMS The USB full speed interface allows communication with a PC and e STMS8 devices via ST Visual Develop STVD or ST Visual Program STVP software which are available from STMicroelectronics e STM32 devices via Atollic IAR Keil and TASKING integrated development environments Table 1 Applicable tools Type Part number Order Code Description ST LINK V2 In circuit debugger programmer Development ST LINK V2 circul tools ST LINK V2 ISOL In circuit debugger programmer with digital isolation Figure 1 ST LINK V2 and ST LINK V2 ISOL ST LINK V2 ST LINK V2 ISOL October 2012 Doc ID 018748 Rev 6 1 19 www st com Contents UM1075 Contents 1 Features uai axo ess he QNI ae Seah eaten eee eee E 5 2 Product contents a vretena eee pO Re RR e ha ce dere da di A ees 6 3 Hardware confi
2. ST products with provisions different from the statements and or technical features set forth in this document shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever any liability of ST ST and the ST logo are trademarks or registered trademarks of ST in various countries Information in this document supersedes and replaces all information previously supplied The ST logo is a registered trademark of STMicroelectronics All other names are the property of their respective owners 2012 STMicroelectronics All rights reserved STMicroelectronics group of companies Australia Belgium Brazil Canada China Czech Republic Finland France Germany Hong Kong India Israel Italy Japan Malaysia Malta Morocco Philippines Singapore Spain Sweden Switzerland United Kingdom United States of America www st com ki Doc ID 018748 Rev 6 19 19
3. TC2050 CLIP retaining clip for use with TC2050 IDC NL optional ST LINK V2 status LEDs The LED labeled COM on top of the ST LINK V2 shows the ST LINK V2 status whatever the connection type When the e LED is blinking RED the first USB enumeration with the PC is taking place e LED is RED communication between the PC and ST LINK V2 is established end of enumeration e LED is blinking GREEN RED data are being exchanged between the target and the PC e LED is GREEN the last communication has been successful e LED is ORANGE ST LINK V2 communication with the target has failed Doc ID 018748 Rev 6 ky UM1075 Software configuration 4 Software configuration 4 1 ST Link V2 firmware upgrade The ST Link V2 embeds a firmware upgrade mechanism for in situ upgrade through the USB port As the firmware might evolve during the whole life of the ST Link V2 product new functionality bug fixes support for new microcontroller families it is recommended to visit www st com stlinkv2 periodically in order to stay up to date with the latest firmware version 4 2 STM8 application development Please refer to ST toolset Pack24 with Patch 1 or more recent which includes ST Visual Develop STVD and ST Visual Programmer STVP 4 3 STM32 application development and Flash programming Third party toolchains Atollic TrueSTUDIO IAR EWARM Keil MDK ARM and TASKING VX toolset support ST LINK V2 according to the versions given
4. INK V2 OPTO Doc ID 018748 Rev 6 UM1075 Hardware configuration Note Figure 9 shows how to connect the ST LINK V2 to a target using the JTAG cable Figure 9 JTAG and SWD connection MW 1 A Target application board with JTAG connector 2 B JTAG SWD 20 wire flat cable 3 C STM32 JTAG and SWD target connector The reference of the connector needed on the target application board is 2x10C header wrapping 2x40C H3 9 5 pitch 2 54 HED20 SCOTT PHSD80 Figure 10 JTAG debugging flat ribbon layout v 19 171513 119 7 5 3 1 ELE HEH ELE HE SEE L1 D DIL DI 0 DIL DI BI BI B 20181614 12108 6 4 2 Viewed from above PCB ai18744 For low cost applications or when the standard 20 pins pitch 2 54mm connector footprint is too big it is possible to implement the Tag Connect solution to save cost and space on the application board The Tag Connect adapter and cable provide a simple reliable means of connecting ST LINK V2 or ST LINK V2 ISOL to your PCB without reguiring a mating Doc ID 018748 Rev 6 13 19 Hardware configuration UM1075 3 3 14 19 component on application PCB For more details on this solution and application PCB footprint information please visit www Tag Connect com The references of components compatible with JTAG and SWD interfaces are a TC2050 ARM2010 adapter 20pins to 10pins interface board b TC2050 IDC or TC2050 IDC NL No Legs 10pins cable c
5. anges 22 Apr 2011 1 Initial release 03 Jun 2011 Table 2 SWIM flat ribbon connections for ST LINK V2 added footnote 7 to the function Target VCC Table 4 JTAG SWD cable connections added footnote to the function Target VCC Table 5 How third party toolchains support ST LINK V2 updated the Versions of IAR and Keil 19 Aug 2011 Added USB driver details to Section 4 3 11 May 2012 Added SWD and SWV to JTAG connection features Modified Table 4 JTAG SWD cable connections 13 Sep 2012 Added ST LINK V2 ISOL order code Updated Section 4 1 STM8 application development on page 15 Added Note 5 in Table 4 Added Note For low cost applications before Section 3 3 ST LINK V2 status LEDs on page 14 18 Oct 2012 Added Section 4 1 ST Link V2 firmware upgrade on page 15 s Doc ID 018748 Rev 6 UM1075 Please Read Carefully Information in this document is provided solely in connection with ST products STMicroelectronics NV and its subsidiaries ST reserve the right to make changes corrections modifications or improvements to this document and the products and services described herein at any time without notice All ST products are sold pursuant to ST s terms and conditions of sale Purchasers are solely responsible for the choice selection and use of the ST products and services described herein and ST assumes no liability whatsoever relating t
6. guration 8 3 1 Connection with STM8 applications 8 3 1 1 Standard ERNI connection with SWIM flat ribbon 9 3 1 2 Low cost SWIM connection 10 3 1 3 SWIM signals and connections 11 3 2 Connection with STM32 applications 12 3 3 ST LINK V2 status LEDS 4 22 per uk ese pen ER eee bk nes 14 4 Software configuration 20 002 eke ee eee ee nn 15 4 1 ST Link V2 firmware upgrade 15 4 2 STM8 application development 15 4 3 STM32 application development and Flash programming 15 5 Schematics usus sa ER ewer QUES san deen RCRUM ae 16 6 Revision history isa RE unu RR ra doa o6 66 nessa be e ara ara 18 2 19 Doc ID 018748 Rev 6 ky UM1075 List of tables List of tables Table 1 Applicable tools Lus piano we oo ne eee ed RR dak ee oe eee 1 Table 2 SWIM flat ribbon connections for ST LINK V2 11 Table 3 SWIM low cost cable connections for ST LINK V2 ISOL 11 Table 4 JTAG SWD cable connections 12 Table 5 How third party toolchains support ST LINK V2 15 Table 6 Document revision history 00 eee teens 18 ky Doc ID 018748 Rev 6 3 19 L
7. gure 11 SWIM ST LINK V2 standard ERNI cable Boo A Figure 6 shows that pin 16 is missing on the ST LINK V2 ISOL target connector This missing pin is used as a safety key on the cable connector to guarantee connection of the SWIM cable in the correct position on the target connector even pins used for both SWIM and JTAG cables Figure 6 Key detail on connectors Doc ID 018748 Rev 6 9 19 Hardware configuration UM1075 3 1 2 Low cost SWIM connection Figure 7 shows how to connect the ST LINK V2 if a 4 pin 2 54 mm low cost SWIM 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 See Figure 12 SWIM ST LINK V2 low cost cable PO INS X 10 19 Doc ID 018748 Rev 6 UM1075 Hardware configuration 3 1 3 SWIM signals and connections Table 2 summarizes the signal names functions and target connection signals using the wire cable with a 4 pin connector Table 2 SWIM flat ribbon connections for ST LINK V2 Pin no Name Function Target connection 1 VDD Target VCC MCU VCC 2 DATA SWIM MCU SWIM pin 3 GND GROUND GND 4 RESET RESET MCU RESET pin 1 The power supply from the application board is connected to the ST LINK V2 debugging and programming board to ensure s
8. he application using the standard 20 pin JTAG flat ribbon provided Table 4 summarizes the signals names functions and target connection signals of the standard 20 pin JTAG flat ribbon Table 4 JTAG SWD cable connections Pin no ST LINK V2 connector ST LINK V2 function Target connection Target connection CN3 JTAG SWD Z VAPP Target VCC MCU VDD MCU VDD 3 TRST JTAG TRST JNTRST GND 4 GND GND GND GND 5 TDI JTAG TDO JTDI GND 6 GND GND GND GND 7 TMS SWDIO JTAG TMS SWIO JTMS SWDIO 8 GND GND GND GND 9 TCK SWCLK JTAG TCK SW CLK JTCK SWCLK 10 GND GND GND O GND 11 NC Not connected Not connected Not connected 12 GND GND GND GND 13 TDO SWO JTAG TDI SWO JTDO TRACESWO 14 GND GND GND GND O 15 NRST NRST NRST NRST 16 GND GND GND O GNDO 17 NC Not connected Not connected Not connected 18 GND GND GND GND 19 VDD VDD 3 3V 9 Not connected Not connected 20 GND GND GND GND 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 Connect to GND for noise reduction on the ribbon 3 Atleast one of this pin must be connected to the ground for correct behavior connecting all of them is recommended Optional for Serial Wire Viewer SWV trace 5 Available on ST LINK V2 only and not connected on ST L
9. ignal compatibility between both boards Figure 8 Target SWIM connector Pin 1 VDD Pin 2 DATA Pin 3 GND Pin 4 RESET Table 3 summarizes the signal names functions and target connection signals using the separate wires cable As the SWIM separate wires cable has independent connectors for all pins on one side it is possible to connect the ST LINK V2 ISOL to an application board without a standard SWIM connector On this flat ribbon all signals are referenced by a specific color and a label to ease the connection on target Table 3 SWIM low cost cable connections for ST LINK V2 ISOL Color Cable pin name Function Target connection Red TVCC Target VCC MCU VCC Green UART RX m ele PETS meee not anne target board Yellow BOOTO Orange SWIM SWIM MCU SWIM pin Black GND GROUND GND White SWIM RST RESET MCU RESET pin 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 BOOTO UART TX and UART RX are reserved for future developments Doc ID 018748 Rev 6 11 19 Hardware configuration UM1075 3 2 12 19 TVCC SWIM GND and SWIM RST can be connected to a low cost 2 54 mm pitch connector or to pin headers available on the target board Connection with STM32 applications For STM32 developments the ST LINK V2 needs to be connected to t
10. in Table 5 or the most recent version available Table 5 How third party toolchains support ST LINK V2 Third party Toolchain Version Atollic TrueSTUDIO 2 1 IAR EWARM 6 20 Keil MDK ARM 4 20 TASKING VX toolset for ARM Cortex M 4 0 1 The ST LINK V2 requires a dedicated USB driver If the toolset installed it automatically file stlink winusb inf is installed in lt WINDIR gt inf where lt WINDIR gt is typically C Windows If the toolset setup did not install it automatically the driver can be found on www st com 1 Connect to www st com 2 Inthe search tab part number field look for ST Link V2 3 Click on the Generic Part Number column s hyperlink to ST Link V2 4 In the Design support tab SW drivers section click on the icon to download st link_v2_usbdriver zip 5 Unzip and run ST Link V2 USBdriver exe For more information on third party tools please visit e www atollic com e www iar com e www keil com e www tasking com Doc ID 018748 Rev 6 15 19 Schematics UM1075 5 Schematics Figure 11 SWIM ST LINK V2 standard ERNI cable Target board ENE 1 horizontal mount 1 1 Target board 1 vertical mount 1 1 i Cum Pp eMMLeeMelIeeeeeoe 1 xa 1 z ii H CTN HH 1 CET He 1 za 1 T 1 Note connector located on the a 1 edge of the board xa 1 za za 1 ia Cable lenght 100mm 1 z 1 EON za H HE 1 m tt 1 2m tt 1 3E tt ti 1 mO i
11. ist of figures UM1075 List of figures Figure 1 ST LINK V2 and ST LINK V2 ISOL LLL eres 1 Figure 2 ST LINK V2 product contents 6 Figure 3 ST LINK V2 ISOL product contents 7 Figure 4 Connectors of the ST LINK V2 and ST LINK V2 SOL 8 Figure 5 ERNI corine ti Oni uum ret dn pees pesa uer Rer Be eh ga a Y Bag rji deca Srce vo 9 Figure 6 Key detail on connectors 9 Figure 7 Low cost connection L a 10 Figure 8 Target SWIM connector hr 11 Figure 9 JTAG and SWD connection eee 13 Figure 10 JTAG debugging flat ribbon layout 13 Figure 11 SWIM ST LINK V2 standard ERNI cable 16 Figure 12 SWIM ST LINK V2 low cost cable 17 4 19 Doc ID 018748 Rev 6 ky UM1075 Features Features e 5V power supplied by a USB connector e USB 2 0 full speed compatible interface e USB standard A to mini B cable e 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 a
12. o the choice selection or use of the ST products and services described herein No license express or implied by estoppel or otherwise to any intellectual property rights is granted under this document If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein UNLESS OTHERWISE SET FORTH IN ST S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE USE AND OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION OR INFRINGEMENT OF ANY PATENT COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT UNLESS EXPRESSLY APPROVED IN WRITING BY TWO AUTHORIZED ST REPRESENTATIVES ST PRODUCTS ARE NOT RECOMMENDED AUTHORIZED OR WARRANTED FOR USE IN MILITARY AIR CRAFT SPACE LIFE SAVING OR LIFE SUSTAINING APPLICATIONS NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY DEATH OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE ST PRODUCTS WHICH ARE NOT SPECIFIED AS AUTOMOTIVE GRADE MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER S OWN RISK Resale of
13. on The ST LINK V2 is designed around the STM32F103C8 device which incorporates the high performance ARM Cortex MS core It is available in a TQFP48 package As shown in Figure 4 the ST LINK V2 provides two connectors e an STM32 connector for the JTAG SWD and SWV interface e an STM8 connector for the SWIM interface The ST LINK V2 ISOL provides one connector for the STM8 SWIM STM32 JTAG SWD and SWV interfaces Figure 4 Connectors of the ST LINK V2 and ST LINK V2 ISOL STA 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 Bona 3 1 Connection with STM8 applications For STM8 developments the ST LINK V2 can be connected to the target board by two different cables depending on the connector available on the application board These cables are e SWIM flat ribbon with a standard ERNI connector at one end e SWIM cable with two 4 pin 2 54 mm connector or SWIM separate wires cable 8 19 Doc ID 018748 Rev 6 ky UM1075 Hardware configuration 3 1 1 Standard ERNI connection with SWIM flat ribbon Figure 5 shows how to connect the ST LINK V2 if a standard ERNI 4 pin SWIM connector is 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 See Fi
14. pplication via an ERNI standard vertical ref 284697 or 214017 or horizontal ref 214012 connector SWIM cable for connection to the application via a pin header or a 2 54 mm pitch connector e 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 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 2500 VRMS high isolation voltage ST LINK V2 ISOL only Operating temperature 0 to 50 C Doc ID 018748 Rev 6 5 19 Product contents UM1075 2 6 19 Product contents Figures ST LINK V2 product contents show the various cables delivered within the product They include from left to right in Figure 2 and Figure 3 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 Doc ID 018748 Rev 6 ky UM1075 Product contents Figure 3 ST LINK V2 ISOL product contents ky Doc ID 018748 Rev 6 7 19 Hardware configuration UM1075 3 Hardware configurati
15. t i ii zem Note Black wire location H PCB Footprint H H 1 1 i li L at x po CA AE E I at 1 1 x 1 1 x 1 1 1 1 1 1 1 1 1 1 1 1 1 x 1 1 Legend for pin descriptions VDD Target voltage sense DATA SWIM DATA line between target and debug tool GND Ground voltage RESET Target system reset 16 19 Doc ID 018748 Rev 6 ST LINK V2 male connector 02 20 227 2041 PIN 1 VDD pin2 pata USB PIN 3 GND PIN 4 RESET ai18745V2 s UM1075 Schematics Figure 12 SWIM ST LINK V2 low cost cable aaa aaa p cen dern g7070000000eMMeMMMeeleeeeeeeceleeeeeeel00eeeeee a oz m mn nn nn nn nn nn nn na 1 Target board i ot i iST LINK V2 board i i Applicaton m oi i Lowcost Low cost oa i 02 20 227 2041 1 femal Cable lenght 100 mm femal NES i 1 connector connector To H I 1 02201 3047 02 201 3047 Pod ST LINK V2 F 4 E 1 tot male H i 1 kA connector 02 1 i H on 20 227 2041 1 i Pin 1 VDD Pod i f Pin 1 VDD i H Pin 2 DATA io mo H i Pin 3 GND bo boj B Pin 4 RESET i i toj Pina RESET i i USB 1 ECE i i i E EA E rama PUBL EER ai18746V2 1 Legend for pin descriptions VDD Target voltage sense DATA SWIM DATA line between target and debug tool GND Ground voltage RESET Target system reset q Doc ID 018748 Rev 6 17 19 Revision history UM1075 6 18 19 Revision history Table 6 Document revision history Date Revision Ch
Download Pdf Manuals
Related Search
Related Contents
Données techniques Manual do Utilizador - Instituto Politécnico do Porto Graco Inc. 244437 Paint Sprayer User Manual 137774 - Bricoman GA Duomat dig.pm Samsung ES28 Manual de utilizare Samsung 22" Series 2 Quand la recherche éclaire la pédagogie Lexmark C792X2MG Printer User Manual Copyright © All rights reserved.
Failed to retrieve file