avrdude: stk500v2_getsync(): timeout communicating with programmer error When I try to upload I get this error. I cannot upload the program into my Arduino Mega ADK board. I tried putting the drivers agiain too, but it does not work.

avrdude: stk500v2_getsync(): timeout communicating with programmer


Is it the problem with the hardware or the system?
Please help me. Thank you :)
I get this problem sometimes with some of my boards. I usually solve the problem following these steps:


Set the compiler on debug/verbose mode to see what's happening
Launch compilation/upload
When the compile phase is done, and the upload process is about to start, press the reset button on the board


Usually that takes care of the problem.