I am unable to upload any sketch to my mega2560. I have tried some of the solutions mentioned in other posts about this like opening the IDE first then opening a sketch but nothing has worked so far. I'm using IDE version 1.6.11. This is the error I get when trying to upload every sketch I've tried.
avrdude: Version 6.3, compiled on Jun 22 2016 at 16:05:21
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\Me\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino2/etc/avrdude.conf"
Using Port : COM5
Using Programmer : wiring
Overriding Baud Rate : 115200
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 done. Thank you.
An error occurred while uploading the sketch
In the past I've had some issues while uploading sketches because of a timeout error but I was able to get around that by pressing the reset button on the arduino anywhere from 1-20 times during an upload and it would eventually go. I'm not sure if this is an issue with my board or an issue with IDE or maybe both. Any help is appreciated.