8051-mcu-debug
Use when debugging 8051-compatible microcontrollers, 51 MCU firmware, STC download issues, Keil C51 projects, interrupts, timers, UART, or startup failures
Use when debugging QSPI or OSPI NOR flash, execute-in-place XIP, memory-mapped mode, boot from external flash, cache coherency, dummy cycles, or flash timing
$ npx -y skills add easyzoom/aix-skills --skill qspi-xip-flash-debug --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/qspi-xip-flash-debugContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when debugging QSPI or OSPI NOR flash, execute-in-place XIP, memory-mapped mode, boot from external flash, cache coherency, dummy cycles, or flash timing
name: qspi-xip-flash-debug description: Use when debugging QSPI or OSPI NOR flash, execute-in-place XIP, memory-mapped mode, boot from external flash, cache coherency, dummy cycles, or flash timing
Use this skill to debug QSPI/OSPI flash by separating electrical bring-up, command mode access, memory-mapped mode, cache policy, linker placement, and boot flow. XIP failures often come from timing and memory attributes.
Use this skill when:
SPIFI, or a similar controller.
XIP, boot from external flash, random hard faults, or cache corruption.
mapped resources.
Do not use this skill for generic internal flash programming. Use `mcu-flashing-debug` or `bootloader-debug` instead.
Ask for:
1. Prove command mode slowly. Read JEDEC ID, status registers, erase, program, and readback at conservative speed before enabling memory mapping.
1. Match flash mode entry. Confirm QE bit, opcode set, address width, dummy cycles, wrap mode, and reset sequence for the exact flash.
1. Validate memory-mapped mode. Read known patterns from mapped address space and compare with command-mode reads.
1. Configure cache and MPU. Mark flash XIP as executable/cacheable as appropriate, and device registers as non-cacheable device memory.
1. Align linker and boot flow. Place vectors, code, rodata, assets, and load addresses according to boot ROM and startup expectations.
1. Stress timing. Test temperature, voltage, max clock, deep power-down, reset, and suspend states after the basic path works.
Before claiming QSPI/XIP works:
User:
QSPI XIP 开 cache 后随机 hardfault。
Agent:
1. Checks mapped flash attributes, linker placement, and fault address. 1. Compares command-mode and memory-mapped reads. 1. Verifies cache invalidation after programming and MPU region setup.
AIX Skills is a public collection of Agent Skills, templates, and references for building repeatable AI workflows.
Use when debugging 8051-compatible microcontrollers, 51 MCU firmware, STC download issues, Keil C51 projects, interrupts, timers, UART, or startup failures
Use when integrating, evaluating, configuring, or debugging Avem embedded C framework modules, event-driven components, drivers, middleware, or application…
Use when integrating or debugging Li-ion charger/fuel gauge ICs (BQ24295, BQ27441, MAX17048) over I2C, covering charge start, watchdog host mode, NTC/JEITA…
Use when integrating, designing, or debugging BLE GATT services, characteristics, descriptors, MTU, notifications, indications, pairing, connection parameters,…
Use when debugging embedded bootloaders, application jumps, vector table offsets, firmware upgrade flow, OTA state, image validation, rollback, or boot…
Use when integrating, porting, configuring, or debugging CAN bus libraries, CANBus-Triple, MCP2515, CAN frames, bit timing, filters, or embedded automotive…