Impact and Efficiency Trade-offs of DMA Memory Address Alignment in ARM Cortex-M Cores

Impact and Efficiency Trade-offs of DMA Memory Address Alignment in ARM Cortex-M Cores

@[toc] Impact and Efficiency Trade-offs of DMA Memory Address Alignment in ARM Cortex-M Cores Insert image description here 1. Introduction In embedded systems based on high-performance microcontrollers such as ARM Cortex-M4/M7, Direct Memory Access (DMA) is a key technology for achieving high data throughput and reducing CPU load. However, the efficient operation of the DMA … Read more

Impact of SPI Communication Modes on DMA Controller Configuration Strategies

Impact of SPI Communication Modes on DMA Controller Configuration Strategies

@[toc] Impact of SPI Communication Modes on DMA Controller Configuration Strategies Insert image description here 1. Introduction The Serial Peripheral Interface (SPI) is a synchronous, full-duplex serial communication protocol widely used in embedded systems for data exchange between microcontrollers and various peripherals (such as sensors, memory, and display controllers). Although its physical layer is defined … Read more

How to Print Logs from STM32 Microcontroller Without Using Serial Port

How to Print Logs from STM32 Microcontroller Without Using Serial Port

This article mainly introduces methods for outputting logs in embedded development. The most common method is to output UART logs through the serial port. This method is simple to implement, and most embedded chips have serial port functionality. Related articles: Learning STM32 Microcontroller, Serial Port is Inevitable. However, such a simple function can sometimes be … Read more

Basics of Embedded Programming | Configuration of Serial Port DMA for APM32E030

Basics of Embedded Programming | Configuration of Serial Port DMA for APM32E030

01Introduction: The industrial-grade basic expansion MCU, based on the performance of APM32F030, achieves higher main frequency, lower power consumption, and more advanced analog and communication interfaces. It is also equipped with rich on-chip resources to meet the application upgrade needs of various industries, especially for cost-sensitive applications. It can be widely used in industrial control, … Read more

STM32 Bus Architecture

STM32 Bus Architecture

The STM32 series microcontrollers are 32-bit microcontrollers developed by STMicroelectronics based on the ARM Cortex-M series cores, including several sub-series such as F1, F4, and F7, covering various core architectures like CM0, CM3, and CM4, which can meet different selection requirements. Among them, the F1 series, as a general-purpose type, combines rich peripherals with high … Read more

STM32 UART DMA Transmission Mechanism with Code Example

STM32 UART DMA Transmission Mechanism with Code Example

1 Introduction Direct Memory Access (DMA) is a component used by the CPU to transfer data from one address space to another without CPU intervention. Once the data transfer is complete, the CPU is notified to process the data. Therefore, using DMA can free up CPU resources during large data transfers. Typical DMA data transfer … Read more

High-Speed Sampling and Conversion of ADC (Part 2)

High-Speed Sampling and Conversion of ADC (Part 2)

When performing ADC acquisition on STM32, the difference in time efficiency between using software (interrupt or polling) to transfer data and using DMA to transfer data is very significant. This difference is mainly reflected in CPU time consumption and system responsiveness, rather than the time taken for a single sampling conversion itself. For example, consider … Read more

A Common Driver Design Pattern in Embedded Development and Bug Case Sharing

A Common Driver Design Pattern in Embedded Development and Bug Case Sharing

1. Introduction In embedded development, the design of drivers is mostly about implementing data flow links. Simply put, a driver is a “data mover”, transferring data from the application layer to the hardware interface for sending, and moving data from the hardware interface back to the specified space in the application layer. Of course, a … Read more

UART Serial Port Software Development Process (Based on MCU)

UART Serial Port Software Development Process (Based on MCU)

Preparation Work Hardware Confirm the MCU serial port (USART1, UART4, etc.); Confirm the “pins” (TX: transmit pin, RX: receive pin). For example: PA9, PA10; TX connects to RX, RX connects to TX, GND connects to GND; Note: Ensure common ground (GND), which is essential for the signal circuit and level reference. Protocol Format: Ensure that … Read more

Design of Embedded Audio System Based on IIS Bus

Design of Embedded Audio System Based on IIS Bus

The embedded audio system is widely used in embedded fields such as GPS navigation, PDAs, and 3G mobile phones. However, there is currently little research in this area in China. The audio system design includes both software and hardware design, with a hardware architecture based on the IIS bus. IIS (Inter-IC Sound bus), also known … Read more