8051-mcu-debug
Use when debugging 8051-compatible microcontrollers, 51 MCU firmware, STC download issues, Keil C51 projects, interrupts, timers,…
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
Claude Code
$ npx -y skills add easyzoom/aix-skills --skill qspi-xip-flash-debug --agent claude-code
Codex
$ npx skills add easyzoom/aix-skills --skill qspi-xip-flash-debug -a codex -y
Cursor
$ npx skills add easyzoom/aix-skills --skill qspi-xip-flash-debug -a cursor -y
Gemini CLI
$ npx skills add easyzoom/aix-skills --skill qspi-xip-flash-debug -a gemini-cli -y
GitHub Copilot
$ npx skills add easyzoom/aix-skills --skill qspi-xip-flash-debug -a github-copilot -y
OpenCode
$ npx skills add easyzoom/aix-skills --skill qspi-xip-flash-debug -a opencode -y
Windsurf
$ npx skills add easyzoom/aix-skills --skill qspi-xip-flash-debug -a windsurf -y
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,…
Use when integrating, evaluating, configuring, or debugging Avem embedded C framework modules, event-driven components, drivers,…
Use when integrating or debugging Li-ion charger/fuel gauge ICs (BQ24295, BQ27441, MAX17048) over I2C, covering charge start,…
Use when integrating, designing, or debugging BLE GATT services, characteristics, descriptors, MTU, notifications, indications,…
Use when debugging embedded bootloaders, application jumps, vector table offsets, firmware upgrade flow, OTA state, image…
Use when integrating, porting, configuring, or debugging CAN bus libraries, CANBus-Triple, MCP2515, CAN frames, bit timing,…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.