Tag
HardFault
Technical notes tagged HardFault.
2026-12-04
Cortex-M Unaligned Access Faults: Why a Cast Packed-Struct Parser Crashes on LDRD, and How to Fix It
A protocol parser that works for months then raises a UsageFault or HardFault on a 4-byte-aligned-looking buffer: which Cortex-M instructions tolerate unaligned addresses, which never do, and safe ways to read wire data.
→
2026-12-03
cortex-m-fault-decoder: From a HardFault Dump to the Cause, and How to Fork It
An open-source tool that turns CFSR, HFSR, fault addresses and the stacked frame into a plain-language cause. How it works, how it was tested on a real STM32F401, and how to run, fork and extend it.
→