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ドライバーをインストールすること。
インストール後は、無事にエラーが出ずに書き込みできた!