STM32CubeMX user interface

UM1718

 

 

GPIO, DMA and NVIC settings can be accessed either via a dedicated button (like other peripherals, or via a tab in the Configuration panel (see Figure 51).

Figure 51. Configuration window tabs (GPIO, DMA and NVIC settings for STM32F4 series)

4.4.10Component configuration panel

This panel appears when clicking on a component name in the left panel. It allows the user to configure the functional parameters required to initialize the peripheral or the middleware in the selected operating mode (see Figure 52). STM32CubeMX uses these settings to generate the corresponding initialization C code.

The configuration window includes several tabs:

Parameter settings to configure library dedicated parameters for the selected peripheral or middleware,

NVIC, GPIO and DMA settings to set the parameters for the selected peripheral (see

Section 4.4.14, Section 4.4.12 and Section 4.4.13).

User constants to create one or several user defined constants, common to the whole project (see Section 4.4.11).

Invalid settings are detected and are:

reset to minimum / maximum valid value if user choice is, respectively, smaller / larger than minimum / maximum threshold

reset to the previous valid value if the previous one is neither a maximum nor a minimum threshold value

highlighted in fuchsia.

84/453

UM1718 Rev 41

UM1718

STM32CubeMX user interface

 

 

Figure 52. Peripheral mode and Configuration view

UM1718 Rev 41

85/453

STM32CubeMX user interface

UM1718

 

 

Table 8 describes peripheral and middleware configuration buttons and messages.

Table 8. Peripheral and Middleware configuration window buttons and tooltips

Buttons and messages

Action

 

 

 

Shows / hides the description panel.

 

 

Tooltip

Guides the user through the settings of

 

 

parameters with valid min-max range.

 

To display it, move the mouse over a

 

parameter value from a list of possible

 

values.

 

 

 

Clicking on the gear icon allows to

 

select whether to display hexadecimal

 

or decimal values, or any value

 

unchecked (No check option).

 

 

 

Search

 

 

 

Resets the component back to its

 

default configuration (initial settings

 

from STM32CubeMX).

 

 

No check option

By default, STM32CubeMX checks that the parameter values entered by the user are valid. You can bypass this check by selecting the option No Check for a given parameter. This allows entering you any value (such as a constant) that might not be known by STM32CubeMX configuration.

The validity check can be bypassed only on parameters whose values are of integer type (either hexadecimal or decimal). It cannot be bypassed on parameters coming from a predefined list of possible values or on those which are of non-integer or text type.

To go back to the default mode (decimal or hexadecimal values with validity check enabled), enter a decimal or hexadecimal value and check the relevant option (hexadecimal or decimal check).

Caution: When a parameter depends upon another parameter that is set to No Check:

Case of a parameter depending on another parameter for the evaluation of its minimum or maximum possible value: If the other parameter is set to No Check, the minimum or maximum value is no longer evaluated and checked.

Case of a parameter depending on another parameter for the evaluation of its current value: If the other parameter is set to No Check, the value is no longer automatically derived. Instead, it is replaced with the formula text showing as variable the string of the parameter set to No check (see Figure 53).

86/453

UM1718 Rev 41

Соседние файлы в папке STM