Genuine MEGA 2560 R3 Uploading problems (Intermittent)

Hi All

Like alot of other s i am having uploading issues. its not all the time but probably more than half. I have purchased several of the same boards but the issue still remains. when i put a new board on the port does change. I am using Windows 7 PRO Service Pack 1 64 bit. I requested verbose loading report and here it is

Arduino: 1.8.7 (Windows 7), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Sketch uses 6660 bytes (2%) of program storage space. Maximum is 253952 bytes.
Global variables use 292 bytes (3%) of dynamic memory, leaving 7900 bytes for local variables. Maximum is 8192 bytes.
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega2560 -cwiring -PCOM17 -b115200 -D -Uflash:w:C:\Users\MIKETH~1\AppData\Local\Temp\arduino_build_276162/Winder20190102-01.ino.hex:i 

avrdude: Version 6.3-20171130
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : COM17
         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
An error occurred while uploading the sketch
avrdude: stk500v2_getsync(): timeout communicating with programmer

avrdude done.  Thank you.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

As you can imagine this is frustrating during debugging (alot if uploading)and i would love some help find a solution.

(deleted)

Also ensure you have nothing else connected to the board at the time of upload.

Spycatcher thank you for your response, i will try it.

Bob, what do you mean nothing else hooked up to it? no Inputs / Outputs?

Yes nothing else attached to the board for I/O especially pins 0 & 1.

Bob, this happens several times a day, not the answer i was looking for lol. It also stops communicating via the serial output.

Are you logging the information itself at the computer end and if so what with ?

How much information are you passing the serial monitor / program per hour ?
Just in case its a buffer type issue.

What standby settings do you have enabled for power saving etc in your OS ?
Windows can shut down peripherals if it has any sort of power saving enabled so check ALL your power options.

What type of USB port are you using 1.0 / 2.0 / 3.0 ?

Are you logging the information itself at the computer end and if so what with ?
**I am using the serial monitor with the Arduino 1.8.7

How much information are you passing the serial monitor / program per hour ?
Just in case its a buffer type issue.

**Its not really much this is one cycle of the test
Step: 0
Step: 10
Step: 20
Step: 30
Step: 40
Step: 50
Step: 60
Step: 70
Step: 80
Step: 90
Step: 100
Step: 110
Step: 120
Step: 130
Step: 140
Coil

And sometimes I can only run 1 or 2 tests then coms stop. I reset the board, that doesn't help, i have to unplug the USB for several minutes.

What standby settings do you have enabled for power saving etc in your OS ?
****I can run the test only seconds apart and one will work and one wont.

Windows can shut down peripherals if it has any sort of power saving enabled so check ALL your power options.

What type of USB port are you using 1.0 / 2.0 / 3.0 ?
*****Based on age i would say 2.0

With it being intermittent I doubt it is your sketch but if you would like to post that using code tags ( </> ) it would certainly not harm.

It would also be helpful to know what you have connected to the board so a schematic would also be of use at this point.