
ついでにVSCODEで arduino-cli を呼んでCH55xDuinoでコンパイル&ゴーが出来るようにしてみたCalling arduino-cli from VS Code to Compile and Run CH55xDuino Projects
匿名の公開いいねです。記事の保存・お気に入りではなく、Featured、Top 3、重要度、掲載順位には影響しません。仕組みとプライバシーAnonymous public likes are reactions, not saved articles or bookmarks. They do not affect Featured, Top 3, importance, or listing order.How it works and privacy
- VSCodeからarduino-cliを呼び出し、CH55xDuinoをコンパイルして実行できる構成を整えた。
- Arduino IDE内の実行ファイルへのパス設定も記録し、環境を再構築する利用者の手間を減らす。
- VS Code invokes arduino-cli to compile and run CH55xDuino projects.
- It records the Arduino IDE executable path, helping users reproduce the setup.
本ページの本文と要約は AI による自動生成です。日本語版と英語版は言語ごとに独立して生成されるため、表現や詳しさが異なる場合があります。正確性は元記事 (qiita.com) をご確認ください。The body and summaries are AI-generated independently for each language, so wording and detail may differ. Verify accuracy at the original source (qiita.com).
要約と収集メタデータに基づく AI 解説。元記事全文の転載・翻訳ではありません。AI explainer based on the summaries and collected metadata, not a copy or translation of the full source article.
VSCodeから実行
VSCodeからarduino-cliを呼び出し、CH55xDuinoをコンパイルして実行できる構成を整えた記録だ。環境を再構築する際に同じ作業を繰り返さずに済むよう、実行ファイルの指定も残している。
arduino-cli
構成の中心は、VSCodeからarduino-cli.exeを実行することにある。CH55xDuinoのコンパイルから実行までをVSCode上で進められるようにし、Arduino IDEでの作業とは別に呼び出せる形としている。
実行パス
commandには、Arduino IDE内にあるarduino-cli.exeへのパスを設定する。記録された指定先はC:\Program Files\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exeで、VSCodeがこの実行ファイルを呼び出す構成となる。
syntax error
作業のきっかけは、Arduino IDEで遭遇したsyntax errorだった。platform.txtやsdcc.shを調整した流れで、VSCodeからもコンパイルできるようにした。同様の設定を再び行う場合に備え、手順の要点を忘備録としてまとめている。
VS Code and arduino-cli
VS Code can invoke arduino-cli to compile and run CH55xDuino projects. The recorded configuration matters because it helps users reproduce the setup and reduces the work required when rebuilding the environment.
The setup arose after the author encountered an unclear syntax error in the Arduino IDE. While modifying platform.txt and sdcc.sh, the author also decided to make compilation available from VS Code and document the process for future reference.
Compile and Run
The resulting arrangement uses VS Code to call arduino-cli for CH55xDuino compilation and execution. Rather than leaving the steps undocumented and having to repeat the same setup later, the article serves as a record of the working configuration.
The focus is specifically on connecting VS Code with the arduino-cli executable included inside the Arduino IDE installation. This provides the command needed for the compile-and-run workflow described by the author.
Arduino IDE Executable Path
The command configuration points to the arduino-cli executable under the Arduino IDE directory:
C:\Program Files\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe
Recording this executable path is a key part of reproducing the environment. With VS Code configured to invoke that file, the setup supports compiling and running CH55xDuino projects through arduino-cli.
ポコとTECHガイドPoko & TECH Guide
ポコと当サイトのTECHガイドが、記事の要約と収集した情報から読みどころを語るAI生成の対話です。Poko and TECH Dashboard's own TECH Guide discuss the article's highlights in an AI-generated conversation based on its summary and collected source details.
- ポコPokoVS Codeからarduino-cliを呼ぶと、CH55xDuinoのコンパイルと実行までできるの?If VS Code calls arduino-cli, can it compile and run CH55xDuino projects from the editor?
- TECHガイドTECH Guideこの記事では、Arduino IDE内のarduino-cli.exeを指定して、VS Codeからコンパイル&ゴーできる構成にしているよ。The setup points VS Code to arduino-cli.exe inside Arduino IDE, enabling compile-and-go for CH55xDuino projects.
- ポコPoko同じ環境を作り直す人が、実行ファイルの場所を探し直さずに済むってことかな?So this helps people rebuild the same setup without hunting for the executable path again?
- TECHガイドTECH Guideそうだね。パスを記録しておくことで、環境を再構築するときの手間を減らす狙いなんだ。Right. Recording the path is meant to reduce the work needed when recreating the environment.
- ポコPokoVS CodeとArduino IDE内のarduino-cliをつないで、CH55xDuinoを動かすためのメモなんだね。Got it—it’s a note for linking VS Code to Arduino IDE’s arduino-cli and running CH55xDuino projects.
- TECHガイドTECH Guideうん。ただし、syntax errorをきっかけにplatform.txtやsdcc.shも触った流れでまとめた構成だよ。Yes. Just note that this setup was documented after a syntax error led to changes in platform.txt and sdcc.sh as well.





