Esp32 Build Fixのロゴ

Esp32 Build Fix

コミュニティ
agodianel
esp32-build-fix

Diagnoses and fixes ESP-IDF build, link, CMake/Kconfig, component-manager and flashing failures, using the build log to classify the error before changing anything. Use when "idf.py build fails", "undefined reference to", "No such file or directory" for a header, "Failed to resolve component", "CMake Error", "multiple definition of", "region `iram0_0_seg' overflowed", "app partition is too small", "implicit declaration of function", "esptool Failed to connect", "Wrong boot mode detected", "No serial data received", "Permission denied /dev/ttyUSB0", "A fatal error occurred", "set-target", or after an ESP-IDF version upgrade (v4 → v5) breaks the build.

概要

公開者agodianel
リポジトリesp32-claude-workbench
スキル名esp32-build-fix
スター
81
フォーク
7
同梱ファイル
3
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 3個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    agodianelがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Esp32 Build Fix」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/agodianel/esp32-claude-workbench/tree/main/skills/esp32-build-fix
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/agodianel/esp32-claude-workbench.git /tmp/esp32-claude-workbench
mkdir -p .claude/skills
cp -r /tmp/esp32-claude-workbench/skills/esp32-build-fix .claude/skills/esp32-build-fix
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでEsp32 Build Fixを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にEsp32 Build Fixを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Esp32 Build Fixは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

ESP32 Build & Flash Fix

Classify first, then make the smallest fix. Never "fix" a build by deleting configuration the user cares about.

Tools

If the esp32-workbench MCP server is connected, call its tools; otherwise run the CLI. If esp32wb is not on PATH, use uvx --from git+https://github.com/agodianel/esp32-claude-workbench esp32wb <args>. Add --json for machine-readable output.

NeedMCP toolCLI
Classify build / flash outputbuild_log_triageidf.py build 2>&1 | tee build.log; esp32wb build-log build.log (or ... | esp32wb build-log -)
App vs partition sizepartition_checkesp32wb partitions partitions.csv --sdkconfig sdkconfig --bin build/<app>.bin
sdkconfig sanitysdkconfig_reviewesp32wb sdkconfig sdkconfig
Chip facts (toolchain, USB/strapping pins for download mode)chip_infoesp32wb chip <target>
API changed / renamed?search_esp_docsesp32wb docs search "<symbol or error>" --target T

Steps

1. Capture the full first error

Rerun with output captured (idf.py build 2>&1 | tee build.log). The first error matters; later ones are usually cascades. Run esp32wb build-log build.log.

2. Establish context

  • idf.py --version and the version the project expects (README, CI, idf_component.yml dependencies.idf).
  • Target: CONFIG_IDF_TARGET in sdkconfig vs the board you have. A stale sdkconfig from another target causes many confusing errors.
  • Was it building before? What changed (IDF upgrade, new component, new target, managed_components update)?

3. Classify and fix

CategorySignatureUsual fix
Missing headerfatal error: xyz.h: No such file or directoryAdd the owning component to REQUIRES/PRIV_REQUIRES; in recent IDF v5.x releases drivers are split into esp_driver_* components (e.g. esp_driver_gpio, esp_driver_i2c) — driver still works as an umbrella
Linkerundefined reference toSource not in SRCS, missing REQUIRES, C/C++ name mangling (extern "C"), Kconfig option disabling the feature
Duplicate symbolmultiple definition ofFunction defined in a header without static inline, or same file compiled twice
Kconfig'CONFIG_X' undeclaredOption renamed/removed in this IDF version or not enabled; check sdkconfig and IDF migration guide
Component managerFailed to resolve component, version solver errorsFix idf_component.yml constraints; idf.py update-dependencies
API change after upgradeimplicit declaration, unknown type nameFollow the ESP-IDF migration guide (ADC → adc_oneshot, I2C → i2c_master driver, legacy timer/RMT/I2S drivers replaced)
Memory overflowregion 'iram0_0_seg' overflowed, dram0_0_seg overflowMove code out of IRAM, reduce static buffers, enable PSRAM for large buffers
App too bigapp partition is too small / partition check failsLarger app partition or custom partitions.csv, -Os (CONFIG_COMPILER_OPTIMIZATION_SIZE), drop unused features
Target mismatchstatic assertions, missing SoC symbolsidf.py set-target <target> (this regenerates sdkconfig)
Toolchain / envxtensa-...-elf-gcc: not found, riscv32-esp-elf-gcc: not found, Python env errorsRe-run install.sh <target> / export.sh for the IDF version in use

Details and examples: build failure playbook.

4. Flash and monitor failures

Read flash failure playbook for esptool errors (Failed to connect, Wrong boot mode detected, No serial data received, permission denied, invalid header boot loops after flashing). Download-mode entry and the USB port differ per chip — check esp32wb chip <target> for the boot strapping pins and USB-Serial-JTAG pins.

5. Verify

  • Clean build of the affected configuration (idf.py fullclean && idf.py build only after the targeted fix, to prove it is not a stale-cache artifact).
  • No new warnings.
  • If flashing was the issue: flash + boot log showing app_main reached.
  • Record commands and output as test evidence in the mission.

Safety

  • idf.py set-target and deleting sdkconfig discard local menuconfig changes. Back up sdkconfig first and make sure sdkconfig.defaults captures what matters.
  • idf.py erase-flash wipes NVS (Wi-Fi credentials, calibration, bonds). Ask first.
  • Never burn eFuses or enable secure boot/flash encryption to "fix" a flash error.
  • A code change made to fix the build still needs a (brief) implementation contract.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Esp32 Build Fix」では何ができますか?

Diagnoses and fixes ESP-IDF build, link, CMake/Kconfig, component-manager and flashing failures, using the build log to classify the error before changing anything. Use when "idf.py build fails", "undefined reference to", "No such file or directory" for a header, "Failed to resolve component", "CMake Error", "multiple definition of", "region `iram0_0_seg' overflowed", "app partition is too small", "implicit declaration of function", "esptool Failed to connect", "Wrong boot mode detected", "No serial data received", "Permission denied /dev/ttyUSB0", "A fatal error occurred", "set-target", or...

TypingMindでEsp32 Build Fixを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Esp32 Build Fixはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにEsp32 Build Fixをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/agodianel/esp32-claude-workbench/tree/main/skills/esp32-build-fixを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Esp32 Build Fixを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Esp32 Build Fixで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもEsp32 Build Fixを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Esp32 Build Fix」は無料ですか?

はい。agodianelがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇