1
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?

More than 3 years have passed since last update.

BigSurのArduino IDEでESP32に書き込めないときの対処方法

Last updated at Posted at 2021-07-19

最初に

先日、bigsurがリリースされ、今までの人生で古いバージョンのOSしか使ってこなかった僕にとって、人生初のメジャーアップグレードでした。もう胸が高まっちゃってOSの不具合なんて検索する頭すらありませんでした。案の定、esp32をarduinoで使うときに書き込めなくなったし、めちゃくちゃ時間かかったのでじぶんのやったことをメモしときます。

対処法1

いま、この問題に対しての対処方法は、僕の調べた限りでは2つあって1つ目は、下のリンクのaungthawdarさんの投稿。僕はこれでうまくいきませんでした。
https://github.com/espressif/arduino-esp32/issues/4408#issuecomment-726271514

対処法2

2つ目は、この記事。これでうまくいきました。この方はM5stackだったのでESP32に向けた記事を書きたいと思います。ただ、ディレクトリが違うだけなのでほぼそのままです。
https://ttrsato.blogspot.com/2020/11/macos-big-sur-arduino-ide-m5stack.html

まず以下のコマンドをターミナルで実行。

% brew install --build-from-source python  
% /usr/local/bin/pip3 install pyserial  

次に、
https://github.com/espressif/esptool
のcodeボタンを押して、zipダウンロードして、解凍しておく。

~/Library/Arduino15/packages/esp32/tools/esptool_py/2.6.1/をひらいて、(ライブラリフォルダはoptionキーを押しながら、ファインダーの’移動’をクリックすると表示されます。)esptoolをesptool.oldに書き換ます。

先ほどダウンロードしたesptool.py(ダウンロードファイルのルートディレクトリにあります)を同じにディレクトリに保存します。そして、esptool.pyをesptoolに書き換えます。

ターミナル上で以下のコマンドを入力して、(XXXには自分のユーザー名が入ります)

% chmod +x Users/XXX/Library/Arduino15/packages/esp32/tools/esptool_py/2.6.1/esptool

~/Library/Arduino15/packages/esp32/tools/esptool_py/2.6.1/esptoolをエディタで開いて、1行目の#!/usr/bin/env python を#!/usr/local/bin/python3に変更します。

これで、動くはずです。やってることは下の記事のEliahg さんの A better fix ... の投稿、そのままです。
https://github.com/pyserial/pyserial/issues/509

1
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
1
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?