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, –...
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 ...
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: –...
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.
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.
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.
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 –...
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).
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 ...
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.
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.
Need help?
Do you have a question about the STM32F2 Series and is the answer not in the manual?
Questions and answers