Home
STM32 ST-Link Utility
Contents
1. ky UM0892 User manual STM82 ST Link Utility August 2010 Introduction The STM32 ST Link Utility software facilitates fast in system programming of the STM32 microcontroller families in both development and production environments via the ST Link tool This is the STM32 ST Link Utility user manual describing its software functionality When working with the STM32 ST Link Utility tool you are encouraged to download the ST Link in circuit debugger programmer for the STM8 and STM32 which provides more information about the ST Link tool Doc ID 16987 Rev 4 1 15 www st com Getting started UM0892 1 1 Note 1 2 1 3 1 4 2 15 Getting started This section describes the requirements and procedures needed to install the STM32 ST Link Utility software System requirements The STM32 ST Link Utility PC configuration requires as a minimum e PC with USB port and Intel Pentium processor running a 32 bit Microsoft OS that supports USB Windows XP Windows 2000 Windows 98SE Windows ME e 32 MB RAM 10 MB hard disk space available Windows 95 Windows 98 First Edition and NT4 0 do NOT support USB Hardware requirements The STM32 ST Link Utility is designed to work with Low density medium density high density XL density connectivity line and value line STM32 devices as well as ultralow power STM32L15xxx devices ST Link Installing the STM32 ST Link Ut
2. 00 00 00 00 00 00 00 00 00 00 00 AR 18 00 08 eee 0x08000030 B1 18 OO 08 oO oO OO OO B3 18 OO 08 BS 18 OO 08 n ORES 0x08000040 100 21 08 00 40 jiC 40 1E f40 00 70 J47 06 48 46 F2 pG F 0x08000050 A7 11 O1 60 OS 48 OF OS 46 100 JZE Ot 60 fea mahaki ale oxoso00060 04 48 00 21 O1 60 70 OO JEO 10 JEO 00 jEO H pG a 4 4 0x08000070 18 EO 00 E0 DO OB 00 oo 68 i00 68 50 F4 4 40 H h hP 0x08000080 FE 70 17 49 i09 68 O8 60 16 48 OO 68 SF FO 33 31 j pI h H h_ oxos000090 01 60 14 48 OO 68 SF FO 33 31 41 60 11 48 OO 68 H h_4314 H oxosoo00ao0 o1 49 09 68 cl 60 70 47 44 OC 00 20 oc 48 OO 68 I hA pGD H 0x08000080 00 68 SO F4 FE 70 0A 49 09 68 08 60 09 48 OO 68 hP bp I h H OxOS0000C0 5F FO 33 31 joi 60 o7 48 joo 68 SF FO 33 31 41 60 _8631 H h_631 lt gt Connected via JTAG Device ID 0 418 Note When the Memory data zone displays device memory contents any modification is automatically applied to the chip You can modify user Flash memory RAM memory and peripherals registers 8 15 Doc ID 16987 Rev 4 4 UM0892 STM32 ST Link Utility features 3 3 Flash memory erase There are two type of Flash memory erase Flash mass erase Erase all the memory Flash sectors of the connected device This is done by clicking on the menu Target Erase Chip Flash Sector Erase Erase the selected sector s of the Flash
3. memory To select sector s go to Target Erase Sectors which then displays the Flash Memory Mapping dialog box where you select the sector s to erase as shown in Figure 8 Figure 8 Select all button selects all the Flash pages Unselect all button unselects all sectioned page Cancel button discards the erase operation even if some pages are selected Apply button erases all the selected pages Flash Memory Mapping dialog box Flash Memory Mapping Page Start address Size 0x08000000 2K 0x08000800 2K 0x08001000 2K 008001800 2K 008002000 2K 008002800 2K 0x08003000 2K 008003800 2K 0x08004000 2K 0x08004800 2K 0x08005000 2K Select all Unselect all Cancel Note To erase the Flash data memory sector of the ultralow power STM32L15xxx devices select the data memory box at the end of the list and click Apply Doc ID 16987 Rev 4 9 15 STM32 ST Link Utility features UM0892 3 4 10 15 Device programming The STM32 ST Link Utility can download a binary file into Flash or RAM memory To do this follow these steps 1 Click on Target Program or Target Program amp Verify if you want verify the written data to open the Open dialog box as shown in Figure 9 If a binary file is already opened go to step 3 Figure 9 Open file dialog box Loon ny o iC EN 53 STM32F10 MSC_MP3_14 7456MHz2 bin E STM32F10 USBH HID_OS bin T STM32F 10 MSC_MP3_25MHe bin E STMG2F10 U
4. read protection Level 1 memory read protection enabled Level 2 memory read protection enabled and all debug features disabled For the other devices the read protection can only be enabled or disabled BOR Level Brown out reset level This list contains the supply level threshold that activates releases the brown out reset This option is enabled only when connected to an ultralow power device 5 programmable VBOR thresholds can be selected BOR LEVEL 1 Reset threshold level for 1 69 to 1 8 V voltage range BOR LEVEL 2 Reset threshold level for 1 94 to 2 1 V voltage range BOR LEVEL 3 Reset threshold level for 2 3 to 2 49 V voltage range BOR LEVEL 4 Reset threshold level for 2 54 to 2 74 V voltage range BORLEVEL 5 Reset threshold level for 2 77 to 3 0 V voltage range e User Configuration option byte WDG_SW If checked watchdog is enabled by software otherwise it is automatically enabled at power on nRST_STOP If not checked reset is generated when entering Standby mode 1 8V domain powered off If checked no reset is generated when entering Standby mode nRST_STDBY if not checked reset is generated when entering Stop mode all clocks are stopped If checked no reset is generated when entering Stop mode BFB2 If not checked and if the boot pins are set to make the device boot from user Flash at startup the device boots from Flash memory bank 2 otherwise it boots from Fl
5. 080 0x08000090 0x080000A0 0x08000080 0x080000C0 00 A9 00 B1 00 04 18 oo 18 21 11 48 EO 70 60 49 68 Fo 00 oo 00 oo 08 01 oo 00 17 14 09 50 33 20 08 oo o8 oo 60 21 E0 49 48 68 F4 31 9D AB oo oo 40 05 01 bo 09 oo ca FE 01 08 08 00 00 1E 2i 47 20 60 FO 47 49 43 AS AD 00 B3 18 18 00 18 00 60 Eo 48 48 31 oc 68 68 oo 00 oo 00 70 05 oo 00 00 41 00 08 SF o8 08 00 o8 47 48 E0 68 68 60 20 60 Fo ay 00 AF BS 06 00 10 oo SF 11 oc 09 33 18 00 18 18 48 21 EO 68 Fo 48 48 48 31 00 00 oo 00 46 01 oo 50 33 00 00 oo 41 08 00 08 08 F2 60 E0 H pG Hoh bP bp I h H h_ gt H h_8314 H Sh pe Hi hP p 1 h H 831r H k a31 gt Connected via JTAG Device ID 04418 The main window is composed of three zones and three bars as illustrated in Figure 1 Memory display zone Device information zone Memory contents zone Title bar The name of the current menu Menu bar Use the menu bar to access the following STM32 ST Link Utility functions File menu View menu Target menu Help menu These menus are described in more detail in Section 2 2 Status bar The status bar displays Connection status and debug interface Device ID The STM32 ST Link Utility user interface also provides addition
6. PRODUCTS WHICH ARE NOT SPECIFIED AS AUTOMOTIVE GRADE MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER S OWN RISK Resale of 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 2010 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 16987 Rev 4 15 15
7. SSH MSC_OS bin led STMS2F10 MSC_WAY_14 7456MHz bin E STMS2F10 US80 DRD_OS bin IT STMS2F10 MSC_WAV_25MHz bin STM32F 10 USBF HID_OS bin E STM32F 10 USBF MSC_OS bin R lt i gt Filename STM32F10 USBF HID_OS bin Files of type BIN Files bin Lancel l Open as read only 2 Select a binary file and click on the Open button 3 Specify the address from which to start programming as shown in Figure 10 it may be a Flash or RAM address Figure 10 Device programming dialog box programming Download a Start address 0x08000000 Cancel Flash Programming 4 Finally click on the Program button to start programming If you selected Target Program amp Verify in the first step a check is done at the end of the programming operation see Figure 11 Figure 11 Device programming dialog box verification Download Program Start address ox08000000 Verification Cance Doc ID 16987 Rev 4 UM0892 STM32 ST Link Utility features 3 5 Option bytes configuration The STM32 ST Link Utility can configure all the option bytes via the Option Bytes dialog box shown in Figure 12 which is accessed by Target Option Bytes The Option Bytes dialog box contains the following sections e Read Out Protection Modifies the read protection state of the Flash memory For ultralow power devices read protection levels are available Level 0 no
8. al forms and descriptive pop up error messages 4 Doc ID 16987 Rev 4 3 15 STM32 ST Link Utility user interface UM0892 2 2 2 2 1 2 2 2 4 15 Menu bar The Menu bar allows users to execute the STM32 ST Link Utility software features File menu Figure 2 File menu View Target Help Open file Save File as noooo0 Close File Exit 08000000 Address o 1 2 Open File Opens a binary file Save File as Saves the content of the memory panel into a binary file Close File Closes the loaded binary file Exit Closes the STM32 ST Link Utility program View menu Figure 3 View menu Target Help Me Binary file A Device memory Device Memory Ox08000000 Binary file Displays the content of the loaded binary file Device memory Displays the content of the device memory Doc ID 16987 Rev 4 ky UM0892 STM32 ST Link Utility user interface 2 2 3 Target menu Figure 4 Target menu STM32 ST Link Utility Fie view BECEJ Help Memory d Connect Address Disconnect Erase Chip Device Me Address a oxosoo00t Erase Sectors oS ox080000 Program F9 oxosoo00 Program amp Verify ox080000 Option Bytes FF Ox080000 MCU Core FF Misia Settings ce 0x08000060 prr IF ou UG Er Connect Connects to the target device and displays the Device Type Device ID and Flash size in the Device information
9. ash memory bank 1 This option is enabled only when connected to an XL density device e User data storage option bytes Contains two bytes for user storage These two option bytes are not available in the ultralow power STM32L15xxx devices e Write Protection Depending on the device Flash sectors are grouped by a defined number of sectors You can modify the write protection of each Flash sector group here ky Doc ID 16987 Rev 4 114 15 STM32 ST Link Utility features UM0892 Figure 12 Option Bytes dialog box Option Bytes Read Out Protection BOR Level User Configuration option byte lv WDG_SW MV nRST_STDBY M nRST_STOP E User data storage option bytes Data 0 hk Data 1 h Write Protection Page Start address Size O Page 0 008000000 0 25K E O Pag 1 008000100 0 25K O Fage 2 008000200 0 25K O Fag 3 008000300 0 25K O Pag 4 008000400 0 25K O Pag 5 008000500 0 25K O Page 6 008000600 0 25K a N RRR 1 NLANNNNTAN any Unselect all Select all Cancel Apply v For more details please refer to the Option Bytes section in the Flash programming manual available from www 12 15 st com Doc ID 16987 Rev 4 x UM0892 STM32 ST Link Utility features 3 6 MCU core functions The Core panel dialog box shown in Figure 13 displays the Coretex M3 core register values It also allows you to carry out the following actions on the MCU using the buttons on the r
10. e for the choice selection and use of the ST products and services described herein and ST assumes no liability whatsoever relating to 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 AN AUTHORIZED ST REPRESENTATIVE 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
11. he Device information zone the main window contains 2 other zones Memory display Memory data Memory display This zone contains three edit boxes Address Memory start address from which you want to read Size Amount of data to read Data width Width of the displayed data 8 bit 16 bit or 32 bit Doc ID 16987 Rev 4 7 15 STM32 ST Link Utility features UM0892 Memory data This zone displays the data read from a binary file or the memory content of a connected device You can modify the content of the file before downloading e To use this zone to display the content of binary file go to File Open file e To use this zone to read and display memory content of a connected device enter the memory start Address data Size and the Data Width in the Memory display zone and then press Enter e After reading data you can also modify each value merely by double clicking on the concerned cell as illustrated by Figure 7 You can also save the device memory content into a binary file using the menu File Save file as Figure 7 STM32 ST Link Utility user interface File View Target Help Memory display Device Information Address 0x08000000 Size 041000 Data Width 8 bit be Device Connectivity Line device Device ID 0x418 Flash size 256 Kbyte Device Memory 008000000 Address 0x08000000 18 00 08 jois Enimia 0x08000010 A9 18 OO 08 AB 16 OO 08 AD 18 OO O8 OO OO BO DO snn 0x08000020
12. ight Run Run the core Halt Halt the core System Reset Send a system reset request Core Reset Reset the core Step Step one instruction Read Core Reg Update the core registers values Figure 13 MCU Core panel dialog box Core panel 020 oa 083 CEN f ax20000560 roxco0005Fs exoo000sFo re OX9SC5BF5D apsp 0 a 01000000 R3 OXFDFSEFSF Rio 0XEC37CFC7 E A11 0XBD7FDAFB R12 OXE6DADED MSP OXFFFFFFDC PSP G lt C BBFBBO Ria OxFFFFRFDC xpsr ox1000003 R14 OXFFFFFFFS pc OXFFFFFFFE Read Core Reg Doc ID 16987 Rev 4 13 15 Revision history UM0892 4 14 15 Revision history Table 1 Document revision history Date Revision Changes 22 Jan 2010 1 Initial release 12 Feb 2010 2 Changed Figs 1 2 3 4 5 6 and 7 Added SWD support 20 May 2010 3 Added support of XL density devices in Section 2 2 3 and Section 3 5 27 Aug 2010 4 Added support of STM32L15xxx Doc ID 16987 Rev 4 UM0892 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 responsibl
13. ility Follow these steps and the on screen instructions to install the STM32 ST Link Utility 1 Download the compressed STM32 ST Link Utility software from the ST website 2 Extract the contents of the zip file into a temporary directory 3 Double click the extracted executable setup exe to initiate the installation and follow the on screen prompts to install the STM32 ST Link Utility in the development environment Documentation for the utility is located in the subdirectory Docs where the STM32 ST Link Utility is installed Uninstalling the STM32 ST Link Utility Follow these steps to uninstall the STM32 ST Link Utility 1 Select Start Settings Control Panel 2 Double click on Add or Remove Programs 3 Select STM32 ST Link Utility 4 Click on the Remove button Doc ID 16987 Rev 4 ky UM0892 STM32 ST Link Utility user interface 2 STM32 ST Link Utility user interface 2 1 Main window Figure 1 STM32 ST Link Utility user interface main window Title bar STM32 ST Link Utility Menu bar Ele View Target Help Main window Status bar Memory display Address 0x08000000 Size 0x1000 Data Width S bit v Device Memory 0x08000000 Flash size Address 0 1 2 3 4 5 6 7 8 9 A B C D E F Device Information Device Device ID Connectivity Line device 0x418 256 Kbyte 0x08000000 0x08000010 0x08000020 0x08000030 0x08000040 0x08000050 0x08000060 0x08000070 0x08000
14. lp menu STM32 ST Link Utility File view Target M265 Memory display 5TM32 ST Link Utility User Manual Address Oxo ST Link User Manual About Device Memory OxU8UUUUUU STM32 ST Link Utility User Manual Opens the STM32 ST Link Utility User Manual ST Link User Manual Opens the ST Link User Manual About Displays STM32 ST Link Utility software version and copyright information 6 15 Doc ID 16987 Rev 4 ky UM0892 STM32 ST Link Utility features 3 3 1 3 2 STM32 ST Link Utility features This section provides a detailed description of how to use STM32 ST Link Utility features Device information Memory display and modification Flash memory erase Device programming Option bytes configuration MCU core functions Device information The Device information zone displays information as shown in Figure 6 Figure 6 Device information zone in the main user interface Device Information Device Connectivity Line device Device ID 0x418 Flash size 256 Kbyte Device Device may be low density medium density high density XL density connectivity line value line or ultralow power STM32L15xxx Each device type includes many devices with different characteristics Flash size RAM size peripherals Device ID MCU device ID code located in the external PPB memory map Flash memory size Size of the on chip Flash memory Memory display and modification In addition to t
15. zone Disconnect Disconnects from the target device Erase Chip Performs a Flash mass erase and then displays the Flash memory content in the memory panel Erase Bank1 Erases bank 1 of the Flash memory This menu is enabled only when connected to an XL density device Erase Bank2 Erases bank 2 of the Flash memory This menu is enabled only when connected to an XL density device Erase Sectors Selects sector s to erase using the erase sectors dialog window see Section 3 3 Flash memory erase for more details Program Loads a binary file into the device memory Flash or RAM To do this select a binary file enter the start address where to put the file in the device in the program dialog window and then click on program button see Section 3 4 Device programming Program amp Verify Loads a binary file into the device memory Flash or RAM then performs a verification of the programmed data Option Bytes Opens the Option Bytes dialog window See Section 3 5 Option bytes configuration for more details MCU Core Opens the MCU Core dialog window See Section 3 6 MCU core functions for more details Settings Opens the Settings dialog box to select the debug interface JTAG or SWD For the ultralow power devices you can specify the parallelism number of bits to program erase simultaneously ky Doc ID 16987 Rev 4 5 15 STM32 ST Link Utility user interface UM0892 2 2 4 Help menu Figure 5 He
Download Pdf Manuals
Related Search
Related Contents
SkyIPCam747 Night Vision Pan/Tilt Network Camera User`s Manual Philips HMP7001 取扱説明書 - 巴バルブ Philips Blu-ray Disc/ DVD player BDP2900 その2事業要求水準書(案) 【PDF:689KB】 User`s manual ACS800-01 democase - inverter - plc Registradores de datos CAMRegis Manual de Philips Fibre optic audio cable SWA3522 Nagoya - Siamp INSTRUCTION MANUAL - Targa Copyright © All rights reserved.
Failed to retrieve file