Using STM32 HAL Library for GPIO Control

Using STM32 HAL Library for GPIO Control

01 Introduction In the development of embedded systems based on STM32 microcontrollers, GPIO (General Purpose Input/Output) control is one of the most fundamental and common operations. By using the STM32 HAL library, configuring and controlling GPIO can be done easily. This article will demonstrate how to use the STM32 HAL library for GPIO control and … Read more

Foolproof Guide: How to Use the All-in-One Development Tool STM32CubeIDE

Foolproof Guide: How to Use the All-in-One Development Tool STM32CubeIDE

Recommended to follow the public account below to learn more embedded knowledge! To get the job done well, one must sharpen one’s tools. The STM32Cube ecosystem is a software ecosystem created by ST for STM32 developers, making it a powerful tool for embedded development. To enhance the usability of the STM32 series microcontrollers, which are … Read more

How to Simulate STM32 Microcontroller in Keil

How to Simulate STM32 Microcontroller in Keil

1. Introduction When learning about the 51 microcontroller, we often use the combination of Keil and Proteus for experiments. This simulation saves us a lot of hardware and time costs, allowing us to visually observe the execution process of the code. However, when switching to the STM32 series microcontrollers, Proteus is obviously not supported, but … Read more

Building the STM32 F103C8T6 Minimum System: Overview and Power System

Building the STM32 F103C8T6 Minimum System: Overview and Power System

This tutorial series will start from the most basic theories and practices, detailing how to build the STM32F103C8T6 minimum system. The article will divide the minimum system into several modules for sequential introduction, thoroughly analyzing the circuit topology and the role of each component in the circuit along with reasons for their selection. This ensures … Read more

Easy Introduction and Practice with STM32 Microcontroller

Easy Introduction and Practice with STM32 Microcontroller

Introduction The STM32 series chips are developed based on the Cortex-M3 core. They adopt the industry-leading Cortex-M3 core architecture, utilizing Harvard architecture and the Thumb-2 instruction set. They can achieve 32-bit performance with a 16-bit code density. Additionally, with single-cycle multiplication instructions, hardware division instructions, and a built-in fast interrupt controller, STM32 chips can run … Read more

Common Issues and Solutions in STM32 Debugging

Common Issues and Solutions in STM32 Debugging

Click the above “Chuangxue Electronics” to follow and easily learn electronic knowledge. Chuangxue Electronics Subscription Daily updates on technical articles in the electronics industry and the latest news on microcontrollers, allowing you to learn easily anytime, anywhere. In the debugging of STM32 microcontrollers, a series of issues may arise. This article mainly introduces the possible … Read more

Hardware Debugging of STM32F373 Control Board

Hardware Debugging of STM32F373 Control Board

Signal Acquisition and Control Circuit Board Based on STM32F373 – Production Process[1] 01 STM32F373 Debugging Process 1. Introduction   This is the signal acquisition and control circuit board just made, designed based on the STM32F373 microcontroller. Below, we will debug this freshly soldered circuit board to prepare for the subsequent software development. 2. Preliminary Debugging 1. … Read more

A Comprehensive Guide to STM32 Watchdog (Part 1)

A Comprehensive Guide to STM32 Watchdog (Part 1)

● Significance of the Watchdog 1、 The c language execution process In microcontrollers, c programs execute sequentially starting from address 0, where the PC pointer indicates the current execution address. For the STM32F407, as the code executes, the PC pointer continuously moves along the memory addresses. When it reaches the last statement of the main … Read more

How to Handle Single Chip Select in STM32 SPI?

How to Handle Single Chip Select in STM32 SPI?

Previously, when using STM32’s SPI to control many external chips, there was only one chip select for a single SPI peripheral. How can we achieve independent chip selection for one master and multiple slaves? SPI Bus Topology Generally, the SPI bus is connected as shown in the figure below, with one master and multiple slaves. … Read more

Testing the 16-bit ADC in STM32F373

Testing the 16-bit ADC in STM32F373

1. Introduction   The previously made test circuit board for the STM32F373 did not have the 16-bit high-precision ADC pins exposed, so a new board was made to test the performance of the 16-bit ADC in the F373. 2. Designing the Circuit Board   Based on the previous experimental circuit board, the original output pin header was … Read more