STM32CubeIDE Quick Start Guide - STMicroelectronics

3y ago
51 Views
5 Downloads
374.13 KB
11 Pages
Last View : 1m ago
Last Download : 3m ago
Upload by : Nixon Dill
Transcription

UM2553User manualSTM32CubeIDE quick start guideIntroductionThis document is a brief guide for users to get started quickly with STMicroelectronics STM32CubeIDE.STM32CubeIDE is an integrated development environment (IDE) based on the Eclipse framework. It is aimed at usersdeveloping embedded software in C/C for STMicroelectronics STM32 MCUs and MPUs.This manual provides basic information about: Information Center Workspace and projects Project information DebuggingUM2553 - Rev 2 - November 2020For further information contact your local STMicroelectronics sales office.www.st.com

UM2553Information Center1Information CenterWhen STM32CubeIDE is started the first time, the Information Center opens.Figure 1. STM32CubeIDE with Information CenterThe Information Center enables the user to quickly reach information about the product and how to use it.By clicking on the corresponding hypertext links, manuals are opened and latest information is obtained from theSTMicroelectronics website at www.st.com.It is not required to read all material before using STM32CubeIDE for the first time. Rather, it is recommended toconsider the Information Center as a collection of reference information to return to.The Information Center window can be reached at any time via the [Help] [Information Center] command. Whenthe Information Center tab is closed, the standard views in the C/C perspective are opened.STM32CubeIDE supports STM32 32-bit products based on the Arm Cortex processor.Note:UM2553 - Rev 2Arm is a registered trademark of Arm Limited (or its subsidiaries) in the US and/or elsewhere.page 2/11

UM2553Workspace and projects2Workspace and projectsFigure 2. STM32CubeIDE with C/C perspective open, no project defined yetSTM32CubeIDE is builtusing the Eclipse framework; it inheritscharacteristics that maybe unfamiliar to newusers.The Eclipse editingenvironment usesperspectives. Aperspective is a set ofwindows dedicated to apurpose.The C/C perspectiveis dedicated to writingand editing code,and navigating throughprojects. Users spend a lotof time in this perspective.Another popular perspective is the Debug perspective, where users debug and test. Switching back and forthbetween perspectives is easy, and can even be automatic in some cases.Workspace and projects: The next thing to do is create a project, which requires to introduce firstly the conceptof workspace. A workspace is a container that includes project folders or information about project folders, anda .metadata folder that contains information about the projects. A workspace is simply a folder on a hard drive,which can be located anywhere in the storage media. When STM32CubeIDE starts up, it asks which workspacemust be used. This may be changed at any time by selecting [File] [Switch Workspace] and navigating toanother folder.Note: workspace and project names must contain only ascii characters. This is also valid for the path to theworkspace.Creating the first project: The easiest way to create a newembedded project is to use the STM32 Project wizard. Itis selected through the [File] [New] [STM32 Project] menucommand, and launches the embedded MCUFinder:1.Select the target MCU or board and go to the next page2.Enter a project name and select the setting wanted forthe project in the dialogue boxes3.Click on [Finish]. This brings up the STM32CubeMXwindow for configuring the peripherals, clock,middleware, and the power consumption.Figure 3. New project wizardInformation gathered by the Project Wizard includes:UM2553 - Rev 21.Target information, such as whether a given evaluationboard must be used, or rather a given microcontroller.2.Name of the project3.Target language, binary type, and project type4.Options for code generationpage 3/11

UM2553Project information3Project informationFigure 4. Project Explorer window populated with a projectUM2553 - Rev 2Once the information is entered in the wizard,it is possible to work in the project itself: The Project Explorer docking view ispopulated with the selected project.In the Project Explorer window, thesubfolders can be expanded to anydesired sublevel. The kind of project created by theProject Wizard depends on the devicefamily. In any case, the project containsall the necessary elements of acomplete embedded application, readyto program into the memory of the partand run. When several projects exist in aworkspace, it is possible to close someof them. The actions controlled by theicons such as run, or launch debugsession then apply to the open projects. Projects can be closed or opened byfirst right-clicking on the project name inthe Project Explorer docking view andthen selecting [Open Project] or [CloseProject].page 4/11

UM2553Project informationControls: All control icons have tool tips activated by hovering the mouse over the icon. The icons are shortcutsfor the same functions that can be activated from the main menu bar. These icons control specific functions thatpertain to code editing, building and project management; they are unique to the C/C perspective.Figure 5. Main control icons for editing, building, and project managementUse this icon to create new C source code module, header files, or new object such as project, library, or repository([File] [New] from the main menu options).Use this icon to build your project.Use this icon to launch a specific debug configuration, or configure a debug configuration by clicking on the arrow(Functions can be activated in the [Run] option in the main menu).The flashlight icon launches various search utilities; thearrows navigate among recently visited places in the project([Search] and [Navigate] in the main menu options).UM2553 - Rev 2page 5/11

UM2553Debugging4DebuggingOnce the project is built without errors, use theicon to launch the program code into the part together withthe debugger. The first time a debug session is launched, STM32CubeIDE builds the project and then showsthe debug launch configuration menu. This gives the user the opportunity to verify settings and make changes ifdesired.Important:If the Serial Wire Viewer (SWV) is to be used during debugging, this must be explicitly enabled in the dialogue box:1.Click on the [Debugger] tab to reach the SWV settings and enable SWV (SWV is not enabled by default).2.If changes are made to the default settings in the launch configuration properties dialog box, they must be saved byclicking on the [Apply] button.When ready to launch the debug session, click on [OK]. Several things happen “under the hood” including thelaunch of the debugger driver and GDB server, as well as the programming of the application into the part, andany other actions called for in the startup script. At this point, the application is normally halted at the first line ofmain().The main control icons of the debugger are as follows:Resume full speed execution of the application on the target (greyed out when running).Halt execution (greyed out when halted).Step into a function, over a function, or out of a function.Toggle between C and instruction stepping.Reset the chip and restart execution.Terminate the debug session.Terminate and relaunch the debug session.Basic debugging techniques: To set a breakpoint, click on the blue horizontal bar next to the statement line number. To view memory locations, use the Variables (variables in focus or global variables), Memory, orExpressions window.Configuring and using debugging tools, especially with SWV, is frequently more complicated than using the IDEfor C/C code development. More details on this topic are provided by associated documents available on theSTM32CubeIDE web page, which must be consulted for anything beyond the most basic operations.UM2553 - Rev 2page 6/11

UM2553Revision historyTable 1. Document revision historyUM2553 - Rev 2DateVersionChanges18-Apr-20191Initial version.2-Nov-20202Updated window screenshots and icons.page 7/11

UM2553ContentsContents1Information Center. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22Workspace and projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33Project information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44Debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8List of tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9List of figures. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10UM2553 - Rev 2page 8/11

UM2553List of tablesList of tablesTable 1.Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7UM2553 - Rev 2page 9/11

UM2553List of figuresList of figuresFigure 1.Figure 2.Figure 3.Figure 4.Figure 5.UM2553 - Rev 2STM32CubeIDE with Information Center . . . . . . . . . . . . . . . . . . . .STM32CubeIDE with C/C perspective open, no project defined yetNew project wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Project Explorer window populated with a project . . . . . . . . . . . . . .Main control icons for editing, building, and project management . . .23345page 10/11

UM2553IMPORTANT NOTICE – PLEASE READ CAREFULLYSTMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, enhancements, modifications, and improvements to STproducts and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on ST products before placing orders. STproducts are sold pursuant to ST’s terms and conditions of sale in place at the time of order acknowledgement.Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design ofPurchasers’ products.No license, express or implied, to any intellectual property right is granted by ST herein.Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product.ST and the ST logo are trademarks of ST. For additional information about ST trademarks, please refer to www.st.com/trademarks. All other product or servicenames are the property of their respective owners.Information in this document supersedes and replaces information previously supplied in any prior versions of this document. 2020 STMicroelectronics – All rights reservedUM2553 - Rev 2page 11/11

STM32CubeIDE quick start guide - User manual Author: STMICROELECTRONICS Subject: STM32CubeIDE is STMicroelectronics integrated development environment for STM32 microcontrollers and microprocessors. Keywords: STM32, IDE, Eclipse , QSG Created Date: 11/2/2020 4:57:17 PM

Related Documents:

[2]. Ben Jordan, Amit Bahl Rigid - Flex PCB Design a guide book for design, Sierra Proto express, 2013 [3]. STMicroelectronics. STM32 embedded graphic objects/ touchscreen library, 2011. [4]. STMicroelectronics. STM32F10xxx ı2c optimized examples, 2010. [5]. STMicroelectronics. Migratin

safe in multi-threaded systems. These multi-threaded systems can be either bare-metal or RTOS-based systems. This application note is a guideline to get started with the thread-safe solution, create, and build projects with the suitable thread-safe strategy to ensure that the supported C libraries are protected against concurrency.

MAXREFDES79# IO-Link Master Quick Start Guide 3 1. 0BRequired Equipment PC with Windows 7 or Windows 8 . Verify COM port connected as “STMicroelectronics Virtual COM Port (COMx).” It may be a different COM port number on your PC. MAXREFDES79# IO-Link Master Quick Start Guide 9 .

4.1 Quick Start Tutorial When Collect is opened for the first time, the Quick Start tutorial is displayed. Quick Start is a series of five screens that provide a summary review of the main capabilities of the app. Tap the Forward icon to move through the Quick Start screens. Tap Start to open the app after finishing with the Quick Start screens .

[UM2553] STM32CubeIDE quick start guide - User manual (1) [AN4992] Overview secure firmware install (SFI) - Application note (1) [AN5156] Introduction to STM32 microcontrollers security - Application note (1) . N

CorelDRAW Home & Student Suite 2018 Quick Start Guide Author: Corel Keywords: CorelDRAW Home & Student Suite 2018 quick start guide; quick start guide; CorelDRAW Home & Student Suite 2018 Getting Started Created Date: 4/29/2020 7:51:12 AM

5,,. M e. 3 Quick-Start Guide GreatCall Touch3 . Microphone - picks up your voice loud and clear while on a phone call Power Connector - allows you to charge your Touch3 with the provided Wall Charger and USB Cable. 8 Quick-Start Guide Quick-Start Guide Turning your Phone On and Off

An API (US) nationally adopted standard, either modified from or identical to the ISO standard, may include the API Monogram Program requirements. This shall be noted on the front cover as to be evident to the reader. Both modified and identical adoptions which include the API Monogram should be designated as follows: API Title . ANSI/API XX . Edition, Month/Year . Effective Date: (minimum of .