ST STM32CubeF2 User Manual Download Page 1

September 2015

DocID026120 Rev 2

1/19

1

UM1739

User manual

Getting started with STM32CubeF2 firmware package 

 for STM32F2 series

Introduction

STM32Cube

 initiative was originated by STMicroelectronics to ease developers' life by 

reducing development efforts, time and cost. STM32Cube

 covers the STM32 portfolio.

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.

www.st.com

Summary of Contents for STM32CubeF2

Page 1: ...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 p...

Page 2: ...2 devices and hardware 8 3 2 Firmware package overview 9 4 Getting started 12 4 1 Running your first example 12 4 2 Developing your own application 14 4 3 Using STM32CubeMX to generate the initializat...

Page 3: ...UM1739 List of tables 3 List of tables Table 1 Macros for STM32F2 series 8 Table 2 STMicroelectronics boards for STM32F2 series 8 Table 3 Number of examples available on the boards 11 Table 4 Documen...

Page 4: ...M1739 4 19 DocID026120 Rev 2 List of figures Figure 1 STM32CubeF2 firmware components 5 Figure 2 Firmware architecture 6 Figure 3 STM32CubeF2 firmware package overview 1 9 Figure 4 Overview of STM32Cu...

Page 5: ...t of middleware components with the corresponding examples They come in very permissive license terms Full USB Host and Device stack supporting many classes Host Classes HID MSC CDC Audio MTP Device C...

Page 6: ...ny other board BSP driver it enables the component driver to be linked to a specific board and provides a set of user friendly APIs The API naming rule is BSP_FUNCT_Action for example BSP_LED_Init BSP...

Page 7: ...l interactions between the components of this layer are done directly by calling the feature APIs while the vertical interaction with the low level drivers is done through specific callbacks and stati...

Page 8: ...er and or Middleware components These examples are running on the STMicroelectronics boards listed in Table 2 The STM32CubeF2 firmware is able to run on any compatible hardware The users can simply up...

Page 9: ...4STM32 toolchains Figure 4 shows the projects structure for the STM322xG EVAL board 06 9 0LVFHOODQHDRXV XWLOLWLHV 6HW RI H DPSOHV RUJDQL HG E ERDUG DQG SURYLGHG ZLWK SUHFRQILJXUHG SURMHFWV RQWDLQV 670...

Page 10: ...STM32CubeF2 firmware package overview UM1739 10 19 DocID026120 Rev 2 Figure 4 Overview of STM32CubeF2 examples...

Page 11: ...able in the Template directory is provided for the users to quickly build any firmware application on a given board All examples have the same following structure Inc folder that contains all header f...

Page 12: ...n the Figure 3 It is also recommended to copy the package at a location close to your root volume for example C Eval or G Tests because some IDEs encounter problems when the path length is too high Br...

Page 13: ...Other and browse to TrueSTUDIO workspace directory Select File Import select General Existing Projects into Workspace and then select Next Browse to the TrueSTUDIO workspace directory and select the...

Page 14: ...r example HAL is initialized SysTick ISR implemented for HAL_Delay purpose System clock is configured with the maximum frequency of the device Note If you copy an existing project to another location...

Page 15: ...ion a Start by writing the peripheral HAL_PPP_MspInit function For this function proceed as follows Enable the peripheral clock Configure the peripheral GPIOs Configure DMA channel and enable DMA inte...

Page 16: ...veral development environments The user code is kept at the next code generation For more information please refer to the section STM32CubeMX for STM32 configuration and initialization C code generati...

Page 17: ...peripheral APIs HAL focuses on peripheral common functionalities rather than hardware The higher abstraction level allows to define a set of user friendly APIs that can be easily ported from one prod...

Page 18: ...ber of examples available on the boards Section 3 2 Firmware package overview with references to W4STM32 toolchain Figure 4 Overview of STM32CubeF2 examples Section 4 1 Running your first example with...

Page 19: ...hasers are solely responsible for the choice selection and use of ST products and ST assumes no liability for application assistance or the design of Purchasers products No license express or implied...

Reviews: