yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
STM32-BoardCar📖
0. Get started quickly
  • 0.ReadMe
  • 1. Installation Instructions
  • 2. Version configuration
  • 3. Smart car installation video
  • 4. Precautions for use
1. Introduction to STM32 development board
  • 1. Learn about STM32
  • 2. Introduction to STM32 development board
  • 3. Development board pin assignment
  • 4. Introduction to HAL library and LL library
2. Setting up and using the development environment
  • 1. Common development tools
  • 2. STM32CubeMX Install - Use
  • 3. STM32CubeIDE Install - Use
  • 4. Common Driver Installation
  • 5. Program download and simulation
  • 6. Engineering experience and migration
3. Development board basic tutorial
  • 1. RGB searchlight (GPIO)
  • 2. Buzzer control (GPIO)
  • 3. Button control (EXTI)
  • 4. Serial communication (UASRT)
  • 5. Voltage detection (ADC)
  • 6. Internal temperature sensor(ADC)
  • 7. Independent watchdog(IWDG)
  • 8. Window watchdog(WWDG)
  • 9. Basic timer (TIM6)
  • 10. Universal Timer (TIM3)
  • 11. Advanced timers (TIM1)
  • 12. I2C Communication (IIC)
  • 13. Off-chip Flash (SPI)
  • 14. On-chip Flash (Flash)
  • 15. DMA:USART
  • 16. DMA:SPI
  • 17. DMA:I2C
  • 18. USB communication
  • 19. USB analog U disk
  • 20. FreeRTOS
4. Car expansion tutorial
  • 1. Servo control
  • 2. Basic use of ultrasonic steering gear gimbal
  • 3. Motor control
  • 4. OLED display light sensitivity value
  • 5. Infrared sensor
  • 6. Four-way tracking module
  • 7. Infrared remote control
  • 8. Ultrasonic ranging
  • 9. PS2 controller test
  • 10.K230 Vision Module
  • 11.AI voice interaction integration module
5. Robot car tutorials
  • 1. Car line patrol
  • 2. Ultrasonic follow
  • 3. Ultrasonic obstacle avoidance
  • 4. Ultrasonic obstacle avoidance (servo gimbal version)
  • 5. Infrared sensor obstacle avoidance
  • 6. Infrared remote control
  • 7. PS2 handle remote control
  • 8.K230 face tracking on PTZ
  • 9.K230 color tracking
  • 10.K230 Color Line Patrol
  • 11.K230 QR code command
  • 12.K230 machine code tracking
  • 13.K230 road sign indication action (voice)
  • 14.K230 color response (voice)
  • 15.K230 gesture control (voice)
  • 16.K230 Rock-Paper-Scissors Game (Voice)
6. Operation video
  • 1-How to install STM32CubeIDE software
  • 2-How to create Demo project
  • 3-How to download code into STM32 robot car
  • 4-How to open and compile a code file for STM32
  • 5-About IR control and Charge battery
Download
  • Code
  • SCH
  • Software File
  • STM32 Chip DataSheet
  • Installation manual
Download ZIP

Welcome to STM32-BoardCar repository

3. STM32CubeIDE Install - Use

STM32CubeIDE installation

STM32CubeIDE installation1、Software download1.1、Software download1.2、Choosing a platform1.3、Filling in information2、Software Installation2.1、Open the installer2.2、Installation Process - Setup3、Software configuration3.1、Open the application3.2、Sign-up - Login to your account3.3、Installing the firmware package4、Software Usage4.1、New construction4.2、Chip selection4.3、Project setup4.4、Pin layout and configuration4.5、Clock configuration4.6、Project management4.7、Generate initialization code4.8、Writing the code4.9、New construction again5、Q&A5.1、Encoding format problem

The development tool used for the tutorial is the STM32CubeIDE software

1、Software download

1.1、Software download

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

image-20231201104829607

1.2、Choosing a platform

  • platform:Windows

image-20231201104853151

1.3、Filling in information

  • Agreement of consent

image-20231201104913109

  • Filling in information

image-20231201105456821

The email address needs to be filled in accurately, and the software download link will be sent to you by email
  • Complete submission

image-20231201105525702

  • Email to download the installer

image-20230921173555796

xxxxxxxxxx
Click on the link to go to the official website, the website will automatically jump out of the software compressed package download window

2、Software Installation

2.1、Open the installer

  • Administrator

    Open the installation package as an administrator

image-20230921174506709

​x
If you open the software installation package, then you see "NSIS ERROR: error launching installer" error:

Please put the package in the path without Chinese characters

2.2、Installation Process - Setup

  • Next

image-20230921174734406

  • Agreement of consent → I agree

image-20230921174827723

  • Location of installation → Next → Install
xxxxxxxxxx
The following are recommended to use the default installation location of the software and the path does not contain Chinese characters

image-20230921175019951

image-20230921175121934

xxxxxxxxxx
Check the option to install ST-Link and J-Link drivers
  • Installing the driver

image-20230921175245637

xxxxxxxxxx
If you followed the tutorial in Chapter 2 to this point, you'll notice that the ST-Link, J-Link, and ULINK drivers are all installed
  • Waiting for installation → Next

image-20230921175518924

  • Finish

image-20230921175801203

3、Software configuration

Familiar with software options and functions.

3.1、Open the application

  • Click on Left mouse button:double-click the desktop app

image-20230921175945830

  • Choosing a workspace

image-20230921180438030

xxxxxxxxxx
You can create a new folder, the folder path can not contain Chinese characters

image-20230921180730651

3.2、Sign-up - Login to your account

image-20230921180902783

xxxxxxxxxx
Since I installed STM32CubeMX before and logged in my account on that software, the system logged in my account by default

Do not register and login accounts can refer to the "STM32CubeMX installation" tutorial

3.3、Installing the firmware package

  • Help → Manage embedded software packages

image-20230921181435546

  • Install the latest firmware package of the STM32F1 series

image-20230921181947516

xxxxxxxxxx
1. The chip firmware package cannot be installed without logging into the account

2. To install or uninstall, check the box in front of the chip firmware package. Click this option and there will be no install and uninstall options
  • Waiting to download

image-20230921182157454

  • Close the page

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

xxxxxxxxxx
Generally, new projects can only be built through this option when the software is used for the first time, and new projects in the later period can be referred to [9, new construction again].

4.2、Chip selection

  • Chip selection and interface

image-20230921183505357

4.3、Project setup

image-20230921183713450

xxxxxxxxxx
The default configuration is enough, and the project file name can be customized

image-20230921183800887

image-20230921184008958

image-20230921184612020

xxxxxxxxxx
The interface is the same as STM32CubeMX

4.4、Pin layout and configuration

image-20230921184726486

  • SYS

image-20230921192037669

  • RCC

image-20230921192125144

4.5、Clock configuration

image-20230921192322285

xxxxxxxxxx
refer to the options involved in the red line

4.6、Project management

  • Project

image-20230921192608898

xxxxxxxxxx
Using STM32CubeIDE can not export other project files (such as MDK-ARM project files)
  • Code Generator

image-20230921192905863

  • Advance Settings

image-20230921193009164

xxxxxxxxxx
Choose the library to use for your initialization code: the HAL library is demonstrated here

4.7、Generate initialization code

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

image-20230921195013209

xxxxxxxxxx
Using Ctrl+S to save will also generate initialization code

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

STM32CubeMX Install - Use
Common Driver Installation

COMPANY

  • About us
  • Team Style
  • Blog

LEARNING & EXPLORATION

  • Tutorials
  • Edge AI hardware
  • Educational robots
  • Embedded intelligent hardware

WHERE TO BUY

  • Yahboom Online Store
  • Amazon
  • Alibaba
  • AliExpress
  • Mercado

TECHNOLOGY SUPPORT

  • Email: support@yahboom.com

BE A DISTRIBUTOR

  • Email: sales@yahboom.com
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文