USB Power Delivery on STM32 software expansion for STM32Cube (UM2063)

The USB Type-C™ is the newest USB connector ecosystem, it addresses the evolving needs of platforms and devices, while retaining the functional benefits of USB.

X-CUBE-USB-PD is a USB-IF certified Expansion Package and consists of libraries, drivers, sources, APIs and application examples running on STM32F0 Series microcontrollers acting as USB Power Delivery controllers or USB Type-C port managers (TCPMs). Examples are provided to help to develop applications based on USB-PD (Provider, Consumer, DRP, Dual Port and VDM).

The "Core" of the stack is delivered in library format while the "Device" part, in open source format, offers high level of flexibility to match the design considerations.

This Expansion Package supports various hardware implementations covering most of the typical USB Type-C use-cases at optimized cost.

Key Features

  • Compliant with USB Type-C™ 1.3 specification and USB Power Delivery 3.0 standard
  • Supports the following USB-PD 3.0 optional features:
    • Programming power supply (PPS), fast role swap (FRS), extended messages
    • Authentication messages and commands via USB-PD protocol
  • Compliant with Type-C port controller interface (TCPCi) specification
    • Enables the STM32 to act as TCPM (Type-C port manager) and to control multi TCPCs (Type-C port controllers)
  • Provider (source), Consumer (sink) and Dual-Role Power (DRP) roles supported
  • USB Type-C™ CC logic supported
    • Cable insertion, connector orientation detection and attachment with distant port
  • USB-PD messages transmission and reception over selected configuration channel (CC lines)
    • Protocol layer including coding and decoding using BMC and 5b4b coding
  • Structured VDM (vendor defined messages) support allowing alternate mode extensions implementation
  • PD communication supported for the two sides of the USB-C cable (SOP’, SOP’’)
  • Drive VCONN and SuperSpeed switches for flippable connector or alternate modes
  • BIST mode support: BIST mode to enable platform testing at runtime




Technical Documentation

Product Specifications
Description Version Size
DB2957 DB2957: STM32 USB-PD (Power Delivery) software expansion for STM32Cube 5.0 182.01 KB
User Manuals
Description Version Size
UM2312 UM2312: Development checklist for STM32Cube Expansion Packages 1.0 283.23 KB
UM2285 UM2285: Development guidelines for STM32Cube Expansion Packages 1.0 485.46 KB
UM2063 UM2063: STM32 USB-PD (Power Delivery) software expansion for STM32Cube 4.0 1.94 MB

Presentations & Training Material

Description Version Size
STM32 and STM8 embedded software solutions 7.0 3.12 MB
Solutions for USB-C™ & Power Delivery 1.1 843.01 KB

Publications and Collaterals

Description Version Size
STM32 Open Development Environment Brochure 17.09 1.21 MB
Sensor & motion algorithm software pack for STM32Cube 1.0 544.58 KB


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

Tools and Software

Evaluation Tools
Product Evaluation Tools
Solution Evaluation Tools

Get Software

Part Number General Description Software Version Supplier Marketing Status GitHub link Download
X-CUBE-USB-PD USB Power Delivery on STM32 software expansion for STM32Cube (UM2063) 2.1.0 ST Active -


Support & Community