8
2

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.

【Mac & PlatformIO】 ArduinoやM5Stackへの書き込みエラー "could not open port " の解決方法

Last updated at Posted at 2020-11-04

ArduinoやM5Stackへの書き込みのとき、結構ハマったので、解決方法をここに残す。

環境

macOS Catalina 10.15.7

Visual Studio Code + Platform IO

##エラー内容
M5StackGRAYへ書き込みしたとき以下のエラー発生

serial.serialutil.SerialException: 
[Errno 16] could not open port /dev/cu.usbserial-017D234C:
[Errno 16] Resource busy: '/dev/cu.usbserial-017D234C'

##解決方法
エラーメッセージをそのままググると、以下のサイトに解決方法が載っていた。
https://github.com/adafruit/Adafruit_nRF52_Arduino/issues/366

それによると、

After updating macOS (e.g. from 10.14 Mojave to 10.15 Catalina), reinstall the drivers, here the SiLabs CP2104 driver, even if it was already installed before updating macOS.

訳すと、
MacOSをアップロード(たとえばMojaveからCatalina)したあと、すでにインストールしていても、再度、CP2104ドライバーをインストールすること。


インストール後は、無事にエラーが出ずに書き込みできた!
8
2
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
8
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?