Upload Timeout Error on Mega 2560 - Not Sure What Changed

Hey I got the same problem, I tried to load different codes and some of them made it,

but by now I get to upload a code, but then this message appears, even though load is complete:

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

Don't have any idea of how to fix it, please help