![]() |
STM32Cube
Version 2.0
Create Projects for STM32F2 Series with STM32Cube HAL and STM32CubeMX
|
The CMSIS-Driver USBH_FS requires:
Valid settings for various evaluation boards are listed in the table below:
Peripheral Resource | MCBSTM32F200 | STM3220G-EVAL |
---|---|---|
USB_OTG_FS Mode | Host_Only | Host_Only |
VBUS Power output pin | PH5 | PH5 |
Overcurrent input pin | PF11 | PF11 |
For different boards, refer to the hardware schematics to reflect correct setup values.
The STM32CubeMX configuration for MCBSTM32F200 with steps for Pinout, Clock, and System Configuration are listed below. Enter the values that are marked bold.
Pin Name | Signal on Pin | GPIO mode | GPIO Pull-up/Pull.. | Maximum out | User Label |
---|---|---|---|---|---|
PA11 | USB_OTG_FS_DM | Alternate | No pull-up and no.. | High | . |
PA12 | USB_OTG_FS_DP | Alternate | No pull-up and no.. | High | . |
Interrupt Table | Enable | Preemption Priority | Sub Priority |
---|---|---|---|
USB On The Go FS global interrupt | ON | 0 | 0 |
Under System open GPIO Pin Configuration
Pin Name | Signal on Pin | GPIO mode | GPIO Pull-up/Pull.. | Maximum out | User Label |
---|---|---|---|---|---|
PH5 | n/a | Output Push pull | No pull-up and no.. | n/a | USB_OTG_FS_VBUS_Power |
PF11 | n/a | Input mode | No pull-up and no.. | n/a | USB_OTG_FS_Overcurrent |