Essential Knowledge for Cross-Compilation: Choosing the Wrong -mfloat-abi Can Slow Floating Point Operations by 100 Times (Including Practical Example with Cortex-M4)

Essential Knowledge for Cross-Compilation: Choosing the Wrong -mfloat-abi Can Slow Floating Point Operations by 100 Times (Including Practical Example with Cortex-M4)

Hello everyone, I am a programmer who loves to share. I am happy to share my experiences and understanding from my work. -begin- In embedded development, the handling of floating point operations directly affects the performance and compatibility of programs, and -mfloat-abi is the key option that controls the floating point operation strategy. It determines … Read more

Overview of ARM Assembly: Practical Guide for Cortex-M3/M4

The Cortex-M3/M4 is the most mainstream ARM core in embedded development, widely used in microcontrollers such as STM32. Its assembly language follows the RISC architecture’s “reduced and efficient” design philosophy. This article explains the core logic of ARM assembly step by step, from core registers to common instructions, and practical examples. 1. Core Registers (“Operation … Read more

Conquering Bare-Metal Programming: A Comprehensive Open-Source Microcontroller Practical Guide

Are you eager to gain a deep understanding of the underlying operations of embedded systems? Are you tired of the constraints of frameworks and want to control every detail of the microcontroller? Then, this comprehensive bare-metal programming guide open-source project will take you on an exciting journey into embedded programming! 1. Why Choose Bare-Metal Programming? … Read more

Operating Modes of ARM Cortex-M3/M4

Operating Modes of ARM Cortex-M3/M4

In the field of embedded development, the Cortex-M3/M4 processors have become the preferred architecture in areas such as the Internet of Things and industrial control due to their high performance, low power consumption, and rich peripheral support. This article will delve into its core design mechanisms—the cooperative working mechanism of dual stack pointers (MSP/PSP) and … Read more

Detailed Explanation of the Program Status Register in Cortex-M3/M4

Detailed Explanation of the Program Status Register in Cortex-M3/M4

In the development of ARM Cortex-M series processors, the Program Status Register (PSR or xPSR) is key to understanding the program’s execution state and exception handling.This article will delve into the structure of the PSR in Cortex-M3/M4, including the roles of APSR, IPSR, and EPSR, as well as practical application scenarios, helping developers accurately grasp … Read more

STM32 M4 External Interrupt Issues with CubeIDE

STM32 M4 External Interrupt Issues with CubeIDE

Today, we mainly completed the M4 core interrupt operations of the STM32MP157AAA3 chip. Last week, STM32CubeIDE 1.11.1 was functioning normally, but today there was an issue with creating a project. After searching for the reason without success, I planned to go to the official website to find the software installation package again. I found that … Read more

Getting Started with CubeIDE Development for STM32

Getting Started with CubeIDE Development for STM32

Click the blue words to follow, follow me to learn embedded systems.Today I developed with Cortex-M4, using STM32MP157, which is a dual-core chip integrating M4 and A7. Today mainly involves the installation of CubeIDE, which is quite simple, but there are a few key points to note, let me summarize: 01 STM32CubeIDE Official Download Link … Read more

Multi-Functional Interface MCU | Microchip Ultra-Low Power SAM D5/E5 Series

Multi-Functional Interface MCU | Microchip Ultra-Low Power SAM D5/E5 Series

The SAM D5/E5 series is Microchip’s new generation of 32-bit ARM® Cortex®-M4 high-performance MCUs. It integrates a floating-point unit, operates at speeds up to 120 MHz/400 CoreMark®, with a maximum of 1 MB Flash and 256 KB SRAM, all featuring secure encryption algorithms. This series has extremely low power consumption and ultra-small packaging, making it … Read more

Comparison Between ARM Cortex-M4 and Cortex-M7

Comparison Between ARM Cortex-M4 and Cortex-M7

ARM Cortex-M4 and Cortex-M7 are two embedded processor cores designed by ARM, widely used in the microcontroller (MCU) field. They both belong to the Cortex-M series, but there are significant differences in performance, features, and applicable scenarios. Here is a detailed comparison between the two: 1. Performance Feature Cortex-M4 Cortex-M7 Architecture ARMv7-M ARMv7-M Clock Frequency … Read more