Tagged articles
STM32
43 articles · Page 1 of 1
This guide walks through the essential steps of STM32 development—from reading schematics and configuring CubeMX to structuring code, debugging with tools like J‑Link RTT, and optimizing performance, providing practical tips to avoid common pitfalls and build reliable embedded systems.
CubeMXDebuggingEmbedded
0 likes · 6 min read

The article argues that beginners should skip exhaustive register manuals, use STM32's HAL library and CubeMX to quickly build functional projects, then deepen their understanding of registers only when performance or special needs arise, emphasizing practical experience over premature low‑level study.
CubeMXHALSTM32
0 likes · 5 min read

This tutorial walks through STM32's eight GPIO operating modes—four inputs and four outputs—detailing their electrical behavior, typical use cases, configuration steps, and providing complete HAL code examples to help embedded developers choose the right mode for reliable designs.
C++EmbeddedGPIO
0 likes · 16 min read

This article explains the open‑drain nature of I2C, why pull‑up resistors are essential for providing a high level, ensuring signal integrity and enabling wired‑AND logic, and offers practical formulas, recommended resistor ranges for different speeds, STM32 configuration examples, and debugging tips.
I2CSTM32bus communication
0 likes · 13 min read

The article explains the essential role of a base‑emitter (BE) resistor in transistor circuits—providing a stable bias, protecting against ESD, speeding up turn‑off, reducing noise sensitivity—and offers practical guidelines for selecting its value and integrating it into common embedded designs.
STM32Switchingbase-emitter resistor
0 likes · 13 min read

This article explains the fundamental concepts and step‑by‑step workflow of ADC conversion in embedded systems, covering sampling, hold, quantization, encoding, and output stages, and provides detailed STM32 HAL code examples along with tips for improving accuracy.
ADCAnalog-to-DigitalEmbedded
0 likes · 13 min read

This tutorial explains the SW-18010P vibration sensor’s features, pinout, and operating principle, then provides detailed hardware wiring, LED initialization, sensor initialization, interrupt handling, and a complete STM32F103C8T6 firmware example that lights a three‑color LED based on vibration detection.
Hardware TutorialLED IndicatorSTM32
0 likes · 9 min read

This tutorial explains how to use the YS‑IRTM NEC infrared codec module with an STM32F103C8T6 MCU to decode remote‑control signals, map them to UART commands, and drive a three‑color LED, covering hardware wiring, protocol details, UART configuration, and full source code.
EmbeddedLED controlNEC protocol
0 likes · 12 min read

This guide explains how to use a custom dynamic loader library on STM32 (Cortex‑M7) microcontrollers, covering project structure, installation steps, and runtime usage to load relocatable AXF files into RAM similarly to DLLs or shared objects.
C++Dynamic LoadingEmbedded
0 likes · 7 min read

This article introduces the lightweight lwbtn library for embedded C, explains its core features, shows how to integrate it on STM32 with a complete demo, and provides an in‑depth analysis of its architecture, state‑machine processing, click detection algorithm, configuration options, and practical usage tips.
C++EmbeddedGPIO
0 likes · 13 min read

This tutorial walks through STM32F103ZET6 ADC fundamentals, explains key parameters, demonstrates how to use the VOFA+ PC tool for data visualization, and provides step‑by‑step implementations of several filtering algorithms—including first‑order complementary, median, arithmetic average, moving average, limit‑average, and Kalman filters—complete with code examples and performance analysis.
ADCC++Embedded
0 likes · 16 min read

This article explains the purpose, operation modes, configuration parameters, and register-level setup of DMA in STM32 microcontrollers, illustrating how DMA offloads data transfers from the CPU, improves performance, and provides concrete code examples for UART and memory‑to‑memory transfers.
DMADirect Memory AccessPeripheral Programming
0 likes · 23 min read

This article walks through migrating the USB stack of the STM32‑based candleLight_fw project to HPMicro's cherryUSB, detailing key source files, descriptor conversions, endpoint registration, vendor‑request handling, and showing how four CAN channels are enabled with code snippets and screenshots.
CANEmbeddedHPMicro
0 likes · 6 min read

This article provides a comprehensive interview guide for embedded systems positions, covering Linux thread scheduling, single‑core CPU execution, STM32 chip specifications, SPI communication, DMA concepts, synchronization primitives, priority inversion solutions, debugging techniques, and software design considerations.
DMALinux schedulingSPI
0 likes · 21 min read

This guide explains how to replicate Linux kernel's initcall mechanism in STM32 projects by using function‑pointer sections, modifying the linker script, and defining ordered initialization macros to replace sequential main‑function calls, enabling modular and loosely‑coupled code execution.
C++InitcallLinux kernel
0 likes · 8 min read

This guide explains what software timers are, their implementation principles in operating systems, and provides a complete STM32‑based example with data structures, state machines, and full C code for initialization, start, update, stop, and status queries.
CallbackSTM32embedded C
0 likes · 10 min read

This article explains what software timers are, their implementation principles in operating systems, and provides a detailed STM32-based example—including clock tick handling, data structures, state management, and full C code for initializing, starting, updating, stopping, and testing timers.
CallbackSTM32embedded C
0 likes · 10 min read

This article explains the concept of software timers, their implementation principles in operating systems, and provides a complete STM32 example with data structures, state management, and functions for initializing, starting, updating, stopping, and querying timers.
Real-Time Operating SystemSTM32c-programming
0 likes · 10 min read

This article presents two widely used software timeout mechanisms for embedded systems, explaining their concepts, implementation steps, code examples, and a comparative analysis to help engineers replace CPU‑blocking delays with hardware‑timer‑based solutions.
C++STM32Timeout
0 likes · 6 min read

This article explains C language memory partitioning—including stack, heap, global/static, constant, and code sections—illustrates their characteristics and growth directions, then applies the concepts to STM32F103 by showing memory map details and providing a complete Keil‑based C program that prints the addresses of variables in each region.
C++Data SegmentEmbedded
0 likes · 10 min read

This article explains the C language memory segmentation—including stack, heap, global/static, constant, and code areas—illustrates their behavior on STM32F103 with Keil V5, and provides detailed example code that prints the addresses of variables in each region to demonstrate allocation and lifetime.
C++EmbeddedHeap
0 likes · 9 min read

A customer reported that on an STM32F103VDT6, disconnecting the external 8 MHz crystal did not trigger the external watchdog reset because the MCU’s PLL continued to generate a low‑frequency clock, but enabling the Clock Security System (CSS) and handling the NMI correctly resolves the issue.
CSSEmbeddedHSE
0 likes · 6 min read

This guide explains the purposes and effects of the C/C++ static and volatile keywords, compares the sizeof operator with strlen, describes reliable methods for comparing floating‑point numbers, outlines how floating‑point operations affect STM32 interrupt performance, and provides a concise overview of the I²C protocol and address configuration on STM32 devices.
C++I2CSTM32
0 likes · 9 min read

This tutorial shows how to wire a three‑color LED to an STM32F103C8T6, configure a HC‑08 Bluetooth module for UART communication, and write C code that toggles each LED based on received keywords (green, yellow, red) using the STM32 HAL library.
BluetoothEmbeddedHardware Tutorial
0 likes · 12 min read

This article introduces the Zorb Framework, a lightweight object‑oriented embedded framework for STM32F429, detailing its core modules, hardware setup, debugging output, assertion handling, and a basic time system with complete C code examples.
C++DebuggingSTM32
0 likes · 7 min read

This article provides a comprehensive set of multiple‑choice, fill‑in‑the‑blank, and true/false questions covering STM32 microcontroller features, FreeRTOS concepts, and general embedded system fundamentals, allowing readers to self‑assess their knowledge and identify gaps.
FreeRTOSQuizSTM32
0 likes · 16 min read

This tutorial explains relay fundamentals, classifications, electrical parameters, wiring diagrams, and provides a complete STM32‑based implementation with source code to control a relay and toggle an LED, offering practical guidance for embedded hardware projects.
RelaySTM32c-programming
0 likes · 10 min read

This tutorial walks you through downloading the STM32F103C8T6 template project, configuring Keil MDK for simulation, using the debugger’s control buttons and windows, measuring function execution time, and leveraging watch, memory, and peripheral views to efficiently debug embedded code.
DebuggingKeilMDK
0 likes · 14 min read

This tutorial walks you through downloading the source, understanding HC‑08 specifications, wiring the module to an STM32F103C8T6 board, using AT commands to configure roles, power modes, and connections, and implementing UART‑based send/receive code to enable bidirectional communication with a mobile app.
AT commandsBluetoothHC-08
0 likes · 23 min read

This tutorial provides a comprehensive, step‑by‑step guide to using the DHT11 temperature and humidity sensor with an STM32F103C8T6 MCU, covering hardware wiring, sensor specifications, timing diagrams, HAL‑based driver implementation, and complete source code for reliable data acquisition.
C++DHT11HAL
0 likes · 13 min read

This article explains PWM fundamentals, compares several output methods ranging from blocking loops to hardware timer generation, and provides complete STM32F1 example code—including macro definitions, timer configuration, output functions, and practical tips on pin mapping and precision.
PWMSTM32Timer
0 likes · 8 min read

This article provides a comprehensive interview guide for embedded system positions, covering Linux thread scheduling, single‑core CPU execution, STM32 chip specifications, SPI communication, DMA, synchronization primitives, priority inversion solutions, debugging techniques, and memory layout fundamentals.
DebuggingLinuxSTM32
0 likes · 26 min read

This step‑by‑step guide walks you through preparing the Java runtime, installing STM32CubeMX, configuring clocks, GPIOs, and core settings, and finally generating and flashing code for a blinking‑LED demo on an STM32F103 board, while highlighting best practices for beginners.
CubeMXLEDSTM32
0 likes · 9 min read

This comprehensive tutorial walks readers through downloading MDK, understanding its core concepts, exploring the full UI—including menu, toolbar, and project settings—offering practical shortcuts, configuration details, and handy usage tips to boost productivity when developing STM32 applications with Keil MDK.
IDEKeilMDK
0 likes · 17 min read

This step‑by‑step guide shows how to create a reusable STM32F103C8T6 HAL‑based MDK project template, covering source download, folder structure, required files, MDK configuration, and verification to streamline future STM32 development.
HALMDKProject Template
0 likes · 9 min read

This article explains how to build a modular, device‑agnostic LCD driver architecture for STM32 boards, covering hardware scenarios, object‑oriented C design, driver‑device separation, and practical code examples for TFT, COG, and OLED displays.
COGDevice TreeLCD driver
0 likes · 18 min read

This comprehensive guide explains serial communication fundamentals, covering UART/RS‑232/RS‑485 protocols, physical layer standards, baud‑rate calculations, data frame structures, duplex modes, and provides detailed STM32 configuration code for practical embedded development.
RS-232STM32Serial Communication
0 likes · 11 min read

This guide walks you through the fundamentals of STM32 GPIO, covering pin naming, push‑pull vs open‑drain modes, wiring an LED, configuring PB8 with CubeMX, and using HAL functions to programmatically toggle the LED with concise code examples.
CubeMXGPIOHAL
0 likes · 8 min read

This article explains the principles, transfer modes, parameters, features, and register configuration of Direct Memory Access (DMA) in STM32 microcontrollers, illustrating how DMA offloads data movement from the CPU, improves performance, and integrates with peripherals, memory, and interrupt handling.
DMADirect Memory AccessInterrupt
0 likes · 16 min read

This article introduces and compares several popular IoT development boards—including Arduino series, XiaoXiong, and STM32F429—detailing their hardware features, performance differences, power options, communication interfaces, and typical use cases for embedded projects.
ArduinoIoTSTM32
0 likes · 8 min read

Learn how to create a DIY driver fatigue detection device by integrating Tencent Youtu VisionSeed AI vision module with an STM32 microcontroller, covering hardware assembly, UART communication, algorithm selection, and real‑time alert generation using facial key‑point analysis.
AI visionComputer VisionDIY hardware
0 likes · 8 min read

The Huawei LiteOS Workshop in Beijing gathered over 130 online registrants and 100 on‑site developers for a day of hands‑on sessions covering mainstream chip porting, STM32 migration, rapid integration with LianShengDe chips, Keil MDK debugging, and a fun balancing‑car demo, followed by lively Q&A and community bonding.
EmbeddedHuawei LiteOSIoT
0 likes · 6 min read


ITPUBAug 19, 2016 · Fundamentals
This article explains STM32's 43 interrupt channels and how the AIRC register's 4-bit priority fields are divided into pre‑emptive and sub‑priority groups, illustrating each NVIC_PriorityGroup setting with concrete code examples and step‑by‑step configuration instructions.
EmbeddedInterruptPriorityNVIC
0 likes · 9 min read
