10
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Arduino IDE】 書き込み時のエラーいろいろ

Last updated at Posted at 2020-11-07

Arduino IDE 書き込み時にハマったエラーの解決策を備忘録を兼ねて投稿します。

###error: stray

error: stray '\343' in program
error: stray '\200' in program

全角空白や無効な文字があったときのエラーなので、修正したらエラーが出なくなりました。


###スケッチが大きすぎます

最大327680バイトのRAMのうち、グローバル変数が59500バイト(18%)を使っていて、ローカル変数で268180バイト使うことができます。
スケッチが大きすぎます。http://www.arduino.cc/en/Guide/Troubleshooting#size には、小さくするコツが書いてあります。
ボードM5Stack-Core-ESP32に対するコンパイル時にエラーが発生しました。

ツール > Patition Scheme:"No OTA(Large APP)"

にしたら直りました。

参考URL
https://qiita.com/TwDaiki/items/e8661b35eccc0c227504


###そのポートは存在しないか、ボードが接続されていません。

serial.serialutil.SerialException: could not open port 'COM4': WindowsError(2, '\x8ew\x92\xe8\x82\xb3\x82\xea\x82\xbd\x83t\x83@\x83C\x83\x8b\x82\xaa\x8c\xa9\x82\xc2\x82\xa9\x82\xe8\x82\xdc\x82\xb9\x82\xf1\x81B')
Failed to execute script esptool
シリアルポート「Failed to execute script esptool」が選択されていますが、
そのポートは存在しないか、ボードが接続されていません。

以下のどれかで直りました。

・シリアルポートをちゃんと選択する。
・シリアルモニタを開いてたら閉じる。
・他のArduinoのファイルを開いてたら閉じる。


###【M5Stack】スケッチの書き込み中にエラーが発生しました

Connecting........_____....._____....._____....._____....._____....._____.....____
スケッチの書き込み中にエラーが発生しました

A fatal error occurred: Failed to connect to ESP32: 
Timed out waiting for packet header

USB Type-C を上下逆に差し替えたら直りました。


10
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?