![](https://csdnimg.cn/release/download_crawler_static/89662280/bg1.jpg)
October 2019 UM1722 Rev 3 1/28
UM1722
User manual
Developing applications on STM32Cube with RTOS
Introduction
The STM32Cube is an STMicroelectronics original initiative to significantly improve
developer productivity by reducing development effort, time and cost. STM32Cube covers
the whole STM32 portfolio.
STM32Cube includes
• 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
STM32CubeF4 for STM32F4 Series)
– The STM32Cube HAL, STM32 abstraction layer embedded software ensuring
maximized portability across the STM32 portfolio,
– Low-layer APIs (LL) offering a fast light-weight expert-oriented layer, which is
closer to the hardware than the HAL. LL APIs are available only for a set of
peripherals.
– A consistent set of middleware components such as RTOS, USB, TCP/IP,
Graphics,
– All embedded software utilities, delivered with a full set of examples.
A real-time operating system is an operating system optimized for use in embedded/real-
time applications. Their primary objective is to ensure a timely and deterministic response to
events. Using a real-time operating system allows applications to be written as a set of
independent threads that inter-communicate using message queues and semaphores.
This user manual is intended for developers who use STM32Cube firmware on STM32
microcontrollers and microprocessors. It provides a full description of how to use the
STM32Cube firmware components with a real-time operating system (RTOS); this user
manual comes also with description of a set of examples based on FreeRTOS™ using the
common APIs provided by the CMSIS-OS wrapping layer. In the STM32Cube firmware
FreeRTOS™ is used as real-time operating system through the generic CMSIS-OS
wrapping layer provided by Arm
®
. Examples and applications using the FreeRTOS™ can
be directly ported on any other RTOS without modifying the high level APIs, only the
CMSIS-OS wrapper has to be changed in this case. Refer to the release notes of the
package to know the version of FreeRTOS™ and CMSIS-RTOS firmware components used
with the STM32Cube.
This document is applicable to all STM32 devices; however for simplicity reason, the
STM32F4xx devices and STM32CubeF4 are used as reference platform. To know more
about the examples implementation on your STM32 device, please refer to the readme file
provided within the associated STM32Cube firmware package.
www.st.com