STSW-STUSB012 Quick Start Guide
STUSB1602 software library for STM32F446
The cover page displays two development boards. The top board is a compact, square-shaped development board with numerous pin headers. The bottom board is a larger, rectangular development board featuring a prominent central integrated circuit and extensive pin connectors. The [ST Logo] and the product title 'STSW-STUSB012 Quick Start Guide' are prominently displayed, along with the subtitle 'STUSB1602 software library for STM32F446'.
Introduction
This document provides an overview of the STUSB1602 software package enabling USB PD stack with NUCLEO-F446ZE and MB1303 shield.
Software Components:
Product | Description |
---|---|
STSW-STUSB012 | STUSB1602 software library for STM32F446 |
IAR 8.x | C-code compiler |
Hardware Components:
Product | Description |
---|---|
NUCLEO-F446ZE | STM32 Nucleo-144 development board |
P-NUCLEO-USB002 | STUSB1602 Nucleo Pack containing MB1303 shield (Nucleo expansion board to be plugged on NUCLEO-F446ZE) |
Software Library Set-up
Step 1: Download the Software Package
Download the STUSB1602 software package by searching for STSW-STUSB012 from the STMicroelectronics website.
Step 2: Obtain Software
On the product page, click on "Get Software" from either the bottom or top of the page.
Step 3: Download and License Agreement
The download will commence after accepting the License Agreement and providing the required contact information.
Step 4: Save and Unzip
Save the file (e.g., en.STSW-STUSB012.zip
) to your laptop and then unzip its contents.
Step 5: Package Contents
The unzipped package contains a DOC
directory, ready-to-use binary files, associated project files, and compliance reports.
Suggested Hardware Requirements
The software library is optimized for compilation on the NUCLEO-F446FE development board when stacked with the MB1303 expansion board (available via the P-NUCLEO-USB002 package).
The MB1303 expansion board features 2 Dual Role Ports (DRP) capable of USB Power Delivery (PD) communication, though its form factor is not optimized.
Hardware Components:
- NUCLEO-F446ZE: This is the STM32 Nucleo-144 development board.
- MB1303: This is the STUSB1602 Nucleo Pack, which includes the MB1303 shield. It is provided as part of the P-NUCLEO-USB002 orderable package and is designed to be plugged onto the NUCLEO-F446ZE.
Two development boards are presented. The board on the left is identified as NUCLEO-F446ZE. The board on the right is labeled MB1303 and is described as being contained within the P-NUCLEO-USB002 orderable package.
NUCLEO-F446ZE Hardware Set-up
The following hardware modifications are recommended for the MB1137 board to effectively utilize the MB1303 shield offering, which provides 2 USB PD ports based on STUSB1602 and STM32F446ZE:
Modifications:
Remove Components:
- SB118
- SB5
- SB6
- R37 (for 2nd port LEDs)
- R38 (for 2nd port LEDs)
Close Components:
- SB144 (for 2nd port LEDs)
- SB145 (for 2nd port LEDs)
Add Components:
- 38-pin connectors on both CN11 and CN12.
For Trace:
- Add a wire connection between PA9-CN9 (pin21) of the MB1303 board and CN5-RX on the Nucleo-MB1137 board.
Software Package Overview
The software library comprises 8 distinct software frameworks, with an additional 3 available without RTOS support. These are all optimized to address common application scenarios.
Project | Typical Application |
---|---|
STM32F446_MB1303_SRC_ONLY(*) | Provider / SOURCE (power management) |
STM32F446_MB1303_SRC_VDM | Provider / SOURCE (power management) + extended message support |
STM32F446_MB1303_SNK_ONLY(*) | Consumer / SINK (power management) |
STM32F446_MB1303_SNK_VDM | Consumer / SINK (power management) + extended message support + UFP support |
STM32F446_MB1303_DRP_ONLY (*) | Dual Role Port (power management) + dead battery mode |
STM32F446_MB1303_DRP_VDM | Dual Role Port (power management) + dead battery mode + extended message support + UFP support |
STM32F446_MB1303_DRP_2ports | 2 x Dual Role Port (power management) + dead battery mode + extended message support + UFP support |
STM32F446_MB1303_DRP_SRCING_DEVICE | Dual Role Port requesting PR_swap when attached in Sink or DR_swap when attached in Source |
Note: By default, all projects are packaged with RTOS support. Projects annotated with an asterisk (*) are available with and without RTOS support.
Further Information
For more detailed information, please refer to the Firmware Package documentation.