cmbacktrace-integration
SolidUse when integrating, porting, configuring, or debugging CmBacktrace on Cortex-M faults, stack traces, firmware metadata, fault handlers, or crash logs
AI & Automation 22 stars
2 forks Updated 1 weeks ago MIT
Install
Quality Score: 79/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# CmBacktrace Integration
## Overview
Use this skill to integrate CmBacktrace as a Cortex-M crash diagnosis tool. The key is to preserve fault context, provide correct firmware metadata, route output safely, and verify that backtraces map to the running ELF.
## When To Use
Use this skill when:
- The target is Cortex-M and the user wants automatic fault diagnosis or stack backtraces.
- The issue involves HardFault, fault handlers, register dumps, firmware name/version/hardware version, or crash logs.
- The project uses or plans to use CmBacktrace.
Do not use this skill for non-Cortex-M faults. Use `embedded-fault-debug` or the architecture-specific debug skill instead.
## First Questions
Ask for:
- MCU/core, compiler, optimization level, and build flags.
- Fault handler code and whether the system resets immediately.
- Output backend for crash text: UART, RTT, flash, EasyLogger, shell, or custom.
- Firmware metadata values and where they are defined.
- Whether the ELF/MAP file matching the running image is available.
- Current fault output or absence of output.
## Integration Checklist
1. Integrate in the fault path.
Call CmBacktrace from the HardFault/fault handling path before reset and before clearing fault state.
1. Provide metadata.
Firmware name, hardware version, software version, and platform identifiers should be meaningful enough for field logs.
1. Keep output safe.
Crash output must not block forever, allocate heavily, or depend on services tha...
Details
- Author
- easyzoom
- Repository
- easyzoom/aix-skills
- Created
- 3 months ago
- Last Updated
- 1 weeks ago
- Language
- Python
- License
- MIT
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Solid
embedded-fault-debug
Use when embedded firmware crashes, traps, faults, resets unexpectedly, jumps to default handlers, corrupts stack, or executes invalid instructions
22 Updated 1 weeks ago
easyzoom AI & Automation Solid
cortex-m-debug
Use when debugging Cortex-M microcontrollers, firmware bring-up, SWD/JTAG sessions, faults, startup code, or flashing failures
22 Updated 1 weeks ago
easyzoom AI & Automation Solid
mcuboot-integration
Use when integrating, porting, configuring, or debugging MCUboot secure boot, image slots, swap modes, image signing, rollback, or bootloader upgrades on MCUs
22 Updated 1 weeks ago
easyzoom