Understanding the SWD Debug Interface Protocol

Understanding the SWD Debug Interface Protocol

Overview 1.1 What is the SWD Protocol SWD (Serial Wire Debug) is a two-wire debugging interface protocol developed by ARM, specifically designed for debugging and programming Cortex-M series microcontrollers. As a replacement for the traditional JTAG interface, SWD significantly reduces the number of pins while maintaining powerful debugging capabilities, making it the mainstream choice for … Read more

Complete Technical Analysis of 51 Microcontroller and PC Serial RS-485 Communication: What You Should Know

Complete Technical Analysis of 51 Microcontroller and PC Serial RS-485 Communication: What You Should Know

In various fields such as industrial control and smart home systems, communication between devices is a key aspect of achieving system functionality. The RS-485 bus, with its strong anti-interference capability, long transmission distance, and multi-node communication advantages, has become a widely used serial communication standard. The 51 microcontroller, as a classic entry-level microcontroller, can achieve … Read more

STM32CUBEMX Tutorial 5 — DMA Configuration & Combining DMA with UART for Data Transfer

STM32CUBEMX Tutorial 5 — DMA Configuration & Combining DMA with UART for Data Transfer

Follow and star the public account “Embedded Development Notes”,so you won’t miss any exciting content! Previous articles recommended:STM32CUBEMX Tutorial 4 — UART (USART) Configuration and Redirecting printf OutputSTM32CUBEMX Tutorial 3 — Using External Interrupts (EXTI)STM32CUBEMX Tutorial 2 — Using GPIO, Input/OutputSTM32CUBEMX Tutorial 1 — Environment Setup and New Project CreationDetailed Installation Guide for STM32CUBEMX1. Introduction … Read more

Understanding the SWD Debug Interface Protocol

Understanding the SWD Debug Interface Protocol

Scan to FollowLearn Embedded Systems Together, learn and grow together Overview 1.1 What is the SWD Protocol SWD (Serial Wire Debug) is a two-wire debugging interface protocol developed by ARM, specifically designed for debugging and programming Cortex-M series microcontrollers. As a replacement for the traditional JTAG interface, SWD significantly reduces the number of pins while … Read more

ESP32: Serial Communication Interface Protocols

ESP32: Serial Communication Interface Protocols

The ESP32, as a powerful IoT chip, integrates various serial communication interface protocols to meet different connectivity and peripheral needs. Below are the main serial communication protocols supported by the ESP32 and their characteristics: 1. Universal Asynchronous Receiver/Transmitter (UART) Protocol Basics: Asynchronous Serial Communication: No clock signal line is required; both parties communicate based on … Read more

MCUViewer: A GUI-Based Debugging Tool for Microcontrollers (MCUs)

MCUViewer: A GUI-Based Debugging Tool for Microcontrollers (MCUs)

Hey, embedded friends, are you still logging with UART, watching the serial output scroll line by line, which is tedious and time-consuming? Have you ever thought: what if there was a visual tool that could help you instantly understand variable changes and function execution times, could the debugging experience be elevated? The answer is — … Read more

Linux Kernel Subsystem – UART Subsystem

Linux Kernel Subsystem - UART Subsystem

1 Introduction In a formal project, I encountered a problem during serial communication where a sequence of data was unexpectedly interrupted by a 00. The data received from the hardware FIFO was correct, but the data received at the upper layer was abnormal. This issue might be obvious to someone with experience, but for those … Read more

Microcontroller Serial Interfaces and Communication Technologies

Microcontroller Serial Interfaces and Communication Technologies

Microcontroller Serial Port Communication Technology The serial interface and communication of microcontrollers are core technologies for data transmission between devices in embedded systems. 1. Basics of Serial Communication 1.Serial vs Parallel Communication Serial communication: Transmits data bit by bit, using fewer pins (14), suitable for long distances and low power consumption scenarios. Parallel communication: Multiple … Read more

A Simple Method to Quickly Read Internal Programs of Chips Using JLink

A Simple Method to Quickly Read Internal Programs of Chips Using JLink

Recently, during mass production of our company’s products, we discovered several boards with abnormal boot internal information, which prevented normal booting into the APP main program. Preliminary analysis suggested that the factory production line mistakenly flashed the boot program of other products. To verify this judgment, we need to read the internal program of the … Read more

In-Depth Analysis of UART Communication: From Low-Level Registers to Interrupt-Driven Processes

In-Depth Analysis of UART Communication: From Low-Level Registers to Interrupt-Driven Processes

Today, while working on an intelligent voice control module, I wanted to reinforce my knowledge of serial communication. Upon reviewing my previous notes, I found them lacking in detail, so I decided to write a new article explaining the principles of serial communication, covering both hardware and software implementations clearly. This will thoroughly clarify the … Read more