Connecting via USB
Connecting via USB
I just uploaded the esp32-20180511-v1.9.4.bin onto my esp-32 from my mac. From the terminal I tried to get into repl by using the usual screen /dev/ttyUSB0 115200 and it said that the file/directory didn't exist. So I decided to search my ports using ls /dev/cu.* and found that my board was on this path: /dev/cu.SLAB_USBtoUART. So I tried screen /dev/cu.SLAB_USBtoUART 115200. and received: Cannot open line '/dev/cu.SLAB_USBtoUART' for R/W: Resource busy Sorry, could not find a PTY. How do I fix this?
Re: Connecting via USB
How did you upload the software? Uploading too requires the serial port. So maybe the upload process is still holding the serial device.
Re: Connecting via USB
I used this tutorial located here on youtube: https://www.youtube.com/watch?v=xM53h3usfMI
The same /dev/cu.SLAB_USBtoUART path was used for the flashing process.
The same /dev/cu.SLAB_USBtoUART path was used for the flashing process.
Re: Connecting via USB
I just tried that on a mac. The device I had to use started with /dev/tty.usbserial
So maybe it is just another device name to use.
Otherwise try rebooting the mac to get rid of a maybe blocking script.
So maybe it is just another device name to use.
Otherwise try rebooting the mac to get rid of a maybe blocking script.
Re: Connecting via USB
I tried your sugestion but with no luck. I was wondering could it be a driver issue? If it is a driver issue how can I fix it? I think my driver comes from silicon labs.
-
- Posts: 847
- Joined: Mon Nov 20, 2017 10:18 am
Re: Connecting via USB
Adafruit have very long step by step YouTube tutorials on setting up and using Micropython from a Mac
Re: Connecting via USB
you need to use tty:
/dev/tty.SLAB_USBtoUART
/dev/tty.SLAB_USBtoUART
Re: Connecting via USB
Okay, here is what I have learned so far. I found another site that had directions on how to flash MicroPython on this board found here:
https://appelsiini.net/2018/m5stack-esp32-firmware-cli/
Followed the instructions, was able to use the screen command but it didn't show a python prompt. Instead it just sat there with a blank curser. When pushing the restart button on the M5Stack I received this.
So I am able to see replies from my board but I am not able to talk to my board. Any thoughts.
https://appelsiini.net/2018/m5stack-esp32-firmware-cli/
Followed the instructions, was able to use the screen command but it didn't show a python prompt. Instead it just sat there with a blank curser. When pushing the restart button on the M5Stack I received this.
So I am able to see replies from my board but I am not able to talk to my board. Any thoughts.
- Attachments
-
- Screen Shot 2018-05-23 at 10.46.24 PM.png (55.26 KiB) Viewed 7320 times