Real Time Clock (RTC) software expansion for STM32Cube (AN4759)

The microcontrollers of the STM32L0 Series, STM32L1 Series, STM32L4 Series, STM32F0 Series, STM32F2 Series, STM32F3 Series, STM32F4 Series and STM32F7 Series feature a real-time clock (RTC) peripheral designed to allow the STM32 MCUs to operate with minimum power requirements.

The X-CUBE-RTC application aims to demonstrate how to fully exploit the RTC advantages, thus extending the battery life of the product.

For more details refer to the application note Using the hardware real-time clock (RTC) in low-power modes with STM32 microcontrollers (AN4759).

Key Features

  • Calendar that keeps time and date
  • Tamper detection by erasing backup registers
  • Timestamp for the tampering event
  • RTC usage in Stop mode
  • Smooth digital calibration


Technical Documentation

Product Specifications
Description Version Size
DB2938 DB2938: RTC (real-time clock) software expansion for STM32Cube 2.0 119 KB
Application Notes
Description Version Size
AN4759 AN4759: Using the hardware real-time clock (RTC) in low-power modes with STM32 microcontrollers 3.0 1 MB
User Manuals
Description Version Size
UM2312 UM2312: Development checklist for STM32Cube Expansion Packages 1.0 283 KB
UM2285 UM2285: Development guidelines for STM32Cube Expansion Packages 1.0 485 KB

Presentations & Training Material

Description Version Size
STM32 and STM8 embedded software solutions 6.0 2 MB

Publications and Collaterals

Description Version Size
STM32 Open Development Environment Brochure 17.09 1 MB


License Agreement
Description Version Size
SLA0048 SLA0048: Mix Ultimate Liberty+OSS+3rd-party V1 - SOFTWARE LICENSE AGREEMENT 4.10 86 KB

Get Software

Part Number Software Version Marketing Status Supplier Order from ST
X-CUBE-RTC 2.0.0 Active ST