I work in IT support at a college and one of our members of staff has brought their laptop with a Arduino Mega 2560. When uploading using Blink as an example, this error came up:
avrdude: stk500v2_getsync(): can't communicate with device: resp=0x01
After installing an older driver as suggested by other users, this error occurred:
avrdude: stk500v2_getsync() : not in sync: = resp=0x30
I have never used Arudino before and could use some advice on how to resolve this issue.
The PC is running Windows 7 Professional, 32 bit
Thanks
Sounds like the IDE has not correctly got the correct USB port; go to Device Manager (Windows) and find the USB port where the Arduino board is identified (possibly as a proper Arduino board but more usually as a USB Serial Device - it will disappear / reappear as you dis/re-connect the Arduino).
That's the port to use in the settings (Tools menu) before you initiate an upload.
Did it work?
I went into Device Manager and unplugged the board and plugged it back in again, there was no change to any of the USB ports listed and nothing re-appeared as the board was plugged back in.
I ran Blink again on a different PC and got the below error message:
Arduino: 1.6.8 (Windows 7), Board: "Arduino/Genuino Uno"
Sketch uses 2,102 bytes (6%) of program storage space. Maximum is 32,256 bytes.
Global variables use 55 bytes (2%) of dynamic memory, leaving 1,993 bytes for local variables. Maximum is 2,048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xb6
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xb6
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xb6
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xb6
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xb6
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xb6
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xb6
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xb6
avrdude: stk500_recv(): programmer is not responding
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xb6
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xb6
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Sounds like the drivers are not installed then. Have you got an unidentified device (yellow triangle with exclamation point in it) in any of the devices in the Device Manager?
When you installed the IDE software it should also have installed the USB drivers (unless you unticked that option). You may need to repeat this. Follow the instructions here: How to install Arduino IDE
When installed make sure you have selected (under Tools) the Arduino/Genuino Mega 2560 board before uploading.
Post back how it went.
The board doesn't appear in Device Manager at all and there isn't a unidentified device listed.
I reinstalled the Arduino software, the USB drivers box was ticked and I followed the steps on the link to test the board.
This is what Blink came back with:
Sketch uses 2,498 bytes (0%) of program storage space. Maximum is 253,952 bytes.
Global variables use 55 bytes (0%) of dynamic memory, leaving 8,137 bytes for local variables. Maximum is 8,192 bytes.
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
arduinoSCCH:
The board doesn't appear in Device Manager at all ...
If no device shows in device manager, there is no point in trying uploads, because it is not going to work. The USB-to-serial adapter on the board must not be presenting a device to the computer, so you need to fix that.
Try a different computer.
Try a different USB cable.
If the USB-to-serial chip on the board near the USB port is ATmega16U2, you can try re-programming it with the USB-to-serial code. To do that you would use an external ISP programmer device connected to the 2x3 pin ICSP header pins near the USB port, and load the program using avrdude. The USB-to-serial code is included in the Arduino IDE installation, in a subdirectory called hardware/arduino/avr/firmwares/atmegaxxu2, the filename is Arduino-COMBINED-dfu-usbserial-atmega16u2-Mega2560-Rev3.hex. You can use another working Arduino as an ISP programmer, if you don't have a programmer device such as a USBasp. You would use the example sketch ArduinoISP loaded onto the programmer Arduino, and select in the Tools, Programmer menu "Arduino as ISP".
Keep in mind that clone Mega 2560 boards start at about $10 USD. And derivative Mega 2560 boards with a less expensive USB-to-serial chip called CH340G start even lower than that, at about $8. So you determine what the appropriate amount of time to spend on it would be if you are new to this stuff. Of course, learning about it has value.
Ok, I thought running the upload would return an error message which would help figure out where the issue is.
I've tried a different computer and a different USB cable, the same problem occurs with the board not being detected although the light on the board comes up when it is plugged into a USB port.
Thanks for the suggestions.