0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Arduino IDEを使った、M5Stack書き込みエラー修正

Posted at

はじめに

自分自身のメモのために書いてます。
一応公開するので、誰かの役に立つと嬉しいです。
雑なのは許してください。

エラー内容

Arduino IDEを使用してM5Stackに書き込みを行いたい。
コンパイルは成功するが、書き込みが上手くいかない。
永遠にuploading errorが出る。

エラーコード

usage: esptool [-h]
               [--chip {auto,esp8266,esp32,esp32s2,esp32s3beta2,esp32s3,esp32c3,esp32c6beta,esp32h2beta1,esp32h2beta2,esp32c2,esp32c6,esp32h2}]
               [--port PORT] [--baud BAUD]
               [--before {default_reset,usb_reset,no_reset,no_reset_no_sync}]
               [--after {hard_reset,soft_reset,no_reset,no_reset_stub}]
               [--no-stub] [--trace] [--override-vddsdio [{1.8V,1.9V,OFF}]]
               [--connect-attempts CONNECT_ATTEMPTS]
               {load_ram,dump_mem,read_mem,write_mem,write_flash,run,image_info,make_image,elf2image,read_mac,chip_id,flash_id,read_flash_status,write_flash_status,read_flash,verify_flash,erase_flash,erase_region,merge_bin,get_security_info,version}
               ...
esptool: error: argument operation: invalid choice: '{upload.flags}' (choose from 'load_ram', 'dump_mem', 'read_mem', 'write_mem', 'write_flash', 'run', 'image_info', 'make_image', 'elf2image', 'read_mac', 'chip_id', 'flash_id', 'read_flash_status', 'write_flash_status', 'read_flash', 'verify_flash', 'erase_flash', 'erase_region', 'merge_bin', 'get_security_info', 'version')
Failed uploading: uploading error: exit status 2

デバイスやその他情報

デバイスマネージャーより、ポートは「USB-Enhanced-SERIAL CH9102
(COM3)」

M5Stackを接続すると、LilyGo T-Displayが自動選択された。
image.png

対処法1(失敗)

https://mag.switch-science.com/2021/11/01/m5stack-v2-6-changes/
M5Stackのv2.6でCH9102Fドライバーの更新が必要らしい
CH9102Fのドライバを入れたが、できない。
https://docs.m5stack.com/en/download
USB Driver & Open source LibraryのCH9102_VCP_SER_Windows実行

対処法2(成功)

設定を変えてみる。以下のサイトにある手順を1つ1つこなしていく。
https://ameblo.jp/bongbongbong73/entry-12881301336.html

うまくいった!ボードを「esp32 dev module」にしたら成功。
image.png

検索ワード「usb-enhanced-serial ch9102 アップデート」
エラー修正に2週間かかった。やっとできてよかった。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?