STM32CubeMX

Table Of Contents

- STM32CubeMX documentation
- CubeMX User Manual
  - 1 STM32Cube overview
  - 2 Getting started with STM32CubeMX
  - 3 Installing and running STM32CubeMX
  - 4 STM32CubeMX user interface
  - 5 STM32CubeMX tools
  - 6 STM32CubeMX C Code generation overview
  - 7 Code generation for dual-core MCUs (STM32H7 dual-core product lines only)
  - 8 Code generation with TrustZone enabled (STM32L5 series only)
  - 9 Device tree generation (STM32MPUs only)
  - 10 Support of additional software components using CMSIS-Pack standard
  - 11 Tutorial 1: From pinout to project C code generation using an MCU of the STM32F4 series
  - 12 Tutorial 2 - Example of FatFs on an SD card using STM32429I-EVAL evaluation board
  - 13 Tutorial 3 - Using the Power Consumption Calculator to optimize the embedded application consumption and more
  - 14 Tutorial 4 - Example of UART communications with an STM32L053xx Nucleo board
  - 15 Tutorial 5: Exporting current project configuration to a compatible MCU
  - 16 Tutorial 6 - Adding embedded software packs to user projects
  - 17 Tutorial 7 - Using the X-Cube-BLE1 software pack
  - 18 Creating LPBAM projects
  - Appendix A STM32CubeMX pin assignment rules
  - Appendix B STM32CubeMX C code generation design choices and limitations
  - Appendix C STM32 microcontrollers power consumption parameters
  - Appendix D STM32Cube embedded software packages
  - Revision history
- Release Notes
  - Release details
  - Release fixes
  - Known limitations
    - Miscellaneous
    - 2.1. When selecting microcontrollers in the STM32C0 series
    - 2.2. When selecting microcontrollers in the STM32G0 series
    - 2.3. When selecting microcontrollers in the STM32G4 series
    - 2.4. When selecting microcontrollers in the STM32H5 series
    - 2.5. When selecting microcontrollers in the STM32H7 series
    - 2.6. When selecting dual-core microcontrollers in the STM32H7 series
    - 2.7. When selecting microcontrollers in the STM32L5 series
    - 3.4. How to improve the wake-up from Stop sequences without relying on the global SystemClock_Config()
    - 3.3. List pinout-compatible microcontrollers
    - 3.2. DDR binaries for the STM32MP1 boards
    - 3.1. Command line authentication required
    - 2.21. Symbolic links on Ubuntu
    - 2.20. User manual
    - 2.19. DDR test suite
    - 2.18. STM32CubeIDE toolchain
    - 2.13. When selecting microcontrollers in the STM32WL series
    - 2.11. When selecting microcontrollers in the STM32WB series
    - 2.17. When using additional software packs
    - 2.16. When using the Example Selector
    - 2.15. When using the Memory Management Tool
    - 2.14. When selecting microprocessors in the STM32MP1 series
    - 2.11.1. When selecting microcontrollers in the STM32WB0 product lines
    - 2.12. When selecting microcontrollers in the STM32WBA series
    - 2.13.1. When selecting microcontrollers in the STM32WL33 product lines
    - 2.10. When selecting microcontrollers in the STM32U5 series
    - 2.9. When selecting microcontrollers in the STM32U3 series
    - 2.8. When selecting microcontrollers in the STM32N6 series
- Running STM32CubeMX in command-line mode
- FAQ
- Community

# 15 Tutorial 5: Exporting current project configuration to a compatible MCU

| | | | | | | | Updated Section 3.2.3: Uninstalling STM32CubeMX standalone version. | | | | | | | | | | Added setDriver command line in Table 1: Command line summary. | | | | | | | | | | Added List pinout compatible MCUs feature: | | | | | | | | | | Updated Table 15: Pinout menu. | | | | | | | | | | Added Section 15: Tutorial 5: Exporting current project configuration to a compatible MCU | | | | | | | | | | Added Firmware location selection option in Section 4.11.1: Project tab and Figure 187: Project Settings window. | | | | | | | | | | Added Restore Default feature: | | | | | | | | | | Updated Table 8: Peripheral and Middleware configuration window buttons and tooltips | | | | | | | | | | Updated Figure 76: Using constants for peripheral parameter settings. | +—————–+—————–+——————————–+———————————————————————————————————————————————————————————————————————————————-+

> Date | Revision | STM32CubeMX release number | Changes
> 12-Jan-2017 | 18 | 4.19 | Project import no more limited to microcontrollers belonging to the same Series: updated Introduction, Figure 201: Automatic project import, Figure 202: Manual project import, Figure 203: Import Project menu - Try Import with errors and Figure 204: Import Project menu - Successful import after adjustments. Modified Appendix B.3.4: FatFs, B.3.5: FreeRTOS and B.3.6: LwIP. Added Appendix B.3.7: Libjpeg.
> 02-Mar-2017 | 19 | 4.20 | Table 17: STM32CubeMX Chip view - Icons and color scheme: Updated list of alternate function example. Updated example and description corresponding to function mapping on a pin. Added example and description for analog signals sharing the same pin. Updated Figure 87: Peripheral Configuration window (STM32F4 Series), Figure 74: User Constants tab, Figure 80: Consequence when deleting a user constant for peripheral configuration, Figure 81: Searching for a name in a user constant list and Figure 82: Searching for a value in a user constant list. Added Section 5.3.6: SMPS feature. Added Section 6.4: Additional settings for C project generation. Added STM32CubeF4 to the list of packages that include Libjpeg in Appendix B.3.7: Libjpeg.
> 05-May-2017 | 20 | 4.21 | Minor modifications in Section 1: STM32Cube overview. Updated Figure 40: New Project window - MCU selector and Figure 187: Project Settings window. Updated description of Project Settings in Section 4.11.1: Project tab. Updated Figure 199: Advanced Settings window. In Appendix B.3.7: Libjpeg, added STM32CubeF2 and STM32CubeH7 in the list of software packages in which Libjpeg is embedded. Modified Figure 758: STM32Cube Embedded Software package lookand-feel.

> Date | Revision | STM32CubeMX release number | Changes
> 06-Jul-2017 | 21 | 4.22 | Added STM32H7 to the list of supported STM32 Series. Added MCU data and documentation refresh capability in Section 3.4: Getting updates using STM32CubeMX and updated Figure 18: Updater Settings window. Added capability to identify close MCUs in Section 4.2: New Project window, updated Figure 40: New Project window - MCU selector, added Figure 29: New Project window - MCU list with close function and Figure 30: New Project window - List showing close MCUs., updated Figure 591: MCU selection. Updated Figure 50: STM32CubeMX Main window upon MCU selection. Added Rotate clockwise/Counter clockwise and Top/Bottom view in Table 15: Pinout menu. Added Section 4.1.4: Social links. Updated Figure 395: Configuring the SMPS mode for each step. Updated Section 6.2: STM32Cube code generation using Low Layer drivers. Updated Figure 618: Project Settings and toolchain selection.
> 05-Sep-2017 | 22 | 4.22.1 | Added STM32L4+ Series in Introduction, Section 5.3: Power Consumption Calculator view and Section 6.2: STM32Cube code generation using Low Layer drivers. Added guidelines to run STM32CubeMX on MacOS in Section 3.3.1: Running STM32CubeMX as a standalone application. Removed MacOS from Section 3.4.3: Running STM32CubeMX plug-in from Eclipse IDE. Added Section 19.10: Ethernet configuration: why cannot I specify DP83848 or LAN8742A in some cases?
> 18-Oct-2017 | 23 | 4.23 | Added Section 1: General information. Renamed Display close button into Display similar items in Section 4.2: New Project window. Added Refresh Data and Docs & Resources menus in Section 5.7.5: Help menu. Added STM32F2, STM32F4 and STM32F7 Series in Section 6.2: STM32Cube code generation using Low Layer drivers. Added Appendix B.3.8: Mbed TLS. Updated STM32CubeMX release number corresponding to user manual revision 22.

> Date | Revision | STM32CubeMX release number | Changes
> 16-Jan-2018 | 24 | 4.24 | Replaced “STM32Cube firmware package” by “STM32Cube MCU package”. Updated Section 1: STM32Cube overview. Updated MacOS in Section 3.1.1: Supported operating systems and architectures. Updated Eclipse requirements in Section 3.1.3: Software requirements. Section 3.4: Getting updates using STM32CubeMX: updated section introduction updated Figure 13: Connection Parameters tab - No proxy Section 3.4.3 renamed into “Installing STM32 MCU packages” and updated. renamed Section 3.4.4 into “Installing STM32 MCU package patches” added Section 3.4.5: Installing embedded software packs updated Section 3.4.7: Checking for updates Updated Figure 42: New Project window - Board selector. Updated Figure 51: STM32CubeMX Main window upon board selection (peripherals not initialized) and introductory sentence. Updated Figure 52: STM32CubeMX Main window upon board selection (peripherals initialized with default configuration) and introductory sentence. Added “Select additional software components” menu in Table 14: Project menu. “Install new libraries” menu renamed “Manage embedded software packages” and corresponding description updated in Table 17: Help menu. Updated Section 3.4.6: Removing already installed embedded software packages. Updated Section 4.14: Update Manager windows Added Section 4.15: Software Packs component selection window. Added pin stacking function in Table 17: STM32CubeMX Chip view - Icons and color scheme. Section 6.2: STM32Cube code generation using Low Layer drivers: added STM32F0, STM32F3, STM32L0 in the list of product Series supporting low-level drivers. Section 12: Tutorial 2 - Example of FatFs on an SD card using STM32429I-EVAL evaluation board: updated Figure 643: Board selection and modified step 6 of the sequence for generating a project and running tutorial 2. Section 14: Tutorial 4 - Example of UART communications with an STM32L053xx Nucleo board: updated Figure 662: Selecting NUCLEO_L053R8 board. Added Section 16: Tutorial 6 – Adding embedded software packs to user projects.
> 16-Jan-2018 | 24 (cont’d) | 4.24 | Added Appendix B.3.9: TouchSensing and B.3.10: PDM2PCM. Section 4.5.14: NVIC configuration window /Default initialization sequence of interrupts: changed color corresponding to interrupt enabling code from green to black bold.

> Date | Revision | STM32CubeMX release number | Changes
> 07-Mar-2018 | 25 | 4.25 | Updated Introduction, Section 1: STM32Cube overview, Section 2.3: Rules and limitations, Section 3.2.1: Installing STM32CubeMX standalone version, Section 4: STM32CubeMX user interface, Section 4.11.1: Project tab and Section 5.13.1: Peripheral and Middleware tree panel. Minor text edits across the whole document. Updated Table 13: File menu functions and Table 12: Relations between power over-drive and HCLK frequency. Updated Figure 40: New Project window - MCU selector, Figure 27: Enabling graphics choice in MCU selector, Figure 187: Project Settings window, Figure 193: Selecting a different firmware location, Figure 77: Enabling STemWin framework, Figure 116: Configuration view for Graphics, Figure 562: Pinout view - Enabling LSE and HSE clocks and Figure 563: Pinout view - Setting LSE/HSE clock frequency. Added Export to Excel, Show favorite MCUs and Section 4.4.16: Graphics frameworks and simulator. Added Section 17: Tutorial 8 – Using STemWin Graphics framework, Section 18: Tutorial 9: Using STM32CubeMX Graphics simulator and their subsections. Added Section B.3.11: Graphics.

> Date | Revision | STM32CubeMX release number | Changes

> Date | Revision | STM32CubeMX release number | Changes |