I've been trying to get my new digispark up and running on my Mac but having issues. I've been able to program it with the Arduino IDE on a 10.11.3 machine and can confirm many of the examples work. However, I can't get the DigisparkCDC examples working, specifically when I try to connect to the virtual serial port with Mac OS X 10.11.2 El Capitan. Any help would be appreciated.
Here's the basic setup:
- I program the digispark with the CDC_LED program (unmodified, Model A so pin #1 is the LED). No issues or errors when programming.
- I unplug the digispark and plug it back in.
- The arduino shows a new serial port, '/dev/cu.usbmodemXXXXXX' and '/dev/tty.usbmodemXXXXXX' (last X's seem to depend on machine I plug it into)
When I search for the devices in the terminal, they show up in /dev/:
ls -la /dev/*.usbmodem*
crw-rw-rw- 1 root wheel 17, 23 Mar 18 16:43 /dev/cu.usbmodemXXXXXX
crw-rw-rw- 1 root wheel 17, 22 Mar 18 16:43 /dev/tty.usbmodemXXXXXXEvery time I try to access the Serial Monitor in the Arduino IDE, I get the following error:
Error opening serial port '/dev/cu.usbmodemXXXXXX'. (Port busy)
When I try to access the port with CoolTerm, I get the following error:
An Error Occurred while attempting to open the port. 100: Access Denied
If I try to connect with "screen /dev/cu.usbmodemXXXXXX 19200" I get:
Cannot open line '/dev/cu.usbmodemXXXXXX' for R/W: Resource busy
Sorry, could not find a PTY.
"lsof | grep usbserial" returns nothing, so the port doesn't appear to be in use.
I've also tried the following (which did not change any of the above):
sudo mkdir /var/lock
sudo chmod 777 /var/lockAny ideas??? My Google-fu has turned up nothing and I've spent far too much time trying to figure this out... I'm not sure if it's an issue with the DigiCDC or my El Cap machines. NOTE: the serial monitor
works with the exact same digispark on a Mac OS X 10.8 machine with CoolTerm, but still does not work with 10.11.3.