My mega 2560 worked fine before, I was able to upload the code successfully but suddenly when I try to upload it is giving me following error message.
avrdude: stk500_2_ReceiveMessage(): timeout
I have tried re-installing the software and the driver and it is still not helping. Also, in the tools menu, in serial port, I don't see USB modem choice. The TX and RX leds are no longer even turning on when I click upload.
I reinstalled the Arduino software. According to the "getting started" page:
"If you're using the Arduino Uno or Arduino Mega 2560, a dialog box will appear telling you that a new network interface has been detected. Click "Network Preferences...", and when it opens, simply click "Apply". The Uno or Mega 2560 will show up as "Not Configured", but it's working properly. Quit System Preferences."
No dialog box appeared when I connected the mega 2560. It's not there in network preferences.