STM32CubeIDE installation

The development tool used for the tutorial is the STM32CubeIDE software

1、Software download

1.1、Software download

ST office websitehttps://www.st.com/content/st_com/en/stm32cubeide.html

image-20231201104829607

1.2、Choosing a platform

image-20231201104853151

1.3、Filling in information

image-20231201104913109

image-20231201105456821

image-20231201105525702

image-20230921173555796

2、Software Installation

2.1、Open the installer

image-20230921174506709

2.2、Installation Process - Setup

image-20230921174734406

image-20230921174827723

image-20230921175019951

image-20230921175121934

image-20230921175245637

image-20230921175518924

image-20230921175801203

3、Software configuration

Familiar with software options and functions.

3.1、Open the application

image-20230921175945830

image-20230921180438030

image-20230921180730651

3.2、Sign-up - Login to your account

image-20230921180902783

3.3、Installing the firmware package

image-20230921181435546

image-20230921181947516

image-20230921182157454

image-20230921182233264

4、Software Usage

STM32CubeIDE integrates STM32CubeMX functions, which can be used for pin configuration, and can be directly used for code writing and debugging.

Tips:The following are required for almost every project. Later in the Peripheral driver tutorial, we will skip the following steps and walk through the pin layout and configuration options to guide the user through the configuration.

4.1、New construction

image-20230921183202024

4.2、Chip selection

image-20230921183505357

4.3、Project setup

image-20230921183713450

image-20230921183800887

image-20230921184008958

image-20230921184612020

4.4、Pin layout and configuration

image-20230921184726486

image-20230921192037669

image-20230921192125144

4.5、Clock configuration

image-20230921192322285

4.6、Project management

image-20230921192608898

image-20230921192905863

image-20230921193009164

4.7、Generate initialization code

Click the Code Generate or Save button to generate the initialization code

image-20230921195013209

image-20230921195055303

4.8、Writing the code

USER CODE must be located between USER CODE BEGIN and User code END,otherwise the next time you use the STM32CubeMX peripheral configuration feature it will remove code outside that location.

image-20230921195620640

4.9、New construction again

Demonstrate how to create a new project in the project file, which is often used in real development

image-20230922222650196

image-20230922222952388

The project file management area will appear for the new project

image-20230922223558179

Refer to the previous steps for the next steps.

5、Q&A

5.1、Encoding format problem

Tip:Project '***' has no explicit encoding set

solution:Change the file encoding → UTF-8image-20230922222301930

image-20231009093754363