ST STM32F2 Series User Manual
Hide thumbs Also See for STM32F2 Series:

Advertisement

Getting started with STM32CubeF2 firmware package
Introduction
STM32Cube
reducing development efforts, time and cost. STM32Cube
STM32CubeVersion 1.x includes:
 The STM32CubeMX, a graphical software configuration tool that allows the generation of
C initialization code using graphical wizards.
 A comprehensive embedded software platform, delivered per series (such as
STM32CubeF2 for STM32F2 series)
– The STM32Cube HAL, an STM32 abstraction layer embedded software, ensuring
maximized portability across STM32 portfolio,
– A consistent set of middleware components such as RTOS, USB, TCP/IP and
graphics,
– All embedded software utilities coming with a full set of examples.
September 2015
initiative was originated by STMicroelectronics to ease developers' life by
DocID026120 Rev 2
UM1739
User manual
for STM32F2 series
covers the STM32 portfolio.
1/19
www.st.com
1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F2 Series and is the answer not in the manual?

Questions and answers

Summary of Contents for ST STM32F2 Series

  • Page 1  The STM32CubeMX, a graphical software configuration tool that allows the generation of C initialization code using graphical wizards.  A comprehensive embedded software platform, delivered per series (such as STM32CubeF2 for STM32F2 series) – The STM32Cube HAL, an STM32 abstraction layer embedded software, ensuring maximized portability across STM32 portfolio, –...
  • Page 2: Table Of Contents

    Contents UM1739 Contents STM32CubeF2 main features ........5 STM32CubeF2 architecture overview .
  • Page 3 Table 2. STMicroelectronics boards for STM32F2 series........8 Table 3.
  • Page 4 List of figures UM1739 List of figures Figure 1. STM32CubeF2 firmware components ......... 5 Figure 2.
  • Page 5: Stm32Cubef2 Main Features

    Device Classes: HID, MSC, CDC, Audio,   STemWin, a professional graphical stack solution available in binary format and based on ST partner solution SEGGER emWin  CMSIS-RTOS implementation with FreeRTOS open source solution  FAT File system based on open source FatFS solution ...
  • Page 6: Stm32Cubef2 Architecture Overview

    STM32CubeF2 architecture overview UM1739 STM32CubeF2 architecture overview The STM32Cube firmware solution is built around three independent levels that can easily interact with each other as described in Figure Figure 2. Firmware architecture Level 0: this level is divided into three sub-layers: ...
  • Page 7 UM1739 STM32CubeF2 architecture overview provides APIs allowing to initialize and configure the peripheral, manage data transfer based on polling, interrupt or DMA process, and manage communication errors that may raise during communication. The HAL Drivers APIs are split into two categories: –...
  • Page 8: Stm32Cubef2 Firmware Package Overview

    MCU in use. This improves the library code re-usability and guarantees an easy portability from one device to another. The STM32CubeF2 offers full support for all devices of the STM32F2 series. The user only has to define the right macro in stm32f2xx.h.
  • Page 9: Firmware Package Overview

    1. The library files cannot be modified by the user while the set of examples are modifiable files. For each board supporting the devices of the STM32F2 series, a set of examples with preconfigured projects is provided for EWARM, MDK-ARM, TrueSTUDIO and SW4STM32 toolchains.
  • Page 10 STM32CubeF2 firmware package overview UM1739 Figure 4. Overview of STM32CubeF2 examples 10/19 DocID026120 Rev 2...
  • Page 11: Table 3. Number Of Examples Available On The Boards

    UM1739 STM32CubeF2 firmware package overview The examples are classified as per the STM32Cube level they apply to, and are named as follows:  Examples in level 0 are called Examples. They use HAL drivers without any Middleware component.  Examples in level 1 are called Applications. They provide typical use cases of each Middleware component.
  • Page 12: Getting Started

    Getting started UM1739 Getting started Running your first example This section explains how to run a first example within STM32CubeF2, using as illustration the generation of a simple led toggle on STM322xG_EVAL board: Download the STM32CubeF2 FW package Unzip the package into a directory of your choice. Make sure not to modify the package structure shown in the Figure 3.
  • Page 13 UM1739 Getting started Below is a quick overview on how to open, build and run an example with the supported toolchains:  EWARM – Under the example folder, open \EWARM subfolder – Launch the Project.eww workspace ( – Rebuild all files: Project > Rebuild all –...
  • Page 14: Developing Your Own Application

    Getting started UM1739 Developing your own application This section describes the successive steps to create your own application using STM32CubeF2. Creating your project: to create a new project you can either start from the Template project provided for each board under \Projects\<STM32xx_xxx>\Templates or from any available project under \Projects\<STM32xx_xxx>\Examples or \Projects\<STM32xx_xxx>\Applications.
  • Page 15 UM1739 Getting started configuration option; more detailed information is available in the documentation provided for each component. Starting the HAL Library: after jumping to the main program, the application code calls the HAL_Init() API to initialize the HAL library, and do the following: Configure the Flash prefetch, instruction and data caches (configured by the user through macros defined in stm32f2xx_hal_conf.h).
  • Page 16: Using Stm32Cubemx To Generate The Initialization C Code

    The STM32CubeF2 firmware package comes with an updater utility; the STM32CubeUpdater, also available as a menu within STM32CubeMX code generation tool. The updater solution detects new firmware releases and patches available from www.st.com and offers to download these on the user’s computer. 4.4.1 Installing and running the STM32CubeUpdater program ...
  • Page 17: Frequently Asked Questions (Faqs)

    The Middleware stacks made by ST (USB Host and Device Libraries, STemWin) come with a licensing model allowing easy reuse, provided it runs on an ST device. The Middleware based on well-known open-source solutions (FreeRTOS, FatFs, LwIP and PolarSSL) have user-friendly license terms.
  • Page 18: Revision History

    Revision history UM1739 Revision history Table 4. Document revision history Date Revision Changes 02-Apr-2014 Initial release. Updated: – Table 2: STMicroelectronics boards for STM32F2 series, – Table 3: Number of examples available on the boards, – Section 3.2: Firmware package overview with references to W4STM32 toolchain, –...
  • Page 19 ST products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on ST products before placing orders. ST products are sold pursuant to ST’s terms and conditions of sale in place at the time of order acknowledgement.

This manual is also suitable for:

Stm32cubef2

Table of Contents