STM32CubeMX installation

1、Software download

The development tool used for the tutorial is the STM32CubeIDE software,STM32CubeMX is integrated in the STM32CubeIDE software, so learning STM32CubeMX is beneficial to understand the STM32CubeIDE graphical configuration interface.

1.1、Download URL

ST Official websitehttps://www.st.com/content/st_com/en/stm32cubemx.html

image-20231201104129973

1.2、Choosing a platform

image-20231201104211089

1.3、Filling in information

image-20231201104239556

image-20231201104435745

image-20231201104504025

image-20230920193446307

2、Software Installation

2.1、Open the installer

Open the installation package as an administrator

image-20230920194658787

2.2、Installation Process - Setup

image-20230920195043729

image-20230920195131943

image-20230920195249884

image-20230920195343375

image-20230920195507508

image-20230920195603351

image-20230920195741220

image-20230920195913761

3、Software configuration

Familiar with software options and functions.

3.1、Open the application

image-20230920200237509

3.2、Sign-up - Login to your account

Unable to download firmware package without login account.

image-20230921092206367

image-20230921092320763

image-20230921093235337

image-20230921093751164

image-20230921094040195

image-20230921094341787

image-20230921111729077

image-20230921122341593

3.3、Installing the firmware package

image-20230921122459532

image-20230921122546576

image-20230921122657471

image-20230921122726971

image-20230920201404369

4、Software Usage

Using STM32CubeMX is mainly used for STM32 configuration and initialization code generation.

4.1、Chip selection

image-20230921142135088

image-20230921151934269

4.2、Pin layout and configuration

image-20230921152502928

4.3、Clock configuration

image-20230921161000790

4.4、Project management

image-20230921162000257

image-20230921162739914

image-20230921163144326

4.5、Generative engineering

image-20230921164457321

image-20230921164551521

5、Project folder

5.1、Demo

:Use the STM32CubeMX software to open the file and reconfigure the project

:Corresponding MDK-ARM project file

image-20230921165148153

5.2、Writing the code

USER CODE must be somewhere between USER CODE BEGIN and User code END,otherwise the next project file generated with STM32CubeMX will remove code outside that location

image-20230921170855662