I can’t get the ‘Blink’ sketch to upload - I’m running the Arduino IDE on a Mac, and I can run everything fine with my own Arduino Uno. I’ve installed the SAM libraries, according to the Getting Started instruction, and the board shows up fine to be selected. The only port available to select is “/dev/cu.Bluetooth-Incoming-Port”, and the IDE says “no device found” on that port. When I try and do a “Get Board Info” it says “can’t obtain info” - what is the right COM port, and why is (apparently) not available to select?
UPDATE: Tried it all on a Linux machine, and had a similar issue - all of the “Port” selections in the IDE are missing, and Get Board Info returns nothing - seems the M2 isn’t connecting to the computer at all. Is there a “Loopback” test that works for the M2?
You have to have a comport show up. Try another cable if you are having problems.
You may want to try a windows machine to double check you are setup properly.
Ok, here’s what I’d do:
- Connect the M2 to your machine.
- Hold down the little erase button for about 2 seconds (it’s right next to the microUSB port)
- Disconnect the M2
- While in linux bring up a command prompt
- Plug the M2 in
- Type dmesg
You should see it show up at the bottom of the dmesg output as a valid USB device and see that it was assigned a serial port, likely /dev/ttyACM0 If that didn’t happen then paste here the lines that say it fudged up and we’ll see whats going on.
Okay, I’ll try that- on the road so it’ll take me a couple days, but thanks for your help!
Got it going, at least for the “Blink” example - the 5th of 5 micro USB cables seemed to work where the others didn’t.
The dmesg test worked fine for my Arduino Uno, so I just kept trying cables till I got the same result:
[ 548.478191] usb 2-1.3: Product: Arduino Due
[ 548.478192] usb 2-1.3: Manufacturer: Arduino LLC
[ 548.478500] cdc_acm 2-1.3:1.0: ttyACM0: USB ACM device
[ 697.394119] usb 2-1.3: USB disconnect, device number 8
[ 697.618886] usb 2-1.3: new high-speed USB device number 9 using ehci-pci
[ 697.731368] usb 2-1.3: New USB device found, idVendor=03eb, idProduct=6124
[ 697.731372] usb 2-1.3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 697.731700] cdc_acm 2-1.3:1.0: ttyACM0: USB ACM device
[ 700.722076] usb 2-1.3: USB disconnect, device number 9
[ 700.946912] usb 2-1.3: new high-speed USB device number 10 using ehci-pci
[ 701.055946] usb 2-1.3: New USB device found, idVendor=2341, idProduct=003e
[ 701.055950] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 701.055952] usb 2-1.3: Product: Arduino Due
[ 701.055953] usb 2-1.3: Manufacturer: Arduino LLC
[ 701.056293] cdc_acm 2-1.3:1.0: ttyACM0: USB ACM device
which usb cable worked finally? can u send me the link to buy?
Any cable SHOULD work. Nothing special about them but I also had issues getting one cable to work with mine. Just try a different one. Name brand ones tend to be more likely to work.
Ditto. For some reason the M2 does seem kind of picky about cables. Well, pretty much every SAM3X based unit has been picky about cables for me. I think it’s because the USB transceiver is built into the chip so you’re stuck with their implementation and it’s picky. Though, I have the same issue with my S9+ phone and USB-C cables. Some of them work fine, others don’t.
The bottom line is that a lot of USB cables suck. Don’t buy Zhoung-Lang brand cables for $2. Spend some money on a decent one. And treat them right. I spool up my USB cables too much and end up making them flaky. USB cables are the bane of existence.