:~ Hi. I have just recieved an Arduino Mega 2560 in the post. I am using the latest Arduino environment on a MAC.
I have connected the Board via USB to the computer and it has shown up in Network Preferences as expected. The version is 1.0.
The light blinks as expected and I have chosen the right board setting ( Arduino Mega 2560 or MEGA adk) and the serial setting: tty. usbmodemft411.
When I try to upload a sketch ( blink just to test ) I get this:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
on and on an on and even this!!!:
avrdude: stk500v2_command(): failed miserably to execute command 0x10
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
Could someone please help??
What could I BE DOING WRONG??
THANKS,
Steve.
Is the USB plugged in directly to your MAC or is it going through a hub? I just had the same problem and fixed it by unplugging the USB cable from the Mega2560 to my monitor, and plugging it directly into the back of the Mac Mini. Now it no longer times out and uploaded the "Blink" example just fine.
Hi! Thanks for the tip. Still no joy though..... I've tried all the USB ports and still the same. Weird thing though which I've written about in another post on this forum ( thing about MEGA2560 you will all want to read...) about how I can upload to the board using Parrallels PC emulator running windowsxp. In parallels everything is fine, but the mac is a no go except I CAN flash firmware using mac terminal and dfu-programmer. Ive tried reflashing firmwares, creating a new user on the MAC ( Macbook Pro 2.2 OSX 10.5.8 .) Ive tried the USB port change.
Nothing.
Nice thing though! I learned how to flash firmware to make the MEGA2560 board into a USB midi device!!(HIDUINO.)
It could be a systemwide isuue in the mac but i wouldn't know where to start with that..
Its 50/50 of utter Bllcks.
Too bad it wasn't that simple. Do you get anything when using the serial monitor in the Arduino IDE (or using 'cu' in terminal)? If you happen to have some adapters/parts (or a friend to borrow from), it would be interesting to see if a add-on USB controller card to your Mac will make it work (i.e. via thunderbolt or expresscard). If not, I wonder if it will work if you use Serial 1 to a TTL->RS232 converter then use something like a Keyspan USB to serial converter.
In case this is helpful, here's part of the USB tree in System Profiler showing the 2560 connected from a mac mini:
Hi Amicus and thanks again. My system profiler looks almost the same as yours:
Host Controller Location: Built In USB
Host Controller Driver: AppleUSBUHCI
PCI Device ID: 0x27c9
PCI Revision ID: 0x0002
PCI Vendor ID: 0x8086
Bus Number: 0x3d
Arduino Mega 2560:
Product ID: 0x0010
Vendor ID: 0x2341
Version: 0.01
Serial Number: 74132343530351409192
Speed: Up to 12 Mb/sec
Manufacturer: Arduino (www.arduino.cc)
Location ID: 0x3d100000
Current Available (mA): 500
Current Required (mA): 100
Glad you thought of this though::: when I open the serial window in arduino, type something in and press return or click send, the arduino software hangs ( freezes! I have to force quit..hmm..)
I would like to know...
How would I use the cu command in terminal ??
These two devices show up when i use ls -l /dev:
crw-rw-rw- 1 root wheel 9, 22 25 Mar 20:08 tty.usbmodem3d11
and
crw-rw-rw- 1 root wheel 9, 23 25 Mar 20:08 cu.usbmodem3d11
So the serial port is doing something odd..!!
Whereas it seems to work fine in the Parrallels universe of windows xp.. :S
Mubase:
Glad you thought of this though::: when I open the serial window in arduino, type something in and press return or click send, the arduino software hangs ( freezes! I have to force quit..hmm..)
I would like to know...
How would I use the cu command in terminal ??
These two devices show up when i use ls -l /dev:
crw-rw-rw- 1 root wheel 9, 22 25 Mar 20:08 tty.usbmodem3d11
and
crw-rw-rw- 1 root wheel 9, 23 25 Mar 20:08 cu.usbmodem3d11
So the serial port is doing something odd..!!
Whereas it seems to work fine in the Parrallels universe of windows xp.. :S
Mine are /dev/cu.usbmodem5d21 and /dev/tty.usbmodem5d21
for cu:
sudo cu -l /dev/cu.usbmodem.3d11 -s 9600
to disconnect from cu type "~." (tilde then period)
I'm thinking you'll have similar results - except cu shouldn't lock up
Also, I'm on 10.6.8. I have a macbook pro (lion) that I can test this on later - if you're using lion?
You have no other programs running that are accessing that port and you used "sudo cu" and not "cu", correct? Maybe running a "Repair Disk Permissions" in Disk Utility will fix it, but I doubt it since your permissions look fine above where you have "ls -l /dev/".
In terminal, what do you get when you do: sudo dscl . -read /Groups/uucp
No there are no !!! in my sketches.
However, when I open the sreial window and type anything, the whole arduino program freezes and I have to unplug the board and force quit Arduino IDE.
??