Stm32cubeprogrammer User Manual

Total Page:16

File Type:pdf, Size:1020Kb

Stm32cubeprogrammer User Manual UM2237 User manual STM32CubeProgrammer software description Introduction STM32CubeProgrammer (STM32CubeProg) provides an all-in-one software tool to program STM32 devices in any environment: multi-OS, graphical user interface or command line interface, support for a large choice of connections (JTAG, SWD, USB, UART, SPI, CAN, I2C), with manual operation or automation through scripting. This document details the hardware and software environment prerequisites, as well as the available STM32CubeProgrammer software features. July 2021 UM2237 Rev 16 1/125 www.st.com 1 Contents UM2237 Contents 1 Getting started . 9 1.1 System requirements . 9 1.2 Installing STM32CubeProgrammer . 9 1.2.1 Linux install . 9 1.2.2 Windows install . 10 1.2.3 macOS install . 10 1.2.4 DFU driver . 10 1.2.5 ST-LINK driver . 12 2 STM32CubeProgrammer user interface for MCUs . 13 2.1 Main window . 13 2.1.1 Main menu . 13 2.1.2 Log panel . 14 2.1.3 Progress bar . 14 2.1.4 Target configuration panel . 15 2.2 Memory and file edition . 23 2.2.1 Reading and displaying target memory . 23 2.2.2 Reading and displaying a file . 24 2.3 Memory programming and erasing . 25 2.3.1 Internal Flash memory programming . 25 2.3.2 External Flash memory programming . 26 2.3.3 Developing customized loaders for external memory . 28 2.4 Option bytes . 30 2.5 Automatic mode . 31 2.6 STM32WB OTA programming . 35 2.6.1 USB dongle configuration . 35 2.6.2 OTA update procedure . 36 2.7 In application programming (IAP) . 40 2.8 Flash the co-processor binary using graphical interface . 41 2.8.1 Using JTAG . 41 2.8.2 Using bootloader . 44 2.9 Serial wire viewer (SWV) . 44 2.10 DFU IAP with custom PID and VID . 46 2/125 UM2237 Rev 16 UM2237 Contents 2.11 SigFox™ credentials . 47 2.12 Register Viewer . 48 2.13 Hard Fault analyzer . 49 2.13.1 Description . 49 2.13.2 Example . 51 2.13.3 Fault Analyzer note . 51 2.13.4 Secure Fault Analyzer for Cortex-M33 . 52 2.14 Fill memory command . 53 2.15 Fill memory operation . 55 2.16 Blank check command . 56 2.17 Blank check operation . 57 2.18 Compare Flash memory with file . 61 2.19 Comparison between two files . 66 2.20 LiveUpdate feature . 71 3 STM32CubeProgrammer command line interface (CLI) for MCUs . 72 3.1 Command line usage . 72 3.2 Generic commands . 74 3.2.1 Connect command . 74 3.2.2 Erase command . 82 3.2.3 Download command . 83 3.2.4 Download 32-bit data command . 83 3.2.5 Download 64-bit data command . 84 3.2.6 Read command . 84 3.2.7 Start command . 85 3.2.8 Debug commands . 85 3.2.9 List command . 86 3.2.10 QuietMode command . 87 3.2.11 Verbosity command . 87 3.2.12 Log command . 88 3.2.13 External loader command . 89 3.2.14 External loader command with bootloader interface . 90 3.2.15 Read unprotect command . 91 3.2.16 TZ regression command . 91 3.2.17 Option bytes command . 91 3.2.18 Safety lib command . 91 UM2237 Rev 16 3/125 5 Contents UM2237 3.2.19 Secure programming SFI specific commands . 95 3.2.20 Secure programming SFIx specific commands . 95 3.2.21 HSM related commands . 97 3.2.22 STM32WB specific commands . 98 3.2.23 Serial wire viewer (SWV) command . 100 3.2.24 Specific commands for STM32WL . 101 3.2.25 SigFox credential commands . 103 3.2.26 Register Viewer . 105 3.2.27 Hard fault analyzer . 106 3.2.28 RDP regression with password . 107 4 STM32CubeProgrammer user interface for MPUs . 109 4.1 Main window . 109 4.2 Programming windows . .110 5 STM32CubeProgrammer CLI for MPUs . 111 5.1 Available commands for STM32MP1 . .111 5.1.1 Connect command . 111 5.1.2 GetPhase command . 112 5.1.3 Download command . 112 5.1.4 Flashing service . ..
Recommended publications
  • JTAG Programmer Overview for Hercules-Based Microcontrollers
    Application Report SPNA230–November 2015 JTAG Programmer Overview for Hercules-Based Microcontrollers CharlesTsai ABSTRACT This application report describes the necessary steps needed by the third party developers to create a JTAG-based flash programmer for the Hercules™ family of microcontrollers. This document does not substitute the existing user guides on JTAG access to the target systems and how to program the Flash memory, but rather serves as a central location to reference these documents with clarifications specific to the implementation of the Hercules family of microcontrollers. Contents 1 Introduction ................................................................................................................... 2 2 Hercules JTAG Scan Architecture......................................................................................... 2 3 Creating the Firmware to Program the Flash Memory ................................................................ 22 4 Flash Verification ........................................................................................................... 23 5 References .................................................................................................................. 23 List of Figures 1 Hercules JTAG Scan Architecture......................................................................................... 3 2 Conceptual ICEPICK-C Block Diagram for Hercules Implementation ................................................ 5 3 Fields of the 32-Bit Scan Value for Accessing Mapped Registers
    [Show full text]
  • Software Manual IDEA – the Software
    Software Manual IDEA – The Software Version 1.1 Open Technologies Srl WWW.SCANINABOX.COM Copyright © 2016 Open Technologies Srl First printing, June 2016 Contents I Part One 1 IDEA - the application for Scan in a Box .........................7 1.1 Application Interface7 1.1.1 Project management panel..........................................8 1.1.2 3D view panel....................................................9 1.1.3 Toolbar......................................................... 10 1.1.3.1 Project management (orange)........................................... 10 1.1.3.2 Acquisition (bordeaux)................................................ 10 1.1.3.3 Alignment (light blue)................................................. 11 1.1.3.4 Selection (turquoise).................................................. 11 1.1.3.5 Rendering (pink).................................................... 12 1.1.3.6 General (purple).................................................... 12 1.1.3.7 Features specific to range images (blue)..................................... 13 1.1.3.8 Features specific to triangle meshes (light green)................................ 13 2 Using IDEA ................................................... 17 2.1 Optical set-up 17 2.1.1 Optical set-up mode................................................ 19 2.1.2 Calibration of the optical head........................................ 22 2.2 Capture and alignment 25 2.2.1 Free mode acquisition............................................... 26 2.2.2 Turn Table acquisition mode..........................................
    [Show full text]
  • Intel Quartus Prime Pro Edition User Guide: Programmer Send Feedback
    Intel® Quartus® Prime Pro Edition User Guide Programmer Updated for Intel® Quartus® Prime Design Suite: 21.2 Subscribe UG-20134 | 2021.07.21 Send Feedback Latest document on the web: PDF | HTML Contents Contents 1. Intel® Quartus® Prime Programmer User Guide..............................................................4 1.1. Generating Primary Device Programming Files........................................................... 5 1.2. Generating Secondary Programming Files................................................................. 6 1.2.1. Generating Secondary Programming Files (Programming File Generator)........... 7 1.2.2. Generating Secondary Programming Files (Convert Programming File Dialog Box)............................................................................................. 11 1.3. Enabling Bitstream Security for Intel Stratix 10 Devices............................................ 18 1.3.1. Enabling Bitstream Authentication (Programming File Generator)................... 19 1.3.2. Specifying Additional Physical Security Settings (Programming File Generator).............................................................................................. 21 1.3.3. Enabling Bitstream Encryption (Programming File Generator).........................22 1.4. Enabling Bitstream Encryption or Compression for Intel Arria 10 and Intel Cyclone 10 GX Devices.................................................................................................. 23 1.5. Generating Programming Files for Partial Reconfiguration.........................................
    [Show full text]
  • Manual – Remote Control Page 2 of 111 7.2 Authenticating on the Remote Computer Using a Windows User Account 28
    TeamViewer 10 Manual Remote Control Rev 10.3-201506 TeamViewer GmbH • Jahnstraße 30 D-73037 Göppingen www.teamviewer.com Table of contents 1 About TeamViewer 5 1.1 About the software 5 1.2 About the manual 5 2 Basics 7 2.1 How TeamViewer works 7 2.2 Description of the main TeamViewer window 7 3 Establishing a connection with TeamViewer 10 4 The Remote Control connection mode 11 4.1 Remote Control window options 11 4.2 Remote computer options in the TeamViewer Panel 18 5 The File Transfer connection mode 21 5.1 Options in File Transfer connection mode 21 5.2 Transferring files using drag and drop 23 5.3 File transfer via the Windows context menu 24 6 The VPN connection mode 25 6.1 Sample uses of TeamViewer VPN 25 6.2 Requirements for using TeamViewer VPN 25 6.3 VPN dialog box options 26 7 Other connection options 27 7.1 Establishing a LAN connection using the IP address 27 TeamViewer 10 Manual – Remote Control www.teamviewer.com Page 2 of 111 7.2 Authenticating on the Remote Computer using a Windows user account 28 7.3 Establish a connection via a Windows shortcut 29 7.4 Connections to your own computers without a password. 30 8 Computers & Contacts – Managing Contacts 32 8.1 The TeamViewer account 33 8.2 Computers & Contacts options 37 8.3 Service cases 53 8.4 Integrated system health checks 56 9 Multimedia functions 58 9.1 Options within the Session list 58 9.2 Transmitting webcam video to your partner 58 9.3 Talk to your partner via Voice over IP or conference call 59 9.4 Chatting with your partner during a TeamViewer session 61 9.5
    [Show full text]
  • Intermittent Computation Without Hardware Support Or Programmer
    Intermittent Computation without Hardware Support or Programmer Intervention Joel Van Der Woude, Sandia National Laboratories; Matthew Hicks, University of Michigan https://www.usenix.org/conference/osdi16/technical-sessions/presentation/vanderwoude This paper is included in the Proceedings of the 12th USENIX Symposium on Operating Systems Design and Implementation (OSDI ’16). November 2–4, 2016 • Savannah, GA, USA ISBN 978-1-931971-33-1 Open access to the Proceedings of the 12th USENIX Symposium on Operating Systems Design and Implementation is sponsored by USENIX. Intermittent Computation without Hardware Support or Programmer Intervention Joel Van Der Woude Matthew Hicks Sandia National Laboratories∗ University of Michigan Abstract rapid changes drive us closer to the realization of smart As computation scales downward in area, the limi- dust [20], enabling applications where the cost and size tations imposed by the batteries required to power that of computation had previously been prohibitive. We are computation become more pronounced. Thus, many fu- rapidly approaching a world where computers are not ture devices will forgo batteries and harvest energy from just your laptop or smart phone, but are integral parts their environment. Harvested energy, with its frequent your clothing [47], home [9], or even groceries [4]. power cycles, is at odds with current models of long- Unfortunately, while the smaller size and lower cost of running computation. microcontrollers enables new applications, their ubiqui- To enable the correct execution of long-running appli- tous adoption is limited by the form factor and expense of cations on harvested energy—without requiring special- batteries. Batteries take up an increasing amount of space purpose hardware or programmer intervention—we pro- and weight in an embedded system and require special pose Ratchet.
    [Show full text]
  • IG7013-Toolbars.Pdf
    Impress Guide Appendix B Toolbars Copyright This document is Copyright © 2021 by the LibreOffice Documentation Team. Contributors are listed below. You may distribute it and/or modify it under the terms of either the GNU General Public License (http://www.gnu.org/licenses/gpl.html), version 3 or later, or the Creative Commons Attribution License (http://creativecommons.org/licenses/by/4.0/), version 4.0 or later. All trademarks within this guide belong to their legitimate owners. Contributors To this edition. Peter Schofield Dave Barton Feedback Please direct any comments or suggestions about this document to the Documentation Team’s mailing list: [email protected] Note Everything sent to a mailing list, including your email address and any other personal information that is written in the message, is publicly archived and cannot be deleted. Publication date and software version Published February 2021. Based on LibreOffice 7.0. Using LibreOffice on macOS Some keystrokes and menu items are different on macOS from those used in Windows and Linux. The table below gives some common substitutions for the instructions in this document. For a detailed list, see the application Help. Windows or Linux macOS equivalent Effect Tools > Options LibreOffice > Preferences Access setup options menu selection Right-click Control+click or right-click Open a context menu depending on computer setup Ctrl (Control) ⌘ (Command) Used with other keys F11 ⌘+T Open the Styles deck in the Sidebar Documentation for LibreOffice is available at
    [Show full text]
  • Quickly Customize Toolbars and Buttons Creating Custom Toolbars Is One of the Easiest Bar Will Be Saved
    Hands On User Level New/Casual Advanced Quickly Customize Toolbars and Buttons Creating custom toolbars is one of the easiest bar will be saved. ways to tailor ArcGIS desktop applications to 3. Under Categories, click the category contain- the way you work. In addition to positioning ing the command to add. Under Commands, toolbars in a specific area of the application, click the specific command. Drag the command Modify you can group commands on a custom toolbar. to the new toolbar and drop it. Alternately, click one of Save mouse clicks by creating a new toolbar the Add From File button and browse to the loca- the 200 that contains frequently used menu choices, tion of the code you would like to attach to the icons that new macros, or custom commands from an- button and drag the file to the toolbar. ship with other source. 4. Right-click on the new button and choose ArcGIS Change Button Image from the context menu or create Creating a Custom Toolbar to access the button icon palette. Select one of your own. 1. Choose Tools > Customize from the main the icons displayed or click the Browse button menu. to choose a custom image or another of the icon 2. In the Customize dialog box, click on the images that ship with ArcGIS. ArcGIS stores Make Your Own Icons Toolbars tab. icons in arcexe82\bin\incons. Click Open to add You can modify any of the 200 icon files that 3. Click the New button and type the name of the icon. ship with ArcGIS or create your own using the new toolbar.
    [Show full text]
  • Graphical User Interface Design Document
    EUROPEAN COMMISSION EUROPEAN MARITIME SAFETY AGENCY Cais Do Sodré 1249-206 Lisbon, Portugal SafeSeaNet Graphical User Interface Design Document NSW Prototype Document version: 1.78 Document release date: July 2015 NSW Prototype Version: 1.78 Graphical User Interface Design Document July 2015 Sa fe Se a N e t Document Approval NAME DATE SIGNATURE Prepared by: E. Thanasopoulos 03.07.2015 M. Ntirogianni C. Trigonis Checked by: A. Argyropoulos 07.07.2015 Quality control by: N. Karioti 07.07.2015 Approved by: G. Carayannis 07.07.2015 Distribution List COMPANY NAME FUNCTION FOR INFO / APPROVAL EMSA Duchesne Philippe EMSA Abela Carmelo Member States SSN central system contractor Change control History VERSION DATE AUTHOR DESCRIPTION 0.10 5 Aug 2013 Intrasoft First Draft submitted to internal QA for International Review. 0.90 12 Aug 2013 Intrasoft Submitted to EMSA for Review. International 1.00 05 Sep 2013 Intrasoft Incorporated EMSA review comments. International 1.10 18 Oct 2013 Intrasoft Defined the Consult Acknowledgement web International pages and updated the Authority Information Exchange web pages. 1.20 29 Nov 2013 Intrasoft Incorporated EMSA review comments. International 1.30 16 Dec 2013 Intrasoft Updated according to the SDD design review International teleconference on 09/12/2013. 1.40 18 Jan 2014 Intrasoft Updated to incorporate the additional International functionalities for the NSW prototype based on the SC#07 evolutive maintenance task. 1.45 17 Mar 2014 Intrasoft Updated to incorporate EMSA review International comments. 1.50 23 May 2014 Intrasoft Updated to incorporate design changes part International of SC#09. Submitted to EMSA for review 2 of 62 NSW Prototype Version: 1.78 Graphical User Interface Design Document July 2015 Sa fe Se a N e t 1.55 05 Jun 2014 Intrasoft Updated to incorporate EMSA review International comments.
    [Show full text]
  • FUJITSU FLASH MCU Programmer for FR Specifications Version 1.9 1 September 2004 Software Version Number: V01L10 ©2002 FUJITSU LIMITED Printed in Japan
    FUJITSU FLASH MCU Programmer for FR Specifications ii FUJITSU FLASH MCU Programmer for FR Specifications Version 1.9 1 September 2004 Software version number: V01L10 ©2002 FUJITSU LIMITED Printed in Japan 1. Circuit diagrams utilizing Fujitsu products are included as a mean of illustrating typical semiconductor applications. Complete information sufficient for construction proposes is not necessarily given. 2. The information contained in this document has been carefully checked and is believed to be reliable. However, Fujitsu assumes no responsibility for inaccuracies. 3. The information contained in this document does not convey any license under the copy right, patent right to trademarks claimed and owned by Fujitsu. 4. Fujitsu reserved the right to change products or specifications without notice. 5. No part of this publication may be copied or reproduced in any form or by any means, or transferred to any third party without prior written consent of Fujitsu. 6. The products described in this document are not intended for use in equipment requiring high reliability, such as marine relays and medical life-support systems. For such applications, contact your Fujitsu sales representative. 7. If the products and technologies described in this document are controlled by the Foreign Exchange and Foreign Trade Control Act established in Japan, their export is subject to prior approval based on the said act. iii CONTENTS 1. CONFIGURATION DIAGRAM ................................................................................................1
    [Show full text]
  • An Interactive Toolkit Library for 3D Applications: It3d
    Eighth Eurographics Workshop on Virtual Environments (2002) S. Müller, W. Stürzlinger (Editors) An Interactive Toolkit Library for 3D Applications: it3d Noritaka OSAWA†∗, Kikuo ASAI†, and Fumihiko SAITO‡ †National Institute of Multimedia Education, JAPAN *The Graduate University of Advanced Studies, JAPAN ‡Solidray Co. Ltd, JAPAN Abstract An interactive toolkit library for developing 3D applications called “it3d” is described that utilize artificial reality (AR) technologies. It was implemented by using the Java language and the Java 3D class library to enhance its portability. It3d makes it easy to construct AR applications that are portable and adaptable. It3d consists of three sub-libraries: an input/output library for distributed devices, a 3D widget library for multimodal interfacing, and an interaction-recognition library. The input/output library for distributed devices has a uniform programming interface style for various types of devices. The interfaces are defined by using OMG IDL. The library utilizes multicast peer-to-peer communication to enable efficient device discovery and exchange of events and data. Multicast-capable CORBA functions have been developed and used. The 3D widget library for the multimodal interface has useful 3D widgets that support efficient and flexible customization based on prototype-based object orientation, or a delegation model. The attributes of a widget are used to customize it dynamically. The attributes constitute a hierarchical structure. The interaction-recognition library is used to recognize basic motions in a 3D space, such as pointing, selecting, pinching, grasping, and moving. The library is flexible, and the recognition conditions can be given as parameters. A new recognition engine can be developed by using a new circular event history buffer to efficiently manage and retrieve past events.
    [Show full text]
  • AVR Programming Methods
    AVR Programming Methods Dean Camera March 15, 2015 ********** Text © Dean Camera, 2013. All rights reserved. This document may be freely distributed without payment to the author, provided that it is not sold, and the original author information is retained. For more tutorials, project information, donation information and author contact information, please visit www.fourwalledcubicle.com. 1 Contents 1 AVR Programming Methods3 1.1 In System Programming (ISP).............................3 1.2 JTAG...........................................3 1.3 DebugWire (dW).....................................4 1.4 Pre-programmed Bootloader...............................4 1.5 High Voltage Parallel Programming (HVPP).....................4 1.6 High Voltage Serial Programming (HVSP).......................4 1.7 Program and Debug Interface (PDI)..........................5 1.8 Tiny Programming Interface (TPI)...........................5 1.9 aWire (aW)........................................5 2 AVR Programming FAQ6 2.1 Which is the best method?...............................6 2.2 I've made a parallel port dongle. Can I use it with AVRStudio?...........6 2.3 So my dongle's useless then?..............................6 2.4 What are my options if I want my programmer to work with AVRStudio?.....6 2.5 Ok, I want to use a bootloader. How do I get it in there in the first place .....7 2.6 Help! I've messed with the fuses and knackered my AVR while using ISP!.....7 2.7 How do I interface with my programmer?.......................7 2 Chapter 1 AVR Programming Methods There are many ways to program AVR microcontrollers. Since many people ask about different ones at one time or another, I thought I'd outline them here so that their questions can be answered quickly and efficiently.
    [Show full text]
  • Unit 2 Lesson 2.1-3
    Designing User Interface-1 Unit 2 Designing User Interface-1 Introduction In previous lesson, we have learned how to write simple Visual Basic code. In this lesson, we will learn how to work with some common controls and write codes for them. Some of the commonly used controls are label, text box, button, list box and combo box. However, in this lesson, we shall only deal with the text box the label, and buttons we shall deal with other controls later. Lesson 2.1-3 Adding Basic Controls Upon completion of this unit you will be able to . Place textbox control on the Form. Place label control on the Form. Place command button on the Form. Outcomes TextBox Controls The TextBox is the standard control for accepting input from the user as well as to display the output. For this reason, they tend to be the most frequently used controls in the majority of Windows applications. It can handle string (text) and numeric data but not images or pictures. String in a TextBox can be converted to a numeric data by using the function Val (text). In this section, we will discuss the most useful properties of TextBox controls. After you place a TextBox control on a form, you must set a few basic properties. The first thing I do as soon as I create a new TextBox control is clear its Textproperty. If this is a multiline field, I also set the MultiLineproperty to True. You can set the Alignment property of TextBox controls to left align, right align, or center the contents of the control.
    [Show full text]