yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
L-Type Motor📖
1.About motor
  • About motor
2.ROS robot control board drive
  • 0. Notes (Must read!!)
  • 1. Control motor
  • 2. Timer captures encoder data
  • 3. PID control robot car
  • 4. Kinematic Analysis-Mecanum wheel structure
  • 5. Kinematic Analysis-Ackerman structure
  • 6. Kinematic Analysis-4WD structure
3.STM32 board car tutorials
0. Notes (Must read!!)
  • Notes
1. Get started quickly
  • 0. Installation Instructions
  • 1. Version configuration
  • 2. Smart car installation video
  • 3. Precautions for use
2. Introduction to STM32 development board
  • 0. Notes (must read)
  • 1. Learn about STM32
  • 2. Introduction to STM32 development board
  • 3. Development board pin assignment
  • 4. Introduction to HAL library and LL library
3. 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
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. Car line patrol
  • 11. Ultrasonic follow
  • 12. Ultrasonic obstacle avoidance
  • 13. Ultrasonic obstacle avoidance (servo gimbal version)
  • 14. Infrared sensor obstacle avoidance
  • 15. Infrared remote control
  • 16. PS2 handle remote control
4. 2-channel motor drive module
For MSPM0G3507
  • 1.AT8236 drive tutorials
  • 2.TB6612 drive tutorials
For MSPM0G3519
  • 1.AT8236 drive tutorialsnew
  • 2.TB6612 drive tutorialsnew
5. 4-channel motor drive module
Introduction and Debug
  • 1.Introduction to 4-channel motor drive board
  • 2. Control command
  • 3. 520 motor introduction and usage
  • 4. PC host
IIC communication
  • For MSPM0G3507
  • For MSPM0G3519new
  • For STM32
  • For ESP32
  • For Arduino
  • For PICO2
  • For Jetson NANO
  • For RPi5
  • For RDK X5
USART communication
  • For MSPM0G3507
  • For MSPM0G3519new
  • For STM32
  • For ESP32
  • For Arduino
  • For PICO2
  • For Jetson NANO
  • For RPi5
  • For RDK X5
Download
  • 3D-Model-File
  • Code
Download ZIP

Welcome to L-Type Motor 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/中文