Author Topic: Mac doesn't see DigiX on USB port  (Read 14396 times)

drew

  • Newbie
  • *
  • Posts: 11
Mac doesn't see DigiX on USB port
« on: December 07, 2013, 12:34:16 pm »
When I try to specify which port to use with my DigiX in Arduino all I see are entries related to Bluetooth. Nothing about usb. I do see the following in dmesg:

       0        0 AppleUSBCDCACMControl: start - Failed to find the CDC driver
       0        1 AppleUSBCDCACMData: start - Find CDC driver for ACM data interface failed
       0        1 AppleUSBCDCECMData: start - Find CDC driver for ECM data interface failed

when I plug the board in.

I've tried this on two different macs, one running osx 10.6.7 and one running 10.8.5. The board does work on my fedora 17 linux box.

Any mac experts out there have any ideas?

Thanks,
Drew

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: Mac doesn't see DigiX on USB port
« Reply #1 on: December 07, 2013, 01:38:34 pm »
Do you have a second cable to try? There seems to be some issues with some cables.

drew

  • Newbie
  • *
  • Posts: 11
Re: Mac doesn't see DigiX on USB port
« Reply #2 on: December 07, 2013, 02:03:38 pm »
A different cable didn't make any difference.

Do you have a second cable to try? There seems to be some issues with some cables.

temmink

  • Newbie
  • *
  • Posts: 22
Re: Mac doesn't see DigiX on USB port
« Reply #3 on: December 07, 2013, 02:52:04 pm »
try the following:


1. pressing the erase button on the Digif.
2. Detach and attach the cable again.




« Last Edit: December 07, 2013, 02:55:58 pm by temmink »

drew

  • Newbie
  • *
  • Posts: 11
Re: Mac doesn't see DigiX on USB port
« Reply #4 on: December 07, 2013, 02:56:23 pm »
Nope. Didn't help. BTW, what does the erase button do?

Hit the erase button on the DigiX and try again.

temmink

  • Newbie
  • *
  • Posts: 22
Re: Mac doesn't see DigiX on USB port
« Reply #5 on: December 07, 2013, 03:06:34 pm »
I'm not 100% sure but I think it's stops the current sketch - erase the boot loader and program memory from the digit.
The boot loader will read from ROM and placed in the RAM.

So the digix is ready again.

temmink

  • Newbie
  • *
  • Posts: 22
Re: Mac doesn't see DigiX on USB port
« Reply #6 on: December 07, 2013, 03:07:09 pm »
did you have used a different USB port also?

drew

  • Newbie
  • *
  • Posts: 11
Re: Mac doesn't see DigiX on USB port
« Reply #7 on: December 07, 2013, 03:32:46 pm »
Yep. Tried both of the ports on the mac.

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: Mac doesn't see DigiX on USB port
« Reply #8 on: December 08, 2013, 02:56:42 am »
Are the two macs laptops by chance?

This seems like either a driver or power issue - if it is power than it could be that the DigiX is trying to draw too much - in which case it is worth trying it with the WiFI enable jumper removed (the blue jumper).

temmink

  • Newbie
  • *
  • Posts: 22
Re: Mac doesn't see DigiX on USB port
« Reply #9 on: December 08, 2013, 03:25:42 am »
I don't its power related, because when a usb device draws to much current (>1000 mA)  from the USB-port, you will get a message on the screen informing you, dat the mac is disabling the usb port.

drew

  • Newbie
  • *
  • Posts: 11
Re: Mac doesn't see DigiX on USB port
« Reply #10 on: December 08, 2013, 10:41:01 am »
removing the jumper didn't help.  I'm thinking it's some kind of an incompatibility between the USB CDC code in the DigiX and the driver in the mac. I did find this post on the web but I'm not sure it's related:

http://www.at91.com/forum/viewtopic.php/f,15/t,21140/p,37658/

I don't get the AppleUSBCDCACMControl: getFunctionalDescriptors - Descriptors are incorrect, checking... message so it's probably not related. I did find the source to some version of the AppleUSBCDC driver here:

https://www.opensource.apple.com/source/AppleUSBCDCDriver/AppleUSBCDCDriver-4002.4.1/

If I could figure out a way to turn on the XTRACE macro I'm sure I could get more info. It's been a long time since I've done any mac programming :-( I do feel that if it's really a problem in code that most people using Macs would have the same problem. I don't hear them screaming so it more than likely a problem with my setup.

Drew

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: Mac doesn't see DigiX on USB port
« Reply #11 on: December 08, 2013, 10:57:26 pm »
That was a great lead - unfortunately the descriptor doesn't have the issue outlined there. Our USB code is straight from the Due code, so the Arduino Due should be suffering the same problem on select Macs. I couldn't find anything specific on why this occurs on some but not others.

I'm not a USB expert at all, nor a Mac expert - and it works on all of my Macs - but please try the following shot in the dark if you can:

Download attachment and replace file at Documents/arduino\hardware\digistump\sam\cores\digix\USB with it

Plug in DigiX hit erase, then hit reset - you should be able to program it now as it will default to its built in usb bootloader that should work with OS X
Then upload code (say the blink example) to it after that file has been replaced.
After the code has uploaded see if it works.

Let me know if that works.

Thanks,
Erik

drew

  • Newbie
  • *
  • Posts: 11
Re: Mac doesn't see DigiX on USB port
« Reply #12 on: December 09, 2013, 09:24:14 am »
Thanks Eric! I'll give it a try this afternoon when I get home.

Drew

albert

  • Newbie
  • *
  • Posts: 3
Re: Mac doesn't see DigiX on USB port
« Reply #13 on: December 10, 2013, 10:53:57 am »
I'm having a very similar problem, however while the board won't show up on my laptop (Late 2013 rMBP) it does show up on a Late 2013 iMac, using the same cable.

I tried replacing the file in my ~/Documents/arduino/etc... folder but that didn't seem to help.

Any thoughts on what could be the difference between the laptop and the iMac that's making one work and the other not? The iMac is at work and I don't always have access to it so it would be great to be able to use my laptop.

drew

  • Newbie
  • *
  • Posts: 11
Re: Mac doesn't see DigiX on USB port
« Reply #14 on: December 10, 2013, 12:03:57 pm »
What version of OSX are running on the machines? In searching the web I found references to version 10.6.5 having problems in the CDC driver. Can you upgrade the older machine to the same os as on the newer one?