Mcu Flashing Debug logo

Mcu Flashing Debug

Community
easyzoom
mcu-flashing-debug

Use when MCU firmware download, flashing, erase, verify, probe connection, boot mode, read protection, or programmer tool operations fail

Overview

Publishereasyzoom
Repositoryaix-skills
Skill namemcu-flashing-debug
Stars
39
Forks
5
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by easyzoom on GitHub. Read the source before you install it.

Installation

Install the Mcu Flashing Debug AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/easyzoom/aix-skills/tree/main/skills/mcu-flashing-debug
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/easyzoom/aix-skills.git /tmp/aix-skills
mkdir -p .claude/skills
cp -r /tmp/aix-skills/skills/mcu-flashing-debug .claude/skills/mcu-flashing-debug
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Mcu Flashing Debug in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Mcu Flashing Debug on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Mcu Flashing Debug is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

MCU Flashing Debug

Overview

Use this skill to debug MCU programming failures safely. Separate connection, erase, program, verify, and reset problems before recommending mass erase, option byte changes, security unlock, or boot configuration changes.

When To Use

Use this skill when:

  • Firmware cannot be downloaded or flashed to an MCU.
  • The programmer reports connect, erase, program, verify, timeout, locked, protected, or target voltage errors.
  • The user mentions ST-Link, J-Link, CMSIS-DAP, OpenOCD, pyOCD, STC-ISP, WCH-Link, Nu-Link, vendor programmers, boot pins, ISP, IAP, DFU, or UART bootloader.

Do not use this skill for application-level bugs after a confirmed successful program/verify/run cycle. For probe-specific debugging (OpenOCD scripts, J-Link config, adapter speed), use openocd-jlink-stlink-debug.

First Questions

Ask for:

  • MCU part number and board.
  • Programmer/probe and connection method.
  • Tool name and exact error output.
  • Firmware artifact path/type: ELF, HEX, BIN, IHX, UF2, or vendor package.
  • Whether erase, program, verify, and reset are separate steps in the tool output.
  • Target voltage, reset wiring, boot pins, and whether the board is externally powered.

Workflow

  1. Classify the failing step. Do not treat "download failed" as one problem. Identify connect, erase, program, verify, reset, or run failure.

  2. Confirm physical and electrical basics. Check power, ground, target voltage sense, reset line, boot pins, and signal wiring before changing software.

  3. Confirm tool-target match. Verify exact chip model, flash algorithm, probe interface, target config, and firmware address.

  4. Lower risk before increasing force. Try lower adapter speed, connect-under-reset, separate erase/program/verify, and fresh rebuild before mass erase.

  5. Preserve logs. Capture programmer output and avoid repeated blind retries.

  6. Ask before destructive operations. Mass erase, security unlock, option byte writes, readout protection changes, bootloader erase, and config fuse changes require explicit approval.

Method Checks

SWD/JTAG

  • Confirm SWDIO/TMS, SWCLK/TCK, RESET, GND, and VTref.
  • Lower adapter clock for long wires or unstable power.
  • Try connect-under-reset when firmware disables debug pins or enters low power.
  • Confirm the debug probe can see target voltage.
  • Confirm readout protection or secure debug is not blocking access.

UART/ISP/IAP

  • Confirm TX/RX cross, common ground, boot pin state, reset/power-cycle sequence, and baud behavior.
  • Confirm the chip actually contains a ROM bootloader or vendor ISP mode.
  • Confirm USB-to-UART voltage level matches target IO voltage.
  • Confirm selected chip model and serial port.

USB DFU/Bootloader

  • Confirm boot mode entry sequence.
  • Confirm USB enumeration and permissions.
  • Confirm package format and target address.
  • Preserve existing bootloader or calibration regions unless explicitly approved.

Verification

Before claiming flashing is fixed:

  • Report connect, erase, program, verify, and reset/run status separately.
  • State the programmer, target chip, interface, adapter speed, firmware artifact, and programmed address.
  • Confirm whether destructive actions were avoided, skipped, or explicitly approved.
  • If verify fails, report the first failing address or range if the tool provides it.

Common Failures

  • Recommending mass erase before confirming wiring and target voltage.
  • Selecting a similar but wrong MCU in the programmer.
  • Flashing a binary to the wrong base address.
  • Ignoring verify failures because program appeared to succeed.
  • Forgetting boot pin or reset timing for UART bootloaders.

Example

User:

text
OpenOCD 连接 STM32 总是 timeout,下载不了。

Agent:

  1. Asks for exact chip, probe, OpenOCD configs, wiring, target voltage, and error log.
  2. Separates connect failure from flash failure.
  3. Suggests lower SWD speed and connect-under-reset before erase.
  4. Asks before readout protection or mass erase operations.

Frequently asked questions

What does the Mcu Flashing Debug AI skill do?

Use when MCU firmware download, flashing, erase, verify, probe connection, boot mode, read protection, or programmer tool operations fail

Why use Mcu Flashing Debug on TypingMind?

Because you install it once and use it with any model. Mcu Flashing Debug is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Mcu Flashing Debug in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/easyzoom/aix-skills/tree/main/skills/mcu-flashing-debug. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Mcu Flashing Debug?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Mcu Flashing Debug?

As many as you like. As long as a model supports skills, you can use Mcu Flashing Debug with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Mcu Flashing Debug AI skill free?

Yes. It is published on GitHub by easyzoom under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇