ST STM32 User Manual

ST STM32 User Manual

Tcpm application
Hide thumbs Also See for STM32:

Advertisement

Quick Links

Introduction
This document describes the STM32 USB-PD (Power Delivery) Expansion Package for
STM32Cube, referenced as X-CUBE-USB-PD.
To discover all our MCU based solutions for USB Type-C™ and Power Delivery technology
please go to our landing page https://www.st.com/content/st_com/en/stm32-usb-c.html.
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 Type-C™ port manager (TCPM).
The provided example helps to develop applications based on USB-PD DRP (Dual Role
Power).
The core of the stack is delivered in library format while the open-source format device part
offers a high level of flexibility to match the design considerations.
This Expansion Package supports one hardware implementation:
Standardized TCPM/TCPC solution for any STM32 microcontroller
April 2020
Ideal solution to upgrade legacy design based-on any STM32 with USB-C™
Lowest memory footprint and easy porting within the Cortex
USB-PD 2.0/3.0+PPS compliant, multi-port
Tested with TCPC controller from On-SEMI FUSB307B. Refer to USB Type-C™
port manager (TCPM)/port controller (TCPC) evaluation board (DB3623).
STM32 TCPM Application
UM2063 Rev 5
UM2063
User manual
®
-M series
www.st.com
1/18
1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32 and is the answer not in the manual?

Questions and answers

Summary of Contents for ST STM32

  • Page 1 User manual STM32 TCPM Application Introduction This document describes the STM32 USB-PD (Power Delivery) Expansion Package for STM32Cube, referenced as X-CUBE-USB-PD. To discover all our MCU based solutions for USB Type-C™ and Power Delivery technology please go to our landing page https://www.st.com/content/st_com/en/stm32-usb-c.html.
  • Page 2: Table Of Contents

    Specific case of TCPM/TCPC architecture ......8 USB-PD ST application setup ....... . 11 Examples description .
  • Page 3 UM2063 List of tables List of tables Table 1. List of acronyms ............5 Table 2.
  • Page 4 ST firmware architecture........
  • Page 5: Overview

    UM2063 Overview Overview This document describes how to use the USB-PD library supporting STM32 32-bit ®(a) microcontrollers based on Arm cores, for regular use and to create a customized application. It covers the following topics to ease the use of the library: •...
  • Page 6: References

    • Universal Serial Bus Type-C™ Port Controller Interface Specification, Revision 1.0, Version 1.2, November 2016 • User manual Managing USB power delivery systems with STM32 microcontrollers (UM2552) • Application note USB Type-C™ Power Delivery using STM32xx Series MCUs and STM32xxx Series MPUs (AN5225) •...
  • Page 7: Usb-C™ Pd Architecture

    UM2063 USB-C™ PD architecture USB-C™ PD architecture Architecture overview The USB Power Delivery specification document defines the communicating layers of a PD device (either provider or consumer) as shown in Figure Figure 1. USB Power Delivery architecture Provider Consumer Device policy manager Device policy manager Policy engine Policy engine...
  • Page 8: Specific Case Of Tcpm/Tcpc Architecture

    In this architecture, one TCPM may be used to drive multiple TCPCs. Protocol (PRL) functionalities are shared between TCPM and TCPC. TCPC must manage: • GoodCRC management • Retransmission ST firmware architecture is described in Figure 8/18 UM2063 Rev 5...
  • Page 9: Figure 3. St Firmware Architecture

    UM2063 USB-C™ PD architecture Figure 3. ST firmware architecture • Device Policy Manager (DPM) DPM’s role is to manage all the ports present in the application and to share the power between them according to the capability of the connected port partners. Once the negotiation of power has ended, an explicit contract is concluded between them.
  • Page 10 USB-C™ PD architecture UM2063 exit specified modes according to those supported by both provider and consumer sides. • Protocol layer high (PRL layer high) This layer’s role is to construct, transmit and receive messages from/to TCPC layers to/from the PE layer. It interacts with the TCPM layer to transmit messages to TCPC through the TCPCi interface.
  • Page 11: Usb-Pd St Application Setup

    An example with USB-PD DRP (TCPM/TCPC architecture) with ON Semiconductor FUSB307 evaluation board More details on the stack library can be found in the user manual regarding the management of USB Power Delivery systems with STM32 MCUs and the wiki. For both links, refer to Section 1.2.
  • Page 12: Examples Description

    Examples description UM2063 Examples description Figure 4. Project structure USB-PD DRP (TCPM/TCPC architecture) This project implements a USB-PD DRP application, suitable for the ON Semiconductor FUSB307 evaluation board, based on the use of USB-PD libraries delivered in the X-CUBE- USB-PD Expansion Package, and highlighting the TCPM/TCPC architecture. 4.1.1 Example setup The USB-PD TCPM/TCPC designed for FUSB307 evaluation board application can be...
  • Page 13: Application Description

    Sink device, it exchanges Power profiles with the connected device and waits for Power Request message from the attached consumer. If the requested power can be met, the STM32 MCU sends the Accept message followed by the PS_RDY message. Explicit Contract is then considered as established.
  • Page 14: Tcpm Api Description

    Examples description UM2063 initialize the Device Policy Manager layer and all the communication layers (PE, VDM, PRL, PHY). – stm32f0xx_hal_conf.h: contains STM32F0xx HAL configuration file (such as enabled IPs) – stm32f0xx_hal_msp.c: contains hardware interface MSP functions (referred to by HAL IP Initialization functions) –...
  • Page 15: Memory Footprint Of The Eval_Fusb307_Drp Example

    7904 (STM32CubeMonUCPD) graphical user interface Application 5286 Application USB-PD library 25592 PD3 Config1 stack 7334 TCPCi drivers for FUSB305 STM32 HAL/LL drivers (Like Flash, 3912 C, USART for debugging) For Tracer debugging Debug 1550 1044 (STM32CubeMonitor-UCPD) FreeRTOS™ 4332 7028 FreeRTOS™ allocation and services...
  • Page 16: Frequently Asked Questions (Faqs)

    Frequently asked questions (FAQs) How can I get the STM32 USB-PD library? The library is provided for free download in a binary format, from www.st.com. The general application note USB Type-C™ Power Delivery using STM32xx Series MCUs and STM32xxx Series MPUs (AN5225) describes how to do power delivery with the STM32.
  • Page 17: Revision History

    UM2063 Revision history Revision history Table 3. Document revision history Date Revision Changes 08-Jun-2016 Initial release. Updated Section 1.2: References, Section 3.1: Overview, Section 3.2: Features, Section 3.3: Library architecture, Section 3.4: Hardware related components (for P-NUCLEO-USB001), Section 4: USB-PD library programming guidelines, Section 4.2: Library...
  • Page 18 ST products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on ST products before placing orders. ST products are sold pursuant to ST’s terms and conditions of sale in place at the time of order acknowledgement.

Table of Contents