2
1

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.

macOS Big Sur (11.1)で Arduino IDE から ESP8266にアップロードできない問題の解決

Posted at

macOS Bug Sur (11.1) にしてから初めて Arduino IDE を使ったら、ESP8266 にスケッチをアップロードできない問題が発生。
Arduino IDE は最新の 1.8.13にして、ボードとライブラリーもアップデートしたのですが改善されず。

エラーの現象

以下のエラーでボードにアップロードできないという現象です。
"pyserial or esptool directories not found next to this upload.py tool."

わかる範囲で設定を変えてもどうにもならなかったので、ネットで探したら以下のサイトに解決方法がありました。

解決方法

以下は、上記サイトからの引用:
1.- 次のファイルをテキストエディタで開く ~/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/pyserial/serial/tools/list_ports_osx.py
2.- 29 行と 30 行をコメントアウトして下の2行を加える:
iokit = ctypes.cdll.LoadLibrary('/System/Library/Frameworks/IOKit.framework/IOKit')
cf = ctypes.cdll.LoadLibrary('/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation')

下のようにします

# iokit = ctypes.cdll.LoadLibrary(ctypes.util.find_library('IOKit'))
# cf = ctypes.cdll.LoadLibrary(ctypes.util.find_library('CoreFoundation'))
iokit = ctypes.cdll.LoadLibrary('/System/Library/Frameworks/IOKit.framework/IOKit')
cf = ctypes.cdll.LoadLibrary('/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation')

このように書き換えて保存したら Arduino IDE を再起動すると、無事に書き込めるようになりました。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?