STM32CubeIDE installation

STM32CubeIDE is a free software, the tutorial demonstrates the installation and use of the software!

1. Software Download

1、Software download

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

image-20240830120606898

2. Select the platform

image-20240830120624603

3. Fill in the information

image-20240830120653420

image-20240830120708472

image-20240830120725782

image-20230921173555796

2. Software installation

1. Open the installation package

Open the installation package as an administrator

image-20240821172641461

2. Installation process-settings

image-20230921174734406

image-20230921174827723

image-20230921175019951

image-20230921175121934

image-20230921175245637

image-20230921175518924

image-20230921175801203

3. Software Configuration

Be familiar with the software-related options and functions.

1. Open the application

image-20230921175945830

image-20240821173105251

image-20240821173159091

2. Register-Login account

The new version of STM32CubeIDE requires a registered account to log in before downloading the firmware package and using the software normally:

image-20230921180902783

3. Install the firmware package

image-20230921181435546

image-20230921181947516

image-20230921182157454

image-20230921182233264

4. Software Usage

STM32CubeIDE integrates the STM32CubeMX function, which can be used for pin configuration, as well as direct code writing and debugging.

1. Create a new project

image-20230921183202024

2. Chip selection

Search for STM32F103RCT6

image-20240821174213278

3. Project settings

image-20240821174336509

image-20240821174411429

image-20240821174433911

image-20240821174459660

4. Pin layout and configuration

image-20240821174550492 SYS image-20240821174645467 - RCC image-20240821174727982 5. Clock configuration

image-20240821174908961

6. Project management

image-20240821175051963

image-20240821175127807

image-20240821175211984

7. Generate initialization code

Click the code generation or save button to generate initialization code

image-20240821175257208

image-20240821175400772

8. Write code

User code must be located between USER CODE BEGIN and USER CODE END, otherwise the next time you use the STM32CubeMX peripheral configuration function, the code outside this position will be deleted.

image-20240821175655872

9. Compile code

image-20240821180145746

10. Create a new project again

Demonstrates how to create a new project in a project file. This method is often used in actual development to create a new project

image-20240821175924311

For the following operations, please refer to the previous steps.

5. Common Problems

Encoding format problem

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

Solution: Right-click the project name → Modify file encoding format → UTF-8

image-20240821180224199

image-20240821180307633