STM32CubeMX user interface

UM1718

 

 

Tips and tricks

See Table 2: Home page shortcuts for list of menus and shortcuts.

Use the mouse wheel to zoom in and out.

Click and drag the chip diagram to move it.

Click best fit to reset it to best suited position and size.

Use Pinout > Export pinout menus to export the pinout configuration as .csv text format.

Some basic controls, such as insuring blocks of pins consistency, are built-in. See

Appendix A: STM32CubeMX pin assignment rules for details.

4.4.4Pinout menu and shortcuts

Table 6. Pinout menu and shortcuts

Name or Icon

Shortcut

Description

 

 

 

Keep Current Signals

 

Prevents moving pin assignments to match a new peripheral operating

Ctrl-K

mode. It is recommended to use the new pinning feature that can block

Placement

 

each pin assignment individually and leave this checkbox unchecked.

 

 

 

 

 

Show User Label

None

Displays user defined labels in the Pinout view.

 

 

 

Undo Mode and pinout

Ctrl-Z

Undoes last configuration steps (one by one).

 

 

 

 

 

Redoes steps that have been undone (one by one).

Redo Mode and pinout

Ctrl-Y

Warning (limitation): configurations in the platform settings tabs are

 

 

not restored.

 

 

 

 

 

Resets to “Disabled” all peripherals and middleware modes that have

 

 

been enabled. The pins configured in these modes (green color) are

Disable All Modes

Ctrl-D

consequently reset to “Unused” (gray color).

 

 

Peripheral and middleware labels change from green to black (when

 

 

unused) or gray (when not available).

 

 

 

 

 

Clears user pinout configuration in the Pinout view.

Clear Pinouts

Ctrl-P

Note that this action puts all configured pins back to their reset state

and disables all the peripheral and middleware modes previously

 

 

 

 

enabled (whether they were using signals on pins or not).

 

 

 

 

 

Opens a window showing the list of all the configured pins together with

 

 

the name of the signal on the pin and a Label field allowing the user to

 

 

specify a label name for each pin of the list.

 

 

For this menu to be active, at least one pin must have been configured.

Pins/Signals Option

Ctrl-O

Click the pin icon to pin/unpin signals individually.

 

 

Select multiple rows then right click to open contextual menu and

 

 

select action to pin or unpin all selected signals at once.

 

 

Click column header names to sort alphabetically by name or

 

 

according to placement on MCU.

 

 

 

Clear Single Mapped Signals

Ctrl-M

Clears signal assignments to pins for signals that have no associated

mode (highlighted in orange and not pinned).

 

 

 

 

 

76/453

UM1718 Rev 41

UM1718

 

 

STM32CubeMX user interface

 

 

 

Table 6. Pinout menu and shortcuts (continued)

Name or Icon

Shortcut

 

Description

 

 

 

 

 

Provides a list of MCUs that best match the pin configuration of the

 

 

current project. The matching can be:

 

 

– An exact match

List Pinout Compatible MCUs

Alt-L

– A partial match with hardware compatibility: pin locations are the

same, pin names may have been changed

 

 

– A partial match without hardware compatibility: all signals can be

 

 

mapped but not all at the same pin location

 

 

Refer to Section 15: Tutorial 5: Exporting current project configuration

 

 

to a compatible MCU.

 

 

 

Export pinout

-

Generates pin configuration as a .csv text file including alternate

with Alternate functions

functions information.

 

 

 

 

Export pinout

Ctrl-U

Generates pin configuration as a .csv text file excluding alternate

without Alternate functions

functions information.

 

 

 

 

Reset used GPIOs

Alt-G

Opens a window to specify the number of GPIOs to be freed among

the total number of GPIO pins that are configured.

 

 

 

 

 

 

 

Opens a window to specify the number of GPIOs to be configured

 

 

among the total number of GPIO pins that are not used yet.

 

 

Specify their mode: Input, Output or Analog (recommended

Set unused GPIOs

Ctrl-G

configuration to optimize power consumption).

 

 

 

 

Caution:

Before using this menu, make sure that debug pins

 

 

 

(available under SYS peripheral) are set to access

 

 

 

microcontroller debug facilities.

 

 

 

 

Layout reset

-

 

-

 

 

 

 

-

Zooms-in the pinout view.

 

 

 

 

-

Adjusts the chip pinout diagram to the best fit size.

 

 

 

 

-

Zooms-out the pinout view.

 

 

 

 

-

Rotates 90 degrees clock wise.

 

 

 

 

-

Rotate 90 degrees counter-clock wise.

 

 

 

 

-

Flips horizontally between bottom view and top view.

 

 

 

 

-

Flips vertically between bottom view and top view.

 

 

 

 

 

This Search field allows the user to search the Pinout view for a pin

 

 

name, a signal name, a signal label or an alternate pin name

 

-

When it is found, the pin or set of pins matching the search criteria

 

 

blinks on the Pinout view.

 

 

Click the Pinout view to stop blinking.

 

 

 

 

UM1718 Rev 41

77/453

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