I'm having an issue communicating with my Digispark boards using the DigiCDC library.
First, I bought these on eBay before I knew about Digistump and in researching this issue, it appears that they are counterfeit (they have "rev3" printed on them), so I'd understand if you aren't able to provide assistance. However, they do appear to work in every other aspect, so I don't think that's related to the issue I'm having.
I don't have issues programming the boards, but after the micronucleus bootloader launches my code, I start having issues. My code is using the DigiCDC library to control a NeoPixel stick, but I've also tried stripping the code down a bare-bones "echo" program to rule out the code as a source of the problem. Basically, when I try to connect to the serial port via the Arduino Serial Monitor, screen or CoolTerm, I always get an error that the port is busy or in use.
Arduino error:
Error opening serial port '/dev/cu.usbmodem1411'. (Port busy)screen error:
Cannot open line '/dev/tty.usbmodem1411' for R/W: Resource busyCoolTerm error:
An Error Occured while attempting to open the port.
100: Access DeniedI've tried seeing if any other program on my computer is accessing the port, but none are:
Bens-MacBook-Pro:2.0a4 benperkins$ lsof | grep usbmodem
Bens-MacBook-Pro:2.0a4 benperkins$ I've tried creating a /var/lock file based on the instructions here:
https://www.baldengineer.com/arduino-fixing-serial-port-in-use.html, I've tried removing the Digisparks from my Network Preferences pane, I've tried a new user account on my computer and of course I've tried rebooting. None of that worked.
My computer is a Macbook Pro Retina, late 2013, 13" running OS X 10.11. I also have a work computer (Macbook Pro Retina, late 2013, 15" running OS X 10.10) and I was able to communicate to the Digispark just fine on that computer until I installed the Digistump boards in the Arduino IDE. Once I installed those, I had the exact same issue. Uninstalling that set of boards and rebooting made it work again, so it appears the issue is somewhere related to that. However, uninstalling the Digistump boards from my personal computer did not solve the problem (I have quite a bit more software installed on my personal computer, it's possible something else is also preventing it from working). I see that installing the Digistump boards seems to also install some libusb dylibs, so my best thought is that maybe they are causing the issues, but I'm sort of grasping at straws. Has anyone else run into this issue or have any advice on next steps for troubleshooting?
Thanks