Peripherals

The Peripherals panel in STM32CubeMX2 provides the following features and capabilities (see Peripheral panel):

Peripheral panel showing peripheral list and controls.

Peripheral panel

  • Display the list of supported peripherals (1): The list includes components such as ADC, timer, UART, I²C interface, and others.
    • Users can filter the list by category or sort it alphabetically in ascending or descending order.

    • Users can filter the list by status to display enabled peripherals or all peripherals.

  • Search for a peripheral (2): Use the search function to find a peripheral without scrolling through the entire list.

  • Access GPIO. DMA, EXTI, and NVIC views (3): Click to open the corresponding view in a separate window. See DMA, EXTI, NVIC sections for further information.

  • Enable or disable a peripheral (4): Click a peripheral to enable it and access its configuration, or disable it if already enabled. See Peripherals configuration section below for further information.

  • Code preview and Quick Menu (5): When a peripheral is enabled, users preview the content of the associated .h and .c files and navigate the settings panel. See Code preview and Quick Menu sections below for further information.

  • Refresh (6): If the UI takes a long time to refresh, use this button to update the display.

  • Split view (7): Split the display horizontally or vertically.

Note

  • Activating a peripheral automatically assigns its corresponding MCU pins (if needed) in the Pinout view, displaying the required connections for operation. The software detects and signals resource conflicts when pin assignments or peripheral settings overlap.

  • The Code preview button is grayed out when a peripheral is disabled.

Peripherals configuration

The Peripherals configuration page in STM32CubeMX2 provides the following features and capabilities (see Peripheral configuration window):

Peripheral configuration window with settings and controls.

Peripheral configuration window

  • Reset configuration (1): Reset the settings of the selected peripheral to their default state.

  • Input fields (2): Define specific values or text for parameters.

  • Dropdown fields (3): Configure specific parameters of the peripheral by selecting a value from a dropdown list.

  • Checkbox fields (4): Enable or disable specific parameters.

  • Collapse All, Quick Menu and Code preview (5): When a peripheral is enabled, users can expand or collapse all the sections of the peripheral configuration, navigate in the settings panel and preview the content of the associated .h and .c files. See Quick Menu and Code preview sections below for further information.

  • Quick menu (6): Toggle the Quick menu window, that ease the settings panel navigation.

  • Code preview (7): Open the Code preview to view the .h and .c files. For details see the Code preview section.

  • Detail View (8): Give some information on the packs used for HW description (DFP) and when enabled the pack used for the SW configuration (HAL).

  • Expand All / Collapse all (9): Expand all the configuration to see all parameters or Collapse All sections to keep main sections.

Quick Menu

The Quick Menu panel in STM32CubeMX2 provides easy navigation in the parameter page. Click any line to move the settings panel to the corresponding section.

Quick Menu panel.

Quick Menu

Additional articles