STM32Cube  Version 2.1
Create Projects for STM32F3 Series with STM32Cube HAL and STM32CubeMX
 All Files Pages
CMSIS-Driver USBD Setup

The CMSIS-Driver USBD requires:

  • Setup of USB clock to 48MHz
  • Configuration of USB as Device (FS)

Valid settings for various evaluation boards are listed in the table below:

Peripheral Resource STM32373C-EVAL
USB Peripheral USB
D- Pin PA11
D+ Pin PA12

For different boards, refer to the hardware schematics to reflect correct setup values.

The STM32CubeMX configuration for STMicroelectronics STM32373C-EVAL Board with steps for Pinout, Clock, and System Configuration are listed below. Enter the values that are marked bold.

Pinout tab

  1. Configure peripheral
    • Peripherals USB: enable Device (FS)

Clock Configuration tab

  1. Configure USB Clock: "To USB (MHz)": 48

Configuration tab

  1. Under Connectivity open USB Configuration:
    • Parameter Settings: not used
    • User Constants: not used
    • NVIC Settings: enable interrupts
      Interrupt Table Enabled Preemption Priority Sub Priority
      USB high priority global interrupt ON 0 0
      USB low priority global interrupt ON 0 0
    • GPIO Settings: review settings, no changes required
      Pin Name Signal on Pin GPIO output..GPIO mode GPIO Pull-up/Pull..Maximum out Fast Mode User Label
      PA11 USB_DM n/a Alternate ..n/a n/a n/a .
      PA12 USB_DP n/a Alternate ..n/a n/a n/a .
      Click OK to close the USB Configuration dialog