Why STM32 LL is More Efficient than HAL

Why STM32 LL is More Efficient than HAL

STM32’s standard peripheral library, HAL, and LL software libraries all have many clever aspects worth learning from. Today, I will talk about how the STM32Cube LL library cleverly uses “static inline” to make the code more efficient. 1Overview Some applications require the MCU to handle tasks efficiently, especially when running algorithms that demand high CPU … Read more

Understanding Bit-Band Operations in STM32 Microcontrollers

Understanding Bit-Band Operations in STM32 Microcontrollers

This issue’s topic: The SRAM of STM32 microcontrollers has two regions that support bit-band operations. So, what is bit-banding? How does bit-band operation work? Today, I will sort out the knowledge points in this area. Let’s talk about: Before introducing bit-band operations, let’s first look at the memory mapping of the ARM Cortex-M3. The address … Read more

Mastering STM32: A Comprehensive Guide for Beginners

Mastering STM32: A Comprehensive Guide for Beginners

Learning microcontrollers just for the sake of it is not the correct approach. You may ask: How to systematically start learning STM32? This is fundamentally a wrong question. If you know how to use the 8051 and can write C, then there is no need to deliberately learn STM32. What you should consider is what … Read more

Why STM32 Stands Out Among Many Microcontrollers?

Why STM32 Stands Out Among Many Microcontrollers?

01 Introduction Before STM32, the dominant player was the 51 microcontroller, along with its “little brothers” MSP430, AVR, and PIC, ruling the microcontroller world. At that time, 8-bit microcontrollers were everywhere in the market, with university textbooks using the 51 as an introduction, and individuals and companies learning microcontrollers primarily using the 51. Although AVR … Read more

Understanding Zero Division Operations in STM32 Microcontrollers

Understanding Zero Division Operations in STM32 Microcontrollers

This issue’s topic: As is well known, in C language, dividing a number by 0 will lead to a division operation exception, causing the program to crash. To avoid program crashes, we need to include checks for 0 in the code. However, when running C program code that performs division by zero on STM32 microcontrollers, … Read more

How to Self-Learn STM32 Microcontrollers

How to Self-Learn STM32 Microcontrollers

Continuing to post my answer. First, you need a development board. If you are just starting in the field of microcontrollers, I recommend starting with videos. At the very least, you should have a book on C programming for reference on C language concepts. When you first start learning, focus on videos. For concepts that … Read more

Running Neural Network Algorithms on STM32 Microcontrollers

Running Neural Network Algorithms on STM32 Microcontrollers

Abstract: Why can neural networks run on STM32? In short, it is to use the X-Cube-AI extension pack in STM32CubeMX to convert currently popular AI frameworks into C code to support usage on embedded devices. Currently, using X-Cube-AI requires STM32CubeMX version 5.0 or higher. Supported models for conversion include Keras, TFlite, ONNX, Lasagne, Caffe, and … Read more

Detailed Process of Porting Modbus on STM32 Bare Metal

Detailed Process of Porting Modbus on STM32 Bare Metal

Follow+Star public number, don’t miss wonderful content Source | Wenxin Yiyan Modbus has many application scenarios and is an essential skill for embedded practitioners. We don’t need to understand it in depth, but it’s necessary to grasp the basic principles. Today, I would like to share the detailed process of porting Modbus on STM32 bare … Read more

Pros and Cons of Popular Development Environments for STM32

Pros and Cons of Popular Development Environments for STM32

Many beginners are asking: Which development tool should I use to learn STM32? First, let me share my opinion: 1. There is no best, only what is suitable; what suits you is the best. 2. There are many development tools, each with its own characteristics, and with advantages, there are also disadvantages. Today, let’s talk … Read more