---
title: "Stop Guessing at Hard Faults"
description: "CLion 2026.2.2 adds an AI skill for diagnosing ARM Cortex-M hard faults through dedicated MCP tooling. Embedded debugging typically requires decoding CFSR and HFSR, matching the faulting program counter to disassembly, and reproducing crashes because default handlers often report only that a fault occurred. When triggered by a stopped hard-fault-family handler or relevant fault evidence, the skill provides decoded status registers, the hardware-stacked exception frame, SVD-decoded peripheral registers, disassembly, and nearby memory to an agent. It supports any debugging tool, including Lauterbach TRACE32, Segger J-Link, and ST-LINK, and can produce a bug location and fix, with optional rerunning to verify the program. The skill is enabled by default but requires CLion’s MCP server; it works in AI chat and CLI mode for Claude Code and Codex, while GitHub Copilot supports CLI mode only."
---

# Stop Guessing at Hard Faults

[Jetbrains](https://yomu.fyi/company/jetbrains) · Oleg Zinovyev · Sep 2, 2026

**Type:** Announcement

## Summary

CLion 2026.2.2 adds an AI skill for diagnosing ARM Cortex-M hard faults through dedicated MCP tooling. Embedded debugging typically requires decoding CFSR and HFSR, matching the faulting program counter to disassembly, and reproducing crashes because default handlers often report only that a fault occurred. When triggered by a stopped hard-fault-family handler or relevant fault evidence, the skill provides decoded status registers, the hardware-stacked exception frame, SVD-decoded peripheral registers, disassembly, and nearby memory to an agent. It supports any debugging tool, including Lauterbach TRACE32, Segger J-Link, and ST-LINK, and can produce a bug location and fix, with optional rerunning to verify the program. The skill is enabled by default but requires CLion’s MCP server; it works in AI chat and CLI mode for Claude Code and Codex, while GitHub Copilot supports CLI mode only.

## Context

Embedded hard-fault investigation requires manual decoding of fault registers, correlating the faulting program counter with disassembly, and sometimes reproducing crashes. Default handlers commonly halt execution without explaining why the fault occurred.

## Approach / What changed

The clion-embedded-hardfault skill uses CLion’s MCP tooling to provide decoded fault status registers, the hardware-stacked exception frame, SVD-decoded peripheral registers, disassembly, and memory around the faulting instruction to an agent.

## Takeaways

- The skill activates when a session stops in HardFault\_Handler, MemManage\_Handler, BusFault\_Handler, or UsageFault\_Handler, or when relevant fault-register or exception-frame terms are mentioned.
- The tooling is vendor-agnostic and supports Lauterbach TRACE32, Segger J-Link, ST-LINK, and other debugging tools.
- The skill is available in AI chat and CLI mode for Claude Code and Codex, but only in CLI mode for GitHub Copilot.

**Tags:** [CLion](https://yomu.fyi/topic/clion), [Debugging](https://yomu.fyi/topic/debugging), [MCP](https://yomu.fyi/topic/mcp)

- Source: [Jetbrains](https://blog.jetbrains.com/clion/2026/09/hard-fault-debugging)
- Source URL: https://blog.jetbrains.com/clion/2026/09/hard-fault-debugging
- Ingested by Yomu: 2026-09-03T11:17:18.539Z

[Read original post](https://blog.jetbrains.com/clion/2026/09/hard-fault-debugging)
