Deep Analysis and Solutions for Cortex-M HardFault Exceptions

Deep Analysis and Solutions for Cortex-M HardFault Exceptions

1. Introduction In embedded system development, the HardFault exception of Cortex-M microcontrollers is one of the most challenging issues. When the system encounters a severe error that cannot be handled, it triggers a HardFault interrupt, causing the program to stop running. This exception is often caused by memory access errors, stack overflows, illegal instruction executions, … Read more

A Deep Dive into ARM Architecture: Understanding Cortex-M Exception Handling Mechanism

A Deep Dive into ARM Architecture: Understanding Cortex-M Exception Handling Mechanism

In embedded development, handling asynchronous events is an unavoidable challenge. For instance, reading sensor data from an accelerometer to calculate steps, or triggering RTOS context switches via timers, all rely on the support of exception handling mechanisms. Today, we will discuss the exception handling model of ARM Cortex-M. The Core of Exception Handling In the … Read more

Which Microcontrollers are Suitable for Industrial Equipment?

Which Microcontrollers are Suitable for Industrial Equipment?

Commonly used microcontrollers for industrial-grade equipment can be broadly divided into HC32L110C6PA-TSSOP20TR and HC32L136K8T6-LQFP64, both produced by Holtek. 1. HC32L110C6PA-TSSOP20TR Core Architecture: 32-bit ARM Cortex-M0+ core Maximum Clock Frequency: 48MHz Memory: Flash 64KB, SRAM 8KB Pin Count: 20 pins (TSSOP package) Operating Voltage: 2.4V ~ 3.6V Peripheral Interfaces: UART, SPI, I2C, ADC (12-bit resolution), Timer, … Read more

Detailed Explanation of ARM General Purpose Registers and Status Registers

Detailed Explanation of ARM General Purpose Registers and Status Registers

Source: https://blog.csdn.net/qq_34430371/article/details/125820927 Compiled by: Technology Makes Dreams Greater | Li Xiaoyao The author discusses the understanding and insights regarding ARM general purpose registers and status registers. ARM General Purpose Registers For processors, registers can serve as temporary storage for holding intermediate results, as input data for computations, or as an index for accessing memory, with … Read more

Arm Virtual Hardware Officially Launched in China: A Disruptive Change for IoT Product Development?

Arm Virtual Hardware Officially Launched in China: A Disruptive Change for IoT Product Development?

Author: Ada IoT Think Tank Organized and Published Introduction Recently, Arm announced the expansion of its Total Solutions for IoT product roadmap and released two new solutions based on Arm® Cortex®-M and Cortex-A processors.In the past, people may have had a fixed impression of Arm based on its achievements in hardware and IP. However, last … Read more

Exploring the Significance of JPEG Decoding on Resource-Constrained Systems in the Cortex-M Platform

Exploring the Significance of JPEG Decoding on Resource-Constrained Systems in the Cortex-M Platform

IntroductionFor embedded product development, cost is the most fundamental consideration. Even if the conclusions are similar for the same problem, they often have completely different paths in different contexts. Take the question of whether “JPEG software decoding on the Cortex-M platform is meaningful” as an example; the thought process here is quite typical:First, the Cortex-M … Read more

Analysis of Interrupt Handling Methods in HX2000 Series DSP Chips and Their Differences from ARM Cortex-M

Analysis of Interrupt Handling Methods in HX2000 Series DSP Chips and Their Differences from ARM Cortex-M

To start with the conclusion: Simply put, the interrupt mechanism of the HX2000 is more flexible but complex, suitable for high-precision applications such as industrial motor control, whileCortex-M focuses more on ease of use and automated processing, making it suitable for general embedded control.First, let’s discuss the similarities: Firstly, the interrupt vector table mechanism: Both … Read more

Understanding the Power-On Sequence of Cortex-M MCUs in 3 Minutes

Understanding the Power-On Sequence of Cortex-M MCUs in 3 Minutes

Hello everyone, today I, Xiao Zhao, will share some ARM core knowledge with you. Taking the Cortex-M4 as an example, when the MCU powers on, it retrieves the stack pointer from address 0x0 and fetches the address of the first function to be executed by the MCU from 0x4 (the address is four bytes, so … Read more

What are Cortex, ARMv8, ARM Architecture, ARM Instruction Set, and SoC? A Comprehensive Overview

What are Cortex, ARMv8, ARM Architecture, ARM Instruction Set, and SoC? A Comprehensive Overview

Introduction Some fans have asked me what ARM is, and they are confused about the relationships between concepts like Cortex, ARM cores, ARM architecture, ARM instruction set, and SoC. Below, I will clarify some concepts related to ARM. 1. ARM can be considered as a company name, a general term for a type of microprocessor, … Read more

Guide to Building an RTOS Kernel (Part 1)

Guide to Building an RTOS Kernel (Part 1)

1IntroductionImagine if the MCU we work with only runs bare-metal programs; when it reaches a thread that includes a delay, our CPU would start to “idle”.To maximize CPU utilization, we need to use an RTOS (Real-Time Operating System). In simple terms, an RTOS is an operating system that schedules all available resources to complete real-time … Read more