Cortex-M
Technical notes tagged Cortex-M.
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.
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.
Cortex-M Bootloader to Application Jump: What to Reset When the App Crashes Only Sometimes
A bootloader jump that works on the bench but HardFaults or hangs now and then is usually leaking state: SysTick, pending interrupts, PRIMASK, VTOR. A checklist and a tested jump routine.
STM32 MPU Configuration:Protecting Memory Regions in Production Firmware
STM32 MPU (Memory Protection Unit) configuration at register and CMSIS level: set up region attributes, subregions, and privilege separation for production firmware on Cortex-M3/M4/M7/M33.
STM32 HardFault debugging — reading Cortex-M fault registers without a debugger
Practical guide to recovering HardFault root cause on STM32 by reading CFSR, HFSR, and stacked context from firmware — no JTAG/SWD needed.