Home
STM32 ST-LINK Utility software description
Contents
1. E Bureau 3 Biblioth ques Documents ka Images al Musique Subversion 28 Videos di Mm j Nom du fichier STM3210E EVAL Demo bin Supported Files bin hex sr Ouvrir Annuler 2 Selecta binary Intel Hex or Motorola S record file and click on the Open button 3 Specify the address from which to start programming as shown in Figure 16 it may be a Flash or RAM address Figure 16 Device programming dialog box programming Download 5TM3210E EVAL Demo bin Start address Ox08000000 File path gt CASTM32 EVALSSTM3210E EVAL Demo b Browse Flash memory programming and verification Reset after programming Stark Cancel 4 Finally click on the Start button to start programming If you selected Target Program amp Verify in the first step a check is done during programming operation If the Reset after programming box is checked an MCU reset will be issued The STM32 F2 and STM32 F4 series supports different programming modes depending on the MCU supply voltage When using ST LINK the MCU supply voltage should be specified Doc ID 16987 Rev 11 19 37 STM32 ST LINK Utility features UM0892 3 9 20 37 in the Target Settings Menu to be able to program the device with the correct mode When using ST LINK V2 the supply voltage is detected automatically If the device is read protected the protection will be disabled If so
2. 34 Table 3 DOCUMENT revision NISTO stra EERS MS piratis EE beeen eed egy ceaee tone ees 35 4 37 Doc ID 16987 Rev 11 OT UM0892 List of figures List of figures Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 Figure 6 Figure 7 Figure 8 Figure 9 Figure 10 Figure 11 Figure 12 Figure 13 Figure 14 Figure 15 Figure 16 Figure 17 Figure 18 Figure 19 Figure 20 STM32 ST LINK Utility user interface main window 0 00 eee 7 al dn n OR Get KAHA LNG para WANG EE NE BAE ADAN ANT Bah Ee ee EE ee AG 9 Bells AA AA PAA 9 WICW MEN 25 a amar aa aha HUANG RAMA oh eee EE ee ee eee oes N IG 10 LAKE MENU TART EE OS EE EE EE EE IE EN EE GRAN KNA NA MA 10 STLINK MENU ss ac eee EED OE ER BREED AE EE ac EE BE DIE Ee A 12 External Loader MENU ud 4eucuden Gee does Saeed HERDER ee OD RD eos Gee 12 External Loader window SEE cece ee eee eee es es es 13 External Loader SUDMENUS 0 a 13 External memory grid anaana SE SE SE ss Se es se EE es es Es ese Ee ee 14 Bles op ie EE N OE OE EE EET HOE EN HE ER OE N tad 15 Device information zone in the main user interface 0a 16 STM32 ST LINK Utility user interface ees 17 Flash Memory Mapping dialog box eee eens 18 Openitile dialog box amak maa GAN debe SEER OUER DER MA NG DEON HE Be EE 19 Device programming dialog box programming 0 000 eee ees 19 Option Byles dialog DOK 22 sie KEER SEE DA N HEER ade sete
3. CT UM0892 YI User manual April 2013 STM32 ST LINK Utility software description Introduction The STM32 ST LINK Utility software facilitates fast in system programming of the STM32 microcontroller families in development environments via the tools ST LINK and ST LINK V2 This is the STM32 ST LINK Utility user manual describing its software functions When working with the STM32 ST LINK Utility you are encouraged to download the ST LINK in circuit debugger programmer user manual UM0627 or the ST LINK V2 in circuit debugger programmer user manual UM1075 for the STM8 and STM32 which provide more information about the ST LINK tools Table 1 Applicable tools Development tools ST LINK ST LINK V2 Doc ID 16987 Rev 11 1 37 www st com Contents UM0892 Contents 1 CAP starled sai EER AA AA 6 1 1 System requirements cc ee ees 6 1 2 Hardware requirements cc ee ees 6 1 3 Installing the STM32 ST LINK Utility aa 6 1 4 Uninstalling the STM32 ST LINK Utility SE SS Es se ee 6 2 STM32 ST LINK Utility user interface 0 an 7 2 1 WANT WINGOW PA PAPA 7 2 2 Menu bar AA AA AA ae 9 2 2 1 PIE MONU agawang a cin POPULAR EE EO eee eee ed 9 2 2 2 EGU MENU PAP PP PAA 9 2 2 3 View MENU SE SE SE SE SE SE ES EE es EE Ee ee EE es ese es 10 2 2 4 Tardet MENU iss ss EER EE BAG MO KIA ARE DAARS TEKA RONDE wad 10 2 2 5 OFLINKIMEND 24266 onvas speke Paa DE whe po e aa E a 12 2 2
4. Values WRP2 lt Value gt WRP3 lt Value gt Example OB RDP 0 IWDG SW 1 nRST STOP 0 Data0 0xZ2A Datal 0xBC Option byte command parameter descriptions RDP lt Level gt RDP lt Level gt sets the Flash memory read protection level The lt Level gt 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 STM32 FO STM32 F2 STM32 F3 STM32 F4 and STM32 L1 series only BOR_LEV lt Level gt BOR_LEV sets the Brownout Reset threshold level For STM32 L1 series 0 BOR OFF 1 45 to 1 55 V voltage range 1 1 69 to 1 8 V voltage range 2 1 94 to 2 1 V voltage range 3 2 3 to 2 49 V voltage range 4 2 54 to 2 74 V voltage range 5 2 77 to 3 0 V voltage range For STM32 F2 and STM32 F4 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 sValue The sValue should be 0 or 1 0 Hardware independent watchdog 1 Software independent watchdog 30 37 Doc ID 16987 Rev 11 ky UM0892 Note Note Note Note STM32 ST LINK Utility command line interface CLI nRST STOP lt Value gt The lt Value gt should be O or 1 0 Reset generated when CPU enters the Stop mode 1 No reset generated nRST STDBY lt Value gt The lt Value gt should be O or 1 0 Reset generated when CPU ente
5. ST LINK V2 User Manual About Displays STM32 ST LINK Utility software version and copyright information Doc ID 16987 Rev 11 15 37 STM32 ST LINK Utility features UM0892 3 3 1 3 2 16 37 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 Automatic mode functions Device information The Device information zone displays information as shown in Figure 12 Figure 12 Device information zone in the main user interface Device Information Device STM S2F 10xxx High density device Device ID 0x414 Revision ID Rey 2 Flash size 517 Kbyte Family of the connected STM32 device Each device type includes many Device devices with different characteristics such as Flash memory size RAM size and peripherals Device ID MCU device ID code located in the external PPB memory map Revision ID The revision ID of the connected MCU device Flash size Size of the on chip Flash memory Memory display and modification In addition to the 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
6. VA STM32 ST LINK Utility Ter ad F MP CET jal File Edit View Target ST UNK External Loader Help ry ae Add External Loader Ad UE IS6LWV51216BLL_STM3210E EVAL E i ETER pe i im Ta eh m M25P64_STM3210E EVAL Mass Erase Memory display Address Dx08000000 Size a sd M29W128GL STM3210E EVAL gt Sector Erase Device Memory File STM3210E EVAL_I Close external memory grid Program STM3210E EVAL Demo bin File size 228060 Bytes Read py a The contents of the external memory is displayed in the External Memory grid see Figure 10 External memory grid Selecting the Close external memory grid submenu shuts down the External Memory grid window Doc ID 16987 Rev 11 13 37 d STM32 ST LINK Utility user interface Note 14 37 Figure 10 External memory grid EN NE 8 STM32 5T File Edit View Target ST LINK External Loader Help old GPs BT Memory display Address Ox68000000 Size Ox00010000 Device Memory File STM3210E EVAL Demo bin External Memory Ox68000000 Data Width bits External memory Address range 0x68000000 0x580 10000 Address 0x68000000 0x68000010 0x68000020 0x68000030 0 DA 5A C3 71 AB 19 Ad 02 Fa 1 AF E4 ES Ba DF 97 04 5D By 3 DE 2F 32 25 61 Al 3B 96 TE 3 4 1A C2 C3 11 58 3C CB B8 11 5 56 CA 44 51 2A 32
7. d Revision history Revision history Table 3 Document revision history MIN Gaga EIE E MM srec format support 03 Feb 2014 Command Line Interface support Changed name and all figures Added Section 3 7 Automatic mode functions Added ST LINK V2 support in Section 1 2 Hardware requirements and support of different programming modes for STM32 01 Aug 2011 series in Section 3 4 Device programming and Section 4 1 3 Flash commands Added MCU revision ID Display in Section 3 1 Device information Added support of STM32W and STM32 F4 throughout the document Added support of Connect under reset option in Section 2 2 4 Target menu Replaced Figure 18 MCU Core panel dialog box Updated Flash with modifications in Section 3 2 Memory display and 18 Oct 2011 7 modification via GUI commands and in Section 4 1 1 Connection and memory manipulation commands via CLI commands Added HardRst command in CLI mode in Section 4 1 2 Core commands Added WRP2 and WRP3 for STM32 L1 high density devices in Option byte command parameter descriptions Added support of STM32 FO Added Table 1 Applicable tools Replaced Figure 1 Figure 13 Figure 16 Figure 17 and Figure 19 Added note for JTAG mode in Section 2 2 4 Target menu 11 May 2012 Added nBoot1 VDDA and nSRAM_Parity commands in Option byte command parameter descriptions Updated connect under reset option in Section 2 2 4 Target menu Updated c command and ad
8. erases all the selected pages Figure 14 Flash Memory Mapping dialog box Flash Memory Mapping Page Start addr Size C Page O C Page 1 Page Page 3 C Page 4 C Page 5 Page 6 C Page C Page 8 Page 9 Page 10 Ox08000000 Ox08000800 Ox08001 000 Ox08001 800 Ox08002000 Ox08002800 Ox0800 3000 Ox08003800 Ox08004000 Ox08004800 O08005000 ek ek ek ek ek 2k 2k Select all Unselect all Apple To erase the Flash data memory sector of the ultralow power STM32 L1 devices select the data memory box at the end of the list and click Apply g Doc ID 16987 Rev 11 UM0892 3 4 Note d STM32 ST LINK Utility features 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 to verify the written data to open the Open file dialog box as shown in Figure 15 If a binary file is already opened go to step 3 Figure 15 Open file dialog box E Ouvrir s e Gu Ji gt Ordinateur OSDisk C STM32 EVAL Organiser Nouveau dossier pr ag Nom Modifi le sr Favoris BO Bureau A E STM32F207 EVAL hex 04 01 2011 12 17 Fichier HEX E Emplacements r STM3210E EVAL Demo bin 01 07 201111 40 Fichier BIN d T l chargements STM32100E EVAL Demo srec 07 02 2011 17 17 Fichier SREC
9. sent from the target through SWO It allows to display some useful information on the running firmware Before starting receiving SWO data the user has to specify the exact target system clock frequency to allow the tool to correctly configure the ST LINK and the target for the correct SWO frequency The Stimulus port combo box allows the user to choose either a given ITM Stimulus port from port O to 31 or to receive data from all ITM Stimulus ports simultaneously Figure 20 Serial Wire Viewer window SWV E Serial Wire Viewer Settings System dock Hz 168000000 Stimulus port All SWV Frequency 2000 KHz ITM Stimulus port All Status Stopped Printf data number 12583 0 gt Printf data on port 0 O gt Printf data on port 1 O gt Printf data on port 2 O gt Printf data on port 3 O gt Printf data on port 4 0 gt Printf data on port 5 0 gt Printf data on port 6 0 gt Printf data on port 7 0 gt Printf data on port al 0 gt Printf data on port 9 0 gt Printf data on port 10 0 gt Printf data on port 11 0 gt Printf data on port 12 O gt Printf data on port 13 0 gt Printf data on port 14 The SWV information bar displays useful information on the current SWV transfer such as the SWO frequency deduced from the system clock frequency and the received expressed in bytes Some SWV bytes could be lost during transfer due to ST LINK hardware buffer size limitation Doc ID 16987 Rev 11 25 3
10. to an XL density device Erases bank 2 of the Flash memory This menu is enabled only when connected to an XL density device Selects sector s to erase using the erase sectors dialog window see Section 3 3 Flash memory erase for more details Loads a binary Intel Hex or Motorola S record file into the device memory Flash or RAM To do this select a binary Intel Hex or Motorola S record 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 Intel Hex or Motorola S record file into the device memory Flash or RAM then performs a verification of the programmed data Verifies that the STM32 Flash memory is blank If the Flash memory is not blank the first address with data is highlighted in a prompt message Compares the MCU device memory content with a binary hex or srec file The difference is colored in red in the file panel 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 Opens the Automatic mode dialog window See Section 3 7 Automatic mode functions for more details Opens the Settings dialog box to select the debug interface JTAG or SWD The connect under reset option allows you to connect to the target before executing any instruction
11. 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 52 49 STM3210E EVAL Demo bin opened successfully 55 S LINK Firmware version V2 1554 Connected via SWD Connetion mode HotPlug 52 55 Device ID 0x430 52 55 Device flash Size IMBytes 52 55 Device family 5TM32F 10x XL density 09 53 05 Flash memory programmed in 2s and 231ms 09 53 05 Verification OK onnetion mode HotPlug 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 F2 and STM32 F4 devices you can modify the OTP area directly from the memory data zone Doc ID 16987 Rev 11 17 37 STM32 ST LINK Utility features UM0892 3 3 Note 18 37 Flash memory erase There are two types of Flash memory erase Flash mass erase Erase all the memory Flash memory 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 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 14 Select all button selects all the Flash memory pages Deselect all button deselects all selected page Cancel button discards the erase operation even if some pages are selected Apply button
12. 1308 pgp Ox200073d8 Core State Halted pe Ox8036f26 Read Core Reg System Rezet Core Reset Note The PC and MSP registers can be modified from this panel Doc ID 16987 Rev 11 23 37 d STM32 ST LINK Utility features UM0892 3 7 Note 3 8 24 37 Automatic mode functions The Automatic Mode dialog box shown in Figure 19 allows programing and configuring STM32 devices in loop It allows you to carry out the following actions on the STM32 device Full chip erase Flash programming Verify Option bytes configuration Run application Clicking on the 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 19 Automatic mode Automatic Mode File C STM32 EVAL STM3210E EVAL_Demo bin Browse Actions Full chip erase Flash programming 4 Verify Option bytes configuration Configure Run application If the user deselects Flash programming action while the STM32 Flash memory is readout protected it will be automatically unprotected If the user deselects Flash programming action while some or all STM32 Flash memory are 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 con
13. 6 External Loader menu 0 0 ccc ee eee 12 2 2 7 FEED MCN asaan EE R GMA nee Oe obser eee Pew AGAD GAAN EE N 15 3 STM32 ST LINK Utility features 0 ks Res RE RE ees 16 3 1 Device information a 16 3 2 Memory display and modification cee eee eee 16 3 3 Flash memory erase eee ees 18 3 4 Device programming ES SEE EE eee eens 19 3 5 Option bytes configuration eee 20 3 6 MCU core functions ee eens 23 3 7 Automatic mode functions a 24 3 8 Developing custom loaders for external memory 24 3 9 Printf via SWO Viewer 0 25 4 STM32 ST LINK Utility command line interface CLI 26 4 1 Command line usage EE SE eee 26 4 1 1 Connection and memory manipulation commands 26 4 1 2 Core COMMANGS AA AE AE EE nee dake HE N NG LA 27 4 1 3 DERE eN EER tc aye Gm OE oo eae NAWA TAGA DANGWA 28 2 37 Doc ID 16987 Rev 11 ky UM0892 Contents 4 1 4 Option byte commands 0 00 eee eee ees 29 4 1 5 External memory command 0 0 00 eee eee eee 33 4 1 6 ST LINK CLI return codes ee eee 34 5 Revision history Kaanak Eb be EREE KEER EER NA SD EE vases kk KNA NGA 35 Of Doc ID 16987 Rev 11 3 37 List of tables UM0892 List of tables Table 1 AUDIICADIC1OOIS 6 Ka kawawa Dama NA ATA MAD RR ERG ee NAE eed cee Dh LANANG DEE eee 1 Table 2 ST LINK CLI return codes 2 aaa
14. 7 STM32 ST LINK Utility command line interface CLI UM0892 4 4 1 Note Note Note 26 37 STM32 ST LINK Utility command line interface CLI 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 the following address Install Directory ISTM32 ST LINK Utility ST LINK Utility S T LINK_CLI exe Connection and memory manipulation commands C Description Selects JTAG or SWD communication protocol By default JTAG protocol is used Syntax c JTAG SWD UR HOTPLUG UR Connect to target under reset HOTPLUG Connect to target without halt or reset Example c SWD UR UR available only with ST LINK V2 and in SWD mode For JTAG mode connect under reset is available since ST LINK firmware Version V2J15Sx The RESET pin of the JTAG connector pin 15 should be connected to the device reset pin HOTPLUG available in SWD mode For JTAG mode HotPlug Connect has been available since ST LINK firmware Version V2J15Sx Q Description Enable quiet mode No progress bar displayed w8 Description Writes 8 bit data to the specified memory address Syntax w8 lt Address gt lt data gt Example w8 0x20000000 OxAA w8 supports writing to Flash memory OTP SRAM and R W registers w32 Description Writes 32 bit data to the specified memory address Syntax w32 lt Address gt lt data g
15. DA Power source If checked VDDA power supply supervisor is enabled otherwise it is disabled VDDA is available only on STM32 FO and STM32 F3 nSRAM_Parity This bit allows the user to enable the SRAM hardware parity check If checked SRAM parity check is disabled otherwise it is enabled NSRAM_Parity is available only on STM32 FO and STM32 Fa SDADC12 VDD Monitor If checked SDADC12 VDD power supply supervisor is enabled otherwise it is disabled SDADC12 VDD Monitor is available only on STM32F37x User data storage option bytes Contains two bytes for user storage These two option bytes are not available in the STM32 FO STM32 F2 STM32 F3 STM32 F4 and STM32 L1 devices Flash Sectors Protection Depending on the connected device Flash sectors are grouped by a defined number of pages You can modify the write protection of each Flash sector here For devices supporting PCRop feature it is possible to enable disable the Read protection of each sector The Flash protection mode allows you to choose between read or write protection Doc ID 16987 Rev 11 21 37 STM32 ST LINK Utility features Option Bytes Read Out Protection Disabled Figure 17 Option Bytes dialog box User configuration option byte W WDG Su ARST STOF BOR Level OFF W nRST_STDEY W nBFB User data storage option bytes Data 0 H OxFF Flash sectors protection Page V Page 0 V Page 1 W Page 2 V Page 3
16. EF 26 1F 6 T E3 34 TA EB AB 1F EE Da 5E STM3210EF EVAL Demo bin opened successfully STINK Firmware version V2 1554 Connected via SWD Connetion mode Connect Under Reset 145 Device ID 0x430 145 Device flash Size IMBytes 13 45 Device family 5TM32F 10x XL density onneton mode Connect Under Reset Only 10 external loaders can be selected at the same time Device IO 0x430 Device Device ID Revision ID Flash size STM32F 10x XL density Ox430 Ua V ae E ZElTAAA44 C Ae2 ADfiz7 LU g GAEKGYG BaP ic qi2F i0c2H w H EiXi Xw 1 amp i9 8 7 BEA NE I Core State Live Update Disabled UM0892 The external memories connected to the STM32 MCU via FSMC can be accessed automatically through the Device Memory Grid if the corresponding external loader has already been added by using the Add External Loader submenu Doc ID 16987 Rev 11 g UM0892 2 2 7 d STM32 ST LINK Utility user interface Help menu Figure 11 Help menu z 8 STM32 ST LINK Utility File Edit View Target ST LINK External Loader Ka T g dk P A b gt pm STM32 ST LINK Utility User Manual Memory display ST LINK User Manual Address Ox08000000 Size Ox000000500 5T LINK V2 User Manual STM32 ST LINK Utility User Manual Opens the STM32 ST LINK Utility User Manual ST LINK User Manual Opens the ST LINK User Manual ST LINK V2 User Manual Opens the
17. EING INTENDED FOR AUTOMOTIVE AUTOMOTIVE SAFETY OR MEDICAL INDUSTRY DOMAINS ACCORDING TO ST PRODUCT DESIGN SPECIFICATIONS PRODUCTS FORMALLY ESCC QML OR JAN QUALIFIED ARE DEEMED SUITABLE FOR USE IN AEROSPACE BY THE CORRESPONDING GOVERNMENTAL AGENCY 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 2013 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 Of Doc ID 16987 Rev 11 37 87
18. KA ote REDE DEE 22 MCU Core panel dialog DOX 1 eee eee eens 23 AUIOMAIC MODE 22769252 AA KAKA bee Share EE EE N EE EE EE N 24 Serial Wire Viewer window SWV ESE SS ee eee eee 25 Doc ID 16987 Rev 11 5 37 Getting started UM0892 1 1 1 1 2 Note 1 3 1 4 6 37 Getting started This section describes the requirements and procedures to install the STM32 ST LINK Utility software System requirements The STM32 ST LINK Utility PC configuration requires as a minimum PC with USB port and Intel Pentium processor running a 32 bit version of one of the following Microsoft operating systems Windows XP Windows 7 256 Mbytes of RAM 30 Mbytes of hard disk space available Hardware requirements The STM32 ST LINK Utility is designed to work with STM22 FO STM32 F1 STM32 F2 STM32 F3 STM32 F4 STM32 L1 and STM32W series ST LINK or ST LINK V2 or ST LINK V2 ISOL in circuit debugger programmer probe In this document ST LINK V2 refer to ST LINK V2 and ST LINK V2 ISOL which are functionally equivalent Installing the STM32 ST LINK Utility 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
19. P2 is available only for STM32 L1 medium density plus and high density devices to enable disable the protection of Flash sectors from page 512 to 1023 The lt Value gt should be in 0 0xFFFFFFFF For devices supporting PCRop feature WRP controls the read protection of the MCU Flash sectors when SPRMOD 1 WRP3 lt Value gt WRP3 is available only for STM32 L1 high density devices to enable disable the protection of Flash sectors from page 1024 to 1535 The Values should be in 0 0XFFFFFFFF All parameters listed above should be in hexadecimal format For more details please refer to the Option Bytes section in the Flash programming manual corresponding to your device available at www st com External memory command EL Description Selects a Custom Flash memory loader for external memory operations Syntax EL lt loader_File_Path gt Example P c application hex EL c Custom Flash Loader stldr Doc ID 16987 Rev 11 33 37 STM32 ST LINK Utility command line interface CLI UM0892 4 1 6 34 37 ST LINK_CLI return codes In case of error while executing ST LINK_CLI commands the return code Errorlevel will be greater than O The following table summarizes the ST LINK CLI return codes Table 2 ST LINK CLI return codes pu ca commanss B rst e HardRst Cannot reset MCU Sana To STEP Faestoperorma snge vsructonse Oe Se opion yes progammi g Doc ID 16987 Rev 11 UM0892 5
20. Page 4 Page 5 Page 6 C Page 7 Page 8 Page 3 Page 10 Start address Ox08000000 Ox 08000800 008001000 002001200 008002000 002002500 O0800 3000 Og0800 3800 O02004000 Ox08004800 Ox08005000 Data 1 Hy UxFF Protection Write Protection Write Protection Write Protection Write Protection No Protection Mo Protection No Protection No Protection Ho Protection No Protection Mo Protection UM0892 F Select all Apply Cancel For more details please refer to the Option Bytes section in the Flash programming manual and reference manual available from www st com g 22 37 Doc ID 16987 Rev 11 UM0892 STM32 ST LINK Utility features 3 6 MCU core functions The Core panel dialog box shown in Figure 18 displays the Cortex M M3 core register values It also allows you to carry out the following actions on the MCU using the buttons on the right Run Run the core Halt Halt the core System Reset Send a system reset request Core Reset Reset the core Step Execute only one step core instruction Read Core Reg Update the core registers values Figure 18 MCU Core panel dialog box Core panel Ro 040023800 AP Ova6bddb78 pig Ows Bu R1 x200D2278 Ag OsfOfeabfd APSA 0x0 R2 o Ox25b1 Rs OMOcaB7iE pgp 03 R3 0x0 Rio Osfedddfet epsp 01000000 Ra Dwbcezid33 p11 Os79f7fidt XPSA 01000003 RE Owdcdi7btf Riz x dbbb396 pop Oxfd b3cc step RE OMBeBbe7f piz Dx2000
21. Target menu External Memory Displays the content of the loaded binary file Displays the content of the device memory Displays the content of the external memory NG STM32 ST LINK Utility ww a E ae File Edit View Target ST LINK External Loader Help Hd Memory display Address 0x080 Device Memory 5TM32720G EVAL bi Address O Ox00000000 0x00000010 0x00000020 0x00000030 0x00000040 0x00000050 4 17 18 33 Connetio 17 18 34 Device ID 17 18 34 Device AL 10 87 Connect Disconnect CTRL D Erase Chip CTRL E Erase Bankl Erase Bank2 Erase Sectors Program Program amp Verify CTRL P Blank Check Compare device memory with STM3220G EVAL bin Option Bytes CTRL B MCU Core Automatic Mode Settings CTRL 5 Doc ID 16987 Rev 11 g UM0892 d Connect Disconnect Erase Chip Erase Bank1 Erase Bank2 Erase Sectors Program Program amp Verify Blank Check Compare device memory with file Option Bytes MCU Core Automatic Mode Settings STM32 ST LINK Utility user interface Connects to the target device and displays the Device Type Device ID and Flash memory size in the device information zone Disconnects from the target device Performs a Flash memory mass erase and then displays the Flash memory content in the memory panel Erases bank 1 of the Flash memory This menu is enabled only when connected
22. This is useful in many cases like when the target contains a code that disables the JTAG SWD pins The HotPlug option allows you to connect to the target without halt or reset This is useful to update RAM addresses or IP registers while application is running When connecting to the target via an ST LINK V2 the Supply voltage combo box displays the target voltage When connecting to an STM32 F2 or STM32 F4 device using an ST LINK the Supply voltage combo allows you to select the supply voltage of your target to be able to correctly program the Flash memory Doc ID 16987 Rev 11 11 37 STM32 ST LINK Utility user interface UM0892 Note 2 2 5 2 2 6 12 37 The connect under reset option is available only with ST LINK V2 and in SWD mode For JTAG mode connect under reset is available since ST LINK V2 firmware Version V2J15Sx The RESET pin of the JTAG connector pin 15 should be connected to the device reset pin The HotPlug option is available in SWD mode For JTAG mode HotPlug has been available since ST LINK firmware Version V2J15Sx ST LINK menu Figure 6 ST LINK menu 82 STM32 ST LINK Utility File Edit View Target 5T LINK External Loader Help ka Li Pi GE G Firmware update Printf via 5WO viewer Memory display Displays the version of ST LINK and ST LINK V2 firmware and updates it to the last version ST LINK V1J13S3 ST LINK V2 V2J17S4 Firmware update D
23. bit 16 bit or 32 bit g Doc ID 16987 Rev 11 UM0892 Note d STM32 ST LINK Utility features Memory data This zone displays the data read from a file or the memory content of a connected device You can modify the content of the file before downloading To use this zone to display the content of a binary Intel Hex or Motorola S record file go to File Open file 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 After reading data you can also modify each value merely by double clicking on the concerned cell as illustrated by Figure 13 You can also save the device memory content into a binary Intel Hex or Motorola S record file using the menu File Save file as When LiveUpdate feature is used the device memory grid will be updated in real time and the data that have been modified will be colored in red Figure 13 STM32 ST LINK Utility user interface E STM32 ST LINK Utility File Edit View Target ST LINK External Loader Help Sd bara E Memory display Device Information Device STM32F 10x XL density Device ID Ox430 Revision ID Device Memory 0x08000000 File STM3210E EVAL_Demo bin External memory Flash size Target memory Address range 0x08000000 0x08005900 Address Ox08000000 w Size Ox5900 Data Width bits w 28882828 2 8 8 7 s 83838382888 838 00 00
24. ded Q command in Section 4 1 1 Connection and memory manipulation commands Added Section 4 1 6 ST LINK CLI return codes Doc ID 16987 Rev 11 35 37 Revision history UM0892 Table 3 Document revision history continued owe mee BE Added support of STM32F050 STM32 Fa STM32L medium density plus Added Compare two files in Section 2 2 1 File menu and replaced Figure 2 Replaced Figure 5 Added Reset after programming option in Section 3 4 Device programming and replaced Figure 15 to Figure 13 05 Oct 2012 Added SPRMOD command in Section 4 1 4 Option byte commands Updated Flash sector protection in Section 3 5 Option bytes configuration and replaced Figure 17 In Section 3 6 MCU core functions replaced Figure 18 Updated WRPx commands in section Section 4 1 4 Option byte commands Fixed typos Updated Section 1 1 System requirements Updated Section 2 1 Main window including Figure 1 STM32 ST LINK Utility user interface main window LiveUpdate checkbox and Edit menu Updated Figure 2 Added Section 2 2 2 Edit Menu including Figure 3 Edit menu Updated Figure 4 Hanan 10 Updated abi 2 2 4 Target menu nauging Pigura 5 Updated Section 2 2 5 ST LINK menu including Figure 6 Updated Figure 11 Updated Section 3 2 Memory display and modification inlcuding Figure 13 Updated Section 4 1 Command line usage HotPlug Added SPRMOD lt Value gt in the syntax of OB command see Secti
25. ed successfully ST LINK Firmware version V2 1554 Connected via SWD Connetion mode Connect Under Reset Device ID 0x430 Device flash Size IMBytes Device family STM32F 10x XL density Status bar MS31217V2 Doc ID 16987 Rev 11 7 37 d STM32 ST LINK Utility user interface UM0892 8 37 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 LiveUpdate checkbox to update Memory data in real time This feature is described in more detail in Section 3 2 Title bar name of the current menu Menu bar Use the menu bar to access the following STM32 ST LINK Utility functions File menu Edit menu View menu Target menu Help menu These menus are described in more detail in Section 2 2 Status window The status bar displays Connection status and debug interface Device ID Core State active only when LiveUpdate feature is active and memory grid is selected The STM32 ST LINK Utility user interface also provides additional forms and descriptive pop up error messages Doc ID 16987 Rev 11 ky UM0892 STM32 ST LINK Utility user interface 2 2 Menu bar The Menu bar allows users to execute the STM32 ST LINK Utility software features 2 2 1 File menu Figure2 File menu 1 STM32 ST LINK Utility Pani Edit View 5T LINK External Loader Open fi
26. ered V Description Verifies that the programming operation was performed successfully Syntax V Example P C file srec sy CmpFile Description Compares a binary Intel Hex or Motorola S record file with device memory and displays the address of the 1st different value Syntax CmpFile lt File_Path gt lt Address gt Example1 CmpFile c application bin OxO8000000 Example2 CmpFile c Napplication hex You can also compare the file content with an external memory The path of the exetrnal memory loader should be specfied by the EL cmd Example1 CmpFile c application bin 0x64000000 EL c Custom Flash Loader stldr Option byte commands rOB Description Displays all option bytes Syntax rOB OB Description Configures the option bytes This command sets the Read Protection Level to Level O no protection sets the IWDG_SW option to 1 watchdog enabled by software sets the nRST_STOP option to 0 reset generated when entering Standby mode sets the Data0 option byte sets the Data1 option byte Doc ID 16987 Rev 11 29 37 STM32 ST LINK Utility command line interface CLI UM0892 Syntax OB RDP lt Level gt BOR LEV lt Level gt IWDG SW sValue nRST STOP lt Value gt nRST STDBY lt Value gt nBFB2 lt Value gt nBoot1l lt Value gt ASRAM Parity lt Value gt Data0 lt Value gt SPRMOD lt Value gt E Datal lt Value gt WRP
27. figure button The connected devices should be derivatives of the same STM32 family and will be all connected in the same mode JTAG or SWD Developing custom loaders for external memory The users can develop their own custom loaders for a given external memory using examples available under the ExternalLoader directory These examples are available for three toolchains MDK ARM EWARM and TrueSTUDIO The development of the custom loaders can be performed using one of the three toolchains keeping the same compiler linker configurations as the examples Doc ID 16987 Rev 11 ky UM0892 Note Note d STM32 ST LINK Utility features TO create a new external memory loader follow the steps below 1 Update the device information in Storagelnfo structure in the Dev Inf c file with the correct information concerning the external memory 2 Rewrite the corresponding functions code in the Loader Src c file 3 Change the output file name Some functions are mandatory and cannot be omitted see functions description in the Loader Src c file Linker or scatter files should not be modified The Loader Src c functions must always return 1 when the operation succeeded or 0 if it failed After building the external loader project the output file extension must be changed to stldr and the file must be copied under ExternalLoader directory Printf via SWO Viewer The Printf via SWO Viewer displays the printf data
28. isplays printf data sent from target via SWO see eres Wawel Section 3 9 Printf via SWO Viewer for more details External Loader menu Figure 7 External Loader menu GB STM32 ST LINK Utility File Edit View Target ST LINK External Loader Help kA Li as dT P A j Add External Loader The STM32 ST LINK Utility includes the Add External Loader submenu which allows to select the external loaders to be used by the ST LINK Utility to read program or erase external memories The external loaders must be added in the ExternalLoader directory located under the ST LINK Utility directory see Section 3 8 Developing custom loaders for external memory for more details on how to create a custom loader g Doc ID 16987 Rev 11 UM0892 STM32 ST LINK Utility user interface Figure 8 External Loader window Add External Loader o om Device Name Device Type Start Address Device Size T IS5IWV512166LL STM3210E EVAL Static Ram Ox68000000 64K Bytes CT M25P64 STM3210E EVAL Spi Flash Dx00000000 SMBytes F M29W1286L_5TM3210E VAL Mor Flash Ox64000000 16MBytes When the external loaders have been selected in the External Loader dialog box see Figure 8 External Loader window new submenus are displayed one per each external loader selected They offer all the functions Program Sector Erase available in the corresponding external loader see Figure 9 External Loader submenus Figure 9 External Loader submenus p a
29. le CTRL O Save file as CTRL Close File Compare TM3220G EVAL bin with another file Exit Open file Opens a binary Intel Hex or Motorola S record Saves the content of the memory panel into a binary Intel Hex or Motorola S Save file as record Close File Closes the loaded file Compares two binary hex or srec files The difference is colored in red in the file Compare two files panel If a file contains a section with an address range that is unavailable in the other file this section will be colored in violet Exit Closes the STM32 ST LINK Utility program 2 2 2 Edit Menu Figure 3 Edit menu W132 ST LINK Utility File Edit View Target ST LINK E Ctrl x Ctrl C Ctrl V Delete Del Dev Find Data Ctrl F md ee ST Fill Memory Ctrl M Cut Cut the selected cells on file or memory grid Copy Copy selected cells on file or memory grid Paste Paste the copied cells in the selected position in file or memory grid Delete Delete the selected cells on file or memory grid Find Data Find data in binary or Hex format in file or memory grid ky Doc ID 16987 Rev 11 9 37 STM32 ST LINK Utility user interface Fill Memory add paa 2 2 3 View menu Figure 4 View menu EB STM32 ST LINK Utility ad NG Binary File Device Memory UM0892 Fill file or memory grid with the chosen data starting from the chosen Binary file Device memory External memory 2 2 4 Target menu Figure 5
30. me Flash memory pages are write protected the protection will be disabled during programming and then recovered Option bytes configuration The STM32 ST LINK Utility can configure all the option bytes via the Option Bytes dialog box shown in Figure 17 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 FO STM32 F2 STM32 F3 STM32 F4 and STM32 L1 devices 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 the STM32 L1 STM32 F2 and STM32 F4 device For ultralow power devices 5 programmable VBOR thresholds can be selected BOR LEVEL 1 Reset threshold level for 1 69 to 1 8 V voltage range BORLEVEL 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 For STM32 F2 and STM32 F4 devices 4 prog
31. on 4 1 4 Replaces all occurrences of BFB2 by nBFB2 Updated Figure 1 STM32 ST LINK Utility user interface main window Figure 2 File menu Added external memory in Section 2 2 3 View menu Added printf data in Section 2 2 5 ST LINK menu Added Section 2 2 6 External Loader menu Updated Figure 11 Help menu Figure 13 STM32 ST LINK Utility 29 Apr 2013 14 user interface Figure 15 Open file dialog box Figure 17 Option Bytes dialog box Figure 18 MCU Core panel dialog box and Figure 19 Automatic mode Added Section 3 8 Developing custom loaders for external memory and Section 3 9 Printf via SWO Viewer Added CmpFile in Section 4 1 3 Flash commands Added Section 4 1 5 External memory command Updated disclaimer on last page 36 37 Doc ID 16987 Rev 11 x 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 selection or use of the ST products and services described herein No licen
32. 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 11 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 CUT a TT Title b ar gt File Edit View Target ST LINK ExternalLoader Help Menu bar ld GEPAY Bw Memory display Address 0x08000000 w Size 0x5900 Data Width 8 bits v STM32F 10x XL density 0x430 Device Memory 0x08000000 File STM3210E EVAL Demo bin External memory Target memory Address range 0x08000000 0x08005900 Address Boe ee ee eee 0x08000000 00 14 00 18 03 0x08000010 29 6F 03 6F 03 0x08000020 00 00 00 00 00 00 00 03 7B 03 78 03 78 03 IC 03 co lo A 03 03 00 03 03 03 03 03 03 0x08000030 2F 6F 03 Main window loas GE o Af CEEE f x 0 B NOO PO PG i 6 0f F7f 0x08000050 D3 7B 03 E3 7B 03 F3 7B 03 03 7C 03 eeaeee 2288 8 amp 8 88 amp 2 2288 88 BS a BP STM3210E EVAL_Demo bin open
33. rammable VBOR thresholds can be selected BOR LEVEL 3 Supply voltage ranges from 2 70 to 3 60 V BOR LEVEL 2 Supply voltage ranges from 2 40 to 2 70 V BOR LEVEL 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 the watchdog is enabled by software Otherwise it is automatically enabled at power on nRST_STOP If not checked a 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 nBFBz2 If not checked and if the boot pins are set to make the device boot from the user Flash at startup the device boots from Flash memory bank 2 otherwise Doc ID 16987 Rev 11 ky UM0892 STM32 ST LINK Utility features it boots from Flash memory bank 1 This option is enabled only when connected to a device containing two Flash banks nBoot1 Together with the BOOTO pin selects the Boot mode nBOOT1 checked unchecked and BOOTO 0 gt Boot from Main Flash memory nBOOT1 checked and BOOTO 1 gt Boot from System memory nBOOT1 unchecked and BOOTO 1 gt Boot from Embedded SRAM nBoot1 is available only on STM32 FO and STM32 Fa VDDA Monitor Selects the analog monitoring on VD
34. rs the Standby mode 1 No reset generated nBFB2 lt Value gt The lt Value gt should be O 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 nBFB is available only on devices containing two Flash banks nBoot1 lt Value gt The lt Value gt should be O or 1 Together with the BOOTO pin selects the Boot mode nB00T1 O or 1 and BOOTO 0 gt Boot from Main Flash memory nBOOT1 1 and BOOTO 1 gt Boot from System memory nBOOT1 O and BOOTO 1 gt Boot from Embedded SRAM nBoot1 is available only on STM32 FO and STM32 F3 VDDA lt Value gt Selects the analog monitoring on VDDA Power source The lt Value gt should be 0 or 1 VDDA is available only on STM32 FO and STM32 F3 nSRAM_Parity lt Value gt This bit allows the user to enable the SRAM hardware parity check The lt Value gt should be 0 or 1 nSRAM Parity is available only on STM32 FO and STM32 F3 Doc ID 16987 Rev 11 31 37 STM32 ST LINK Utility command line interface CLI UM0892 Note Note Note Note Note 32 37 SDADC12_VDD lt Value gt It selects the analog monitoring comparison with Bgap 1 2V voltage on SDADC12 VDD Power source The lt Value gt should be 0 or 1 SDADC12 VDD is available only on STM32F37x devices Data0 lt Value gt Data0 sets the Data0 option b
35. se 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 ST PRODUCTS ARE NOT AUTHORIZED FOR USE IN WEAPONS NOR ARE ST PRODUCTS DESIGNED OR AUTHORIZED FOR USE IN A SAFETY CRITICAL APPLICATIONS SUCH AS LIFE SUPPORTING ACTIVE IMPLANTED DEVICES OR SYSTEMS WITH PRODUCT FUNCTIONAL SAFETY REQUIREMENTS B AERONAUTIC APPLICATIONS C AUTOMOTIVE APPLICATIONS OR ENVIRONMENTS AND OR D AEROSPACE APPLICATIONS OR ENVIRONMENTS WHERE ST PRODUCTS ARE NOT DESIGNED FOR SUCH USE THE PURCHASER SHALL USE PRODUCTS AT PURCHASER S SOLE RISK EVEN IF ST HAS BEEN INFORMED IN WRITING OF SUCH USAGE UNLESS A PRODUCT IS EXPRESSLY DESIGNATED BY ST AS B
36. t Example w32 0x08000000 OXAABBCCDD w32 supports writing to Flash memory OTR SRAM and R W registers Doc ID 16987 Rev 11 ky UM0892 r8 STM32 ST LINK Utility command line interface CLI Description Reads lt NumBytes gt memory Syntax r8 lt Address gt lt NumBytes gt Example r8 0x20000000 0x100 4 1 2 Core commands Rst Description Resets the system Syntax Rst HardRst Description Hardware reset Syntax HardRst Note HardRst command is available only with ST LINK V2 The RESET pin of the JTAG connector pin 15 should be connected to the device reset pin Run Description Syntax Halt Description Syntax Step Description Syntax Sets the Program Counter and Stack pointer as defined at user application and performs a run operation This is useful if the user application is loaded with an offset e g OxO8003000 If the address is not specified Ox08000000 is used Run lt Address gt Example run 0x08003000 Halts the core Halt Executes Step core instruction Step Doc ID 16987 Rev 11 27 37 STM32 ST LINK Utility command line interface CLI 41 3 28 37 SetBP Description Syntax CirBP Description Syntax CoreReg Description Syntax SCore Description Syntax UM0892 Sets the software or hardware breakpoint at a specific address If an address is not specified OxO8000000 is used Se
37. tBP Address Example SetBP 0x08003000 Clears all hardware breakpoints if any ClrBP Reads the Core registers CoreReg Detects the Core status SCore Flash commands ME Description Syntax SE Description Syntax P Description Executes a Full chip erase operation ME Erase Flash sector s SE lt Start Sector gt End Sector gt Example SE 0 gt Erase sector 0 GH 2 12 gt Erase sectors from 2 tO 12 For STM32L series the following cmd erases data eeprom SE ed1 gt Erases data eeprom at 0x08080000 SE ed2 gt Erases data eeprom at 0x08081800 Load binary Intel Hex or Motorola S record file into device memory without verification For hex and srec format the address is relevant Doc ID 16987 Rev 11 ky UM0892 Note STM32 ST LINK Utility command line interface CLI Syntax P lt File Path gt lt Address gt Examples P C file srec P C Nfile bin 0x08002000 P C file hex STM32 F2 and STM32 F4 series supports different programming modes depending on the MCU supply voltage When using ST LINK V2 the supply voltage is detected automatically Therefore the correct programming mode is selected When using ST LINK the 32 bit programming mode is selected by default If the device is read protected the protection will be disabled If some Flash memory pages are write protected the protection will be disabled during programming and then recov
38. yte The lt Value gt should be in 0 0xFF Not available on STM32 FO STM32 F2 STM32 F3 STM32 F4 and STM32 L1 devices Data1 lt Value gt Data1 sets the Data1 option byte The lt Value gt should be in 0 0xFF Not available on STM32 FO STM32 F2 STM32 F3 STM32 F4 and STM32 L1 devices SPRMOD lt Value gt Selection of Protection Mode of WPRi bits The lt Value gt should be 0 or 1 0 WPRi bits used for Write Protection on sector i Default 1 WPRi bits used for PCRoP Protection read protection on sector i Sector Available only on devices supporting PCRop feature WRP lt Value gt WRP enables disables the write protection of the MCU Flash sectors Each bit will enable disable the write protection of one sector or more depending on the connected device For STM32 L1 devices WRPII 0 Flash sector s is protected For other devices WRPIi 1 Flash sector s is protected This command is sufficient to enable disable all Flash sector protection except for STM32 L1 High density where WRP2 and WRP3 commands are needed For STM32 F4 series each bit of WRP enables disables the write protection of one sector The lt Value gt should be in 0 0xFFFFFFFF For devices supporting PCRop feature WRP controls the read protection of the MCU Flash sectors when SPRMOD 1 Doc ID 16987 Rev 11 ky UM0892 Note Note 1 STM32 ST LINK Utility command line interface CLI WRP2 lt Value gt WR
Download Pdf Manuals
Related Search
Related Contents
Overview - mySN.de 取扱説明書 LCD172VXM LCD192VXM instrucciones 461011 la1011 l`économie valaisanne. - Ecole Mode d`emploi, InstructionJ URA IMPRESSA J5 NX502E - Clarion Manuel de l`opérateur TRONÇONNEUSES THERMIQUES Panasonic WJ-ND300 Instruction Manual Manual - HIK Copyright © All rights reserved.
Failed to retrieve file