Introduction
STM32Cube™ is an STMicroelectronics original initiative to make developers’ life easier 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 the C initialization code using
graphical wizards
A comprehensive embedded software platform, delivered per series (such as STM32CubeL0 for STM32L0 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, STMTouch and FatFS
All embedded software utilities, delivered with a full set of examples.
This user manual describes how to get started with the STM32CubeL0 MCU Package.
Section 1 describes the main features of STM32CubeL0 MCU Package.
Section 2 and Section 3 provide an overview of the STM32CubeL0 architecture and MCU Package structure.
Getting started with STM32CubeL0 for STM32L0 Series
UM1754
User manual
UM1754 - Rev 6 - October 2018
For further information contact your local STMicroelectronics sales office.
www.st.com
1STM32CubeL0 main features
The STM32CubeL0 MCU Package runs on STM32 32-bit microcontrollers based on the Arm® Cortex® -M
processor.
STM32CubeL0 gathers together, in a single package, all the generic embedded software components required to
develop an application on STM32L0 Series microcontrollers. In line with the STM32Cube™ initiative, this set of
components is highly portable, not only within the STM32L0 Series but also to other STM32 series.
STM32CubeL0 is fully compatible with STM32CubeMX code generator that allows the user to generate
initialization code. The package includes the low-layer (LL) and the hardware abstraction layer (HAL) APIs that
cover the microcontroller hardware, together with an extensive set of examples running on STMicroelectronics
boards. The HAL and LL APIs are available in an open-source BSD license for user convenience.
The STM32CubeL0 MCU Package also contains a set of middleware components with the corresponding
examples. They come with very permissive license terms:
Full USB device stack supporting many classes
Device classes: HID, MSC, CDC, DFU
CMSIS-RTOS implementation with FreeRTOS™ open source solution
FAT file system based on open source FatFS solution
STMTouch touch sensing solutions
A demonstration implementing all these middleware components is also provided in the STM32CubeL0 MCU
Package.
Note: Arm is a registered trademark of Arm Limited (or its subsidiaries) in the US and/or elsewhere.
Figure 1. STM32CubeL0 firmware components
Application level demonstrations
Utilities
Middleware level(1)
HAL and LL APIs
(1) The set of middleware components depends on the product Series.
User
application
Evaluation
boards
Discovery
boards
STM32 Nucleo
boards
Dedicated
boards
FatFS RTOS
USB
Hardware abstraction layer APIs
(HAL)
Board Support Package (BSP) Low-lAyer APIs (LL)
Utilities
CMSIS
Touch library
UM1754
STM32CubeL0 main features
UM1754 - Rev 6 page 2/22