Home
STM32 ST-LINK utility
Contents
1. UM0892 J User manual STM32 ST LINK utility Introduction The STM32 ST LINK utility software facilitates fast in system programming of the STM32 microcontroller families in development environments via the ST LINK tool This is the STM32 ST LINK utility user manual describing its software functions 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 February 2011 Doc ID 16987 Rev 5 1 22 www st com Contents UMO0892 Contents 1 Getting started acit ac aec Da nc D mt a i c DR e 3 1 1 System requirements 02 0 cece eee 3 1 2 Hardware requirements 0 2 ee 3 1 3 Installing the STM32 ST LINK utility llle 3 1 4 Uninstalling the STM32 ST LINK utility llle 3 2 STM32 ST LINK utility user interface suele 4 2 1 Mall WIDdOW 0 2 5 5 ick re Su ek tapea Papa era bera ab ad 4 2 2 Menu bar MeRRRIT TTT 5 2 2 1 FilemenU eI 5 2 2 2 View menu 2 eh hr 5 2 2 3 Target mernl ever mE REIR Ex ae b Rr oR Re AUR eek 6 2 2 4 STEEINK menu ama a Rr ker ewes Re ne eee OR 7 2 2 5 Help merui nex REI ates EU ERR Ra PEE a Reb E EAR UN 7 3 STM32 ST LINK utility features eee 8 3 1 Device information icu aces hg bx bap inedh ea gree eagGedae ease 8 3 2 Memory display and modification llle 8 3
2. UMO0892 STM32 ST LINK utility user interface 2 2 2 2 1 2 2 2 Menu bar The Menu bar allows users to execute the STM32 ST LINK utility software features File menu Figure 2 File menu 38 STM32 ST LINK Utility File view Target ST LINK Open file wot Save file as T Close File Exit po0000 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 88 STM32 ST LINK Utility File View Target ST LINK f Binary File pe e Device memory f E Meni Binary file Displays the content of the loaded binary file Device memory Displays the content of the device memory Doc ID 16987 Rev 5 5 22 STM32 ST LINK utility user interface 2 2 3 6 22 Target menu UM0892 Figure 4 Target menu i STM32 ST LINK Utility File View Target ST LINK Help f Connect Disconnect Memory di Erase Chip Address Erase Banki Erase Bank2 Device Me Erase Sectors Address Program 0x080000 Program amp Verify oxoso000 Blank Hes Compare with File 0x080000 0x080000 Option Bytes oxosoo00 MCU Core 0x080000 Automatic Mode 0x0800000 stings Connect Connects to the target device and displays the Device Type Device ID and Flash size in the device information
3. write protected they will be automatically unprotected and restored after programming operation Connection to the device should be established to be able to select the option Bytes configuration using the configure button The connected devices should be derivatives of the same STM32 family and will be all connected in the same mode JTAG or SWD Doc ID 16987 Rev 5 15 22 STM32 ST LINK Utility Command Line Interface CLI UM0892 4 STM32 ST LINK Utility Command Line Interface CLI 4 1 Command Line Usage The following sections describe how to use the STM32 ST LINK Utility from the command line The ST LINK Utility Command Line Interface is located at Install_Directory GTM32 ST LINK Utility ST LINK Utility 4 1 1 Connection and memory manipulation commands Command c Syntax c JTAG SWD e g c SWD Description Connect to the device using JTAG or SWD protocols By default JTAG protocol is used Command w8 Syntax w8 Address data e g w8 0x20000000 OxAA Description This writes 8 bit data to the specified mem ory address Command w32 Syntax w32 Address data e g w32 0x20000000 OxAABBCCDD Description This writes 32 bit data to the specified memory address Command r8 Syntax r8 Address lt NumBytes gt e g r8 0x20000000 0x100 Description Read NumBytes memory 16 22 Doc ID 16987 Rev 5 ky UMO0892 STM32 ST LINK Utility Command Line Interfa
4. 3 Flash memory erase 02 0 ee 10 3 4 Device programming ssseouees eter b EE esq embed esa ke 11 3 5 Option bytes configuration sciet RR RR ERRARE EE X ees 12 3 6 MCU core functions llssseeeseeeer nn 14 3 7 Automatic mode functions sssaaa eaea 15 4 STM32 ST LINK Utility Command Line Interface CLI 16 4 1 Command Line Usage 0 0 cece tee 16 4 1 1 Connection and memory manipulation commands 16 4 1 2 Core commands sss 17 4 1 8 Flash commands soas sesana kaida 0c cece ees 18 4 1 4 Option bytes commands 0 00 cece eee res 18 5 Revision history iusso oomen Sr nn n nnn ol an 21 2 22 Doc ID 16987 Rev 5 ky UM0892 Getting started 1 1 Note 1 2 1 3 1 4 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 32MBRAM e 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 e STM32 F 1 STM32 F 2 and STM32 L 1 series e ST LINK V1 Installing the STM32 ST LINK utility
5. All parameters listed above should be in hexadecimal format 2 Formore details please refer to the Option Bytes section in the Flash programming manual corresponding to your device available at www st com q Doc ID 16987 Rev 5 UM0892 Revision history 5 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 Ee E series 3 5 Option bytes configuration and 4 1 4 Option bytes commands Hex srec format support 28 Feb 2011 5 Command Line Interfact support Changed name and all figures Added Section 3 7 Automatic mode functions Doc ID 16987 Rev 5 21 22 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 responsible for the choice selection and use of the ST products and services described herein and ST assumes no liability whatsoever relating to the choice select
6. ine ine lsa an ine na sa lan no lan ha inn no fh 5 Connected via JTAG Device ID 0x414 Device flash Size 512 Kbyte Device Family STM32F10xxx High density device Eonnected via JTAG Device 1D 0x414 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 For the STM32 F 2 series you can modify the OTP area directly from the memory data Zone Doc ID 16987 Rev 5 9 22 STM32 ST LINK utility features UM0892 3 3 Note 10 22 Flash memory erase There are two type of Flash memory erase e Flash mass erase Erase all the memory Flash sectors of the connected device This is done by clicking on the menu Target Erase Chip e Flash Sector Erase Erase the selected sector s of the Flash 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 9 Select all button selects all the Flash pages Deselect all button deselects all sectioned page Cancel button discards the erase operation even if some pages are selected Apply button erases all the selected pages Figure 9 Flash Memory Mapping dialog box Flash Memory Mapping Page Start addr Size C Page 0 Ox08000000 2K C Page 1 Ox08000800 2K C Page
7. zone Disconnect Disconnects from the target device Erase Chip Performs a Flash mass erase and then displays the Flash memory Erase Banki Erase Bank2 Erase Sectors Program Program amp Verify Blank Check Compare with file Option Bytes MCU Core content in the memory panel Erases bank 1 of the Flash memory This menu is enabled only when connected to a device containing two flash banks Erases bank 2 of the Flash memory This menu is enabled only when connected to a device containing two flash banks Selects sector s to erase using the erase sectors dialog window see Section 3 3 Flash memory erase for more details 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 Loads a binary file into the device memory Flash or RAM then performs a verification of the programmed data Verifies wether the STM32 flash is blank or not If the flash is not blank the first address with data is highlighted in a prompt message Compares the MCU device memory content with hex binary srec file Opens the Option Bytes dialog window See Section 3 5 Option bytes configuration for more details Opens the MCU Core dialog window See Section 3 6 MCU core functions for more details Doc ID 16987 Rev 5
8. 1 08000186D 080003D5 00000000 A O Oe 0x08000020 n0000000 00000000 00000000 08000269 cm Main window 0x08000030 n800018F 00000000 08000259 0800030 D Mesh 0x08000040 O80001SF 0800015F OBOODISF OBOQDISE Les ee er e 0x08000050 o800015F 0800015F 0800015F 0800015F E EN ed LORS 1 0x08000060 0800015F 0800015F 0800015F D800015F 0x08000070 0800015F 0800015F 0800015F 0800015F 0x08000080 0800015F 0800015F 0800015F D800015F UU CODD OU RH 0x08000090 0800015F 0800015F D800015F D800015F TCU nenennnnan nennmiee nonnniee nonnniee nennnsce sl gt 12 34 39 Connected via JTAG 12 34 39 Device ID 0x430 12 34 39 Device Family STM32F10xxx XL density device Status bar Konnected via JTAG Device 10 0x430 The main window is composed of three zones and three bars as illustrated in Figure 1 e 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 e Status window The status bar displays Connection status and debug interface Device ID The STM32 ST LINK utility user interface also provides additional forms and descriptive pop up error messages q 4 22 Doc ID 16987 Rev 5
9. 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 BOR LEVEL 5 Reset threshold level for 2 77 to 3 0 V voltage range For STM32 F 2 series 4 programmable VBOR thresholds can be selected BOR LEVEL 3 Supply voltage rangess from 2 70 to 3 60 V BOR LEVEL 2 Supply voltage ranges from 2 40 to 2 70 V BORLEVEL 1 Supply voltage ranges from 2 10 to 2 40 V BOR off Supply voltage ranges from 1 62 to 2 10 V 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 Doc ID 16987 Rev 5 ky UM0892 STM32 ST LINK utility features 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 Flash memory bank 1 This option is enabled only when connected to a device containing two Flash banks e User data storage option bytes Contains two bytes for user s
10. 2 Ox08001000 2K C Page 3 Ox08001800 2K C Page 4 Ox08002000 2K C Page 5 Ox08002800 2K C Page 6 Ox08003000 2K C Page Ox08003800 2K C Page 8 Ox08004000 2K C Page 3 Ox08004800 2K C Page10 Ox08005000 2K mi Note To erase the Flash data memory sector of the STM32 L 1 devices select the data memory box at the end of the list and click Apply Doc ID 16987 Rev 5 ky UM0892 STM32 ST LINK utility features 3 4 Device programming The STM32 ST LINK utility can download binary Hex or srec files 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 file dialog box as shown in Figure 10 If a binary file is already opened go to step 3 Figure 10 Open file dialog box Open Look in Exe v P E gt EE E Project hex LD F My Recent Documents c3 Desktop My Documents 98 My Computer File name Project hex x 3 Files of type Supported Files bin hex srec s19 im C Open as read only gt My Network 2 Selecta binary file and click on the Open button 3 Specify the address from which to start programming as shown in Figure 11 it may be a Flash or RAM address Figure 11 Device programming dialog box programming Download Project hex Start address Flash Programming Cancel 4 Finally c
11. 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 5 3 22 STM32 ST LINK utility user interface UM0892 2 STM32 ST LINK utility user interface 2 1 Main window Figure 1 STM32 ST LINK utility user interface main window 5 STM32 ST LINK Utility Jag Title b Fie View Target ST LINK Help itle bar gt L Menu bar Sad es Memory display Device Information Address 0x08000000 Size 0x2270 Data Width 32 bits vw Device STMSZE 1 Dex Kosdensky d DeviceID 0x430 Flash size Unknown Device Memory 0x08000000 Binary file Address o 4 8 z ASCII Ox08000000 20000460 08000145 08000243 0800023F E Coe Pave 0x08000010 0800024
12. atic mode functions Device information The Device information zone displays information as shown in Figure 7 Figure 7 Device information zone in the main user interface Device Information Device STM32F10xxx High density device Device ID 0x414 Flash size 512 Kbyte Device Family of the connected STM32 device Each MCU family includes many devices with different characteristics Flash size RAM size peripherals etc Device ID MCU device ID code located in the external PPB memory map Flash size Size of the on chip Flash memory 1 This field is not available for STM32F2xx devices Memory display and modification In addition to the Device information zone the main window contains 2 other zones e Memory display e 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 5 ky UM0892 STM32 ST LINK utility features Note 4 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
13. c C file bin 0x08002000 C file hex ras opera n Perform Load binary Intel Hex or Motorolla S record file into device memory For hex and srec for dress is relevent s commands Command rOB Syntax r Descriptio OB n Display all option bytes Command OB Syntax OB RDP lt Data0 lt Va Level gt BOR_LEV lt Level gt IWDG_SW lt Value gt nRST STOP Value nRST STDBY lt Value gt BFB2 lt Value gt lue gt Datal lt Value gt WRP lt Value gt Doc ID 16987 Rev 5 q UM0892 STM32 ST LINK Utility Command Line Interface CLI q e g OB RDP 0 IWDG SW 1 nRST STOP 0 Data0 0xAA Datal 0xBC This command line Disables Read Protection Level 0 Sets the IWDG SW to 1 Sets the nRST STOP to 0 Sets Data0 option byte Sets Datal option byte Description This cammand configures the option bytes Parameters description RDP Level Set the Flash memory read protection level Level could be one of the following levels 0 Protection disabled 1 Protection enabled 2 Protection enabled debug and boot in SRAM features are DISABLED Note Level 2 is available on available on STM32 F 2 and STM32 L 1 series only BOR LEV Level Set the Brownout Reset threshold level For STM32 L 1 series 0 BOR OFF 1 45 to 1 55 V voltage range 1 1 69 to 1 8 V volta
14. ce CLI 4 1 2 Core commands Command Rst Syntax Rst Description System reset Command Run Syntax Run lt Address gt e g Run 0x08003000 Description Set the Program Counter and Stack pointer as defined at user application and perform a run opera tion This is usefull if the user application is loaded with offset e g 0x08003000 If address is not speci fied 0x08000000 is used Command Rst Syntax Halt Description Halt core Command Step Syntax Step Description Step core Command SetBP Syntax SetBP lt Address gt e g SetBP 0x08003000 Description Set Software or hardware breakpoint at spe cific address If address is not specified 0x08000000 is used Command CIrBP Syntax ClrBP Description Clear all hardware breakpoints if any Command CoreReg Syntax CoreReg e g CoreReg Description Read Core registers q Doc ID 16987 Rev 5 17 22 STM32 ST LINK Utility Command Line Interface CLI UM0892 4 1 3 4 1 4 18 22 Command SCore Syntax SCore Description Get Core status Flash commands Command ME Syntax ME Descriptio Command Syntax S e g SE 4 Descriptio ELON Command Syntax P e gl P e g2 P e g3 P Descriptio mat the ad Option byte n Full chip erase SE E Sector index n Perform Sector Sector index P File Path lt Address gt C file sre
15. ge range 2 1 94 to 2 1 V voltage range 3 2 3 to 2 49 V voltage range 4 2 54 to 2 74V voltage range 5 2 77 to 3 0 V voltage range For STM32 F 2 series 0 BOR OFF 1 8 to 2 10 V voltage range 1 2 10 to 2 40 V voltage range 2 2 40 to 2 70 V voltage range 3 2 70 to 3 60 V voltage range IWDG SW Value Value should be be 0 or 1 0 Hardware independent watchdog 1 Software independent watchdog nRST STOP Value Value should be be 0 or 1 0 Reset generated when CPU enters the Stop mode 1 No reset generated nRST STDBY Value Value should be be 0 or 1 0 Reset generated when CPU enters the Standby mode 1 No reset generated BFB2 Value Value should be be 0 or 1 0 Boot from Flash bank 2 when boot pins are set in boot from user Flash position default 1 Boot from Flash bank 1 when boot pins are set in boot from user Flash position default Doc ID 16987 Rev 5 19 22 STM32 ST LINK Utility Command Line Interface CLI UM0892 Note 20 22 Note BFB2 is available only on devices containing two flash banks Data0 Value Set Data0 option byte lt Value gt should be in 0 0xFF Note Not available on STM32 F 2 and STM32 L 1 series Datal Value Set Datal option byte Value should be in 0 0xFF Note Not available on STM32 F 2 and STM32 L 1 series WRP lt Value gt Set the Flash write protection lt Value gt should be in 0 0xFFFFFFFF
16. 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 8 You can also save the device memory content into a binary file using the menu File Save file as Figure 8 STM32 ST LINK utility user interface 3E STM32 ST LINK Utility Joey File View Target ST LINK Help Memory display Device Information Address Ox08000000 Size 0x2270 Data Width 8bits x p amparo High density device Flash size 512 Kbyte Device Memory 0x08000000 Binary file _ __ Address Jo i 2 s Js s z Je s a Je e fe fe r sen Ox08000000 60 05 00 20 25 14 00 08 ED 18 00 08 EF 18 00 08 9 ile tos Ox08000010 F1 18 00 los F3 18 OO 08 F5 18 00 08 00 00 O00 O00 h 6 8 Ox08000020 00 00 00 00 00 00 00 00 00 00 00 00 FF 18 00 O08 INN Ox08000030 F9 18 00 08 oO OO OO OO FB 18 00 08 FD 18 00 O08 toe Ox08000040 71 14 00 08 75 1A OO 08 79 14 00 08 7D 1A 00 O08 q u y Ox08000050 81 1A 00 08 85 iad oo 08 89 1A oo jos D 14 00 jos o ee Ox08000060 91 14 00 08 95 14 OO 08 99 14 00 08 9D 14 00 08 D 0x08000070 A1 ia oo los AS 14 OO los AS 14 oo 08 AD ia 00 jos i X O Ox08000080 Bi 14 OO 08 BS 14 OO 08 B9 14 00 08 BD 1A 00 O08 t Ox08000090 FF 18 00 08 CS 14 00 08 C9 14 00 08 03 19 00 08 n o neneannnan in sa an
17. ion 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 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 prov
18. isions 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 2011 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 22 22 Doc ID 16987 Rev 5 ky
19. ky UM0892 STM32 ST LINK utility user interface 2 2 4 2 2 5 Automatic Mode Opens the Automatic mode dailog window See Section 3 7 Automatic mode functions for more details Settings Opens the Settings dialog box to select the debug interface JTAG or SWD For the STM32 F 2 series you must specify the MCU voltage range to be able to correctly program the flash memory ST LINK menu Figure 5 ST LINK menu 38 STM32 ST LINK Utility File View Target ST LINK Help L a Firmware update Firmware update Updates the ST LINK firmware to latest version V1J11S3 Help menu Figure 6 Help menu 38 STM32 ST LINK Utility File View Target ST LINK Help Li id wy 4 vcU STM32 ST Link Utility User Manual mm M ai ST Link User Manual Memory display Mr out Address ox08000000 ize 0x2270 ata Wi 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 Doc ID 16987 Rev 5 7 22 STM32 ST LINK utility features UM0892 3 3 1 3 2 8 22 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 Autom
20. lick on the Program button to start programming If you selected Target I Program amp Verify in the first step a check is done at the end of the programming operation see Figure 12 ky Doc ID 16987 Rev 5 11 22 STM32 ST LINK utility features UM0892 3 5 12 22 Figure 12 Device programming dialog box verification amp Download Project hex Start address Verification fiii Cancel Option bytes configuration The STM32 ST LINK utility can configure all the option bytes via the Option Bytes dialog box shown in Figure 13 which is accessed by Target Option Bytes The Option Bytes dialog box contains the following sections Read Out Protection Modifies the read protection state of the Flash memory For STM32 F 2 and STM32 L 1 series read protection levels are available Level 0 no 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 Brownout reset level This list contains the supply level threshold that activates releases the brownout reset This option is enabled only when connected to an ultralow an STM32 F 2 or STM32 L 1 device For STM32 L 1 series 5 programmable VBOR thresholds can be selected BOR LEVEL 1 Reset threshold level for 1 69 to 1 8 V voltage range BOR LEVEL
21. nel R1 x8000118 R8 xf Ibfff APSR 0x0 Run R2 0x0 R3 sffffefbc IPSR 0x0 R3 0 83 R10 xfi2c2000 gpsp 01000000 R4 020000918 R11 x537145b4 MSP 0 20002420 R amp 200004fc R12 Ox44400004 psp Ox56bda42c R amp x200007f8 R13 x20002420 xPsR 0x1000000 Rr 0x200007f0 R14 Ostffftttt Pc Ox200001 c Core state Halted Doc ID 16987 Rev 5 q UM0892 STM32 ST LINK utility features 3 7 Note Automatic mode functions The Automatic Mode dialog box shown in Figure 15 allows programing and configuring STM32 devices in loop It allows you to carry out the following actions on the STM32 device e Full chip erase Flash programming Verify Option bytes configuration Run application Clicking on Start button will execute the selected actions on the connected STM32 device and will wait to repeat the same actions after disconnecting the current device and connecting the new device Figure 15 Automatic mode Loud Automatic Mode File C Project hex Actions Option Bytes Full chip erase Read protection User C Flash programming Data 0 Data 1 Write protection Option bytes configuration C Run application 3 If user deselects Flash programming action while the STM32 Flash memory is readout protected it will be automatically unprotected If user deselects Flash programming action while some or all STM32 Flash memory are
22. torage These two option bytes are not available in the STM32 F 2 and STM32 L 1 series 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 Figure 13 Option Bytes dialog box Option Bytes Read Out Protection Disabled vl User Configuration option byte WwDG Sw v nRST STOP User data storage option bytes BOR Level nRST STDBY Data 0 H O FF Data 1 Hj OxFF Write Protection Page Start addr Size L Page0 008000000 2K C Page 1 Ox08000800 2K L Page2 Ox08001000 2K L Page3 Ox08001800 2K L Page4 008002000 2K L Page5 0 08002800 2K L Page6 008003000 2K ail mn 2 AAAA Unselect all Select all i For more details please refer to the Option Bytes section in the Flash programming manual available from www st com Doc ID 16987 Rev 5 13 22 STM32 ST LINK utility features UM0892 3 6 14 22 MCU core functions The Core panel dialog box shown in Figure 14 displays the Cortex M3 core register values It also allows you to carry out the following actions on the MCU using the buttons on the right e 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 14 MCU Core panel dialog box Core pa
Download Pdf Manuals
Related Search
Related Contents
Benutzerhandbuch / User Manual View - Element14 Service Manual- MF-178 Genius SlimStar S325 Product User Manual - hawkeye-52t-53t-user - Vision 取扱説明書 (anu『一m} cinderella trio Bloomfield 1040 Coffeemaker User Manual Koninklijk Besluit van 20/06/2007 FAVORIT 45020 VI1P ES Manual de instrucciones Copyright © All rights reserved.
Failed to retrieve file