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

5. Program download and simulation

Program download and simulation

Program download and simulation1、FlyMCU:Program download1.1、Generate.hex files1.2、Downloading the program1.3、Running the program2、ST-Link:Program download and simulation2.1、Debug configuration2.2、Program download2.3、Program simulation

1、FlyMCU:Program download

FlyMCU software can download the compiled program code (hex file) to the target MCU chip through the serial port.

1.1、Generate.hex files

Using STM32CubeIDE will not generate.hex files by default,You need to check the appropriate option.

  • Properties

image-20230926152839631

  • Check the appropriate options

image-20230926152934564

  • compilation

image-20230926152958123

.hex file location: Debug folder of the project file

1.2、Downloading the program

Using the data line can be through the development board Type-C interface burning program;

After connecting the computer with Type-C data cable, you can check the serial port number of the corresponding device in the device manager: port.

  • Device Manager

image-20230926153435306

  • Flymcu

    BootLoader options:DTR low reset, RTS high reset into BootLoader

image-20231201112034829

1.3、Running the program

After downloading the program successfully, press the RESET button of the development board to observe whether the phenomenon of the development board is normal.

2、ST-Link:Program download and simulation

To download a program using ST-Link, you need to check and set the debugger to ST-Link.

2.1、Debug configuration

image-20230926154953513

  • ST-Link → SWD

image-20230926155111521

  • Hardware wiring

Before using ST-Link to download programs, you need to use four mother-to-mother dupont wires to connect the ST-Link to the development board, and the ST-Link is connected to the computer through a USB interface.

ST-LinkThe SWD interface of the board
3.3V3V3
SWCLKSWCLK
SWDIOSWDIO
GNDGND

2.2、Program download

Click the Debug icon

image-20230926155129482

2.3、Program simulation

image-20231010144324096

  • Debug:Click on "Little Beetle"

image-20230926160106843

  • Breakpoint debugging

image-20230926162749897

  • Viewing variable values

In debug mode, select the Num variable you want to view (here's how to view the Num variable)

image-20231010160345505

xxxxxxxxxx
Variables can be added to the Expression window by right-clicking and selecting the appropriate option, or by manually entering the variable name

image-20231010160420216

When the Num variable is added to the Express window, the value can be viewed in the Expression window, and the actual value of the variable is displayed only when the program is stopped

xxxxxxxxxx
The live expression window allows you to view the changes of global variables in real time

image-20231010160830547

Breakpoint:Double-click on the leftmost part of the current statement to show a blue breakpoint, where the program stops running

Keep running:When the program runs to the breakpoint position, you can use this button to continue running down

Terminate debugging:Exit program debugging

Common Driver Installation
Engineering experience and migration

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/中文