Finally, I could successfully wrote sample code to my M5Basic.
Thank you for your kindly suggestion.
I tried insertion of USB lead to my M5Basic several times.
A device file
/dev/cu.SLAB_USBtoUART was appeared on my host.
This my prepared lead get connection once to several times.
And then, I have got new lead you suggested.
This new lead achieve connection completely.
(Amazon Japan URL is https://www.amazon.co.jp/gp/product/B01GO3XLM0)
Next step is writing code to my M5Basic.
Once recognized the M5Basic on my mac,
I have tried to write a sample ‘hello world’ program via Arduino IDE.
However, I got error message during writing phase.
And the device
/dev/cu.SLAB_USBtoUART was missing after the error.
(The device file recovered after reconnection of USB lead.)
The error message is:
esptool.py v2.6-beta1 Traceback (most recent call last): Serial port /dev/cu.SLAB_USBtoUART File "esptool.py", line 2865, in <module> File "esptool.py", line 2858, in _main File "esptool.py", line 2565, in main File "esptool.py", line 213, in __init__ File "serial/__init__.py", line 88, in serial_for_url File "serial/serialposix.py", line 268, in open serial.serialutil.SerialException: [Errno 2] could not open port /dev/cu.SLAB_USBtoUART: [Errno 2] No such file or directory: '/dev/cu.SLAB_USBtoUART' Failed to execute script esptool スケッチの書き込み中にエラーが発生しました
(Last Japanese message means ‘An error found during to write sketch.’)
I connect a capacitor between GND and RST of my M5Stack.
Finally, writing and executing the program successfully!!
I summarized my case for reference:
- Install driver in admin mode.
- Use reliable lead.
- Try to connect a capacitor between GND and RST when failed writing programs.