Problem Uploading to board

Hello!

I´m having trouble connecting an Arduino Mega 2560 to my pc;

I have a new Mega board, and I had barely started using it a couple days ago, and it worked perfectly, I ran a couple sketches and everything was OK. Today however, I cant get my pc to upload to the board, It will stay stuck while uploading and will eventualy give me this error:

Problem uploading to board.

avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

I have windows 7 ultimate, 64-bit. I have already tried reseting before uploading to the board, connecting to different usb ports, reinstalling drivers, and a couple a few other things I have read in forums, but there´s no effect.

The code seems not to be the issue, as it will not upload anything, even the "bare minimum" example.

I tried uploading to the board on a Mac, and it worked, so apparently there´s no problem with the board.

Any suggestions?

Thank you.

Some MEGA boards will fail to upload if your sketch contains "!!!" anywhere. Check your messages.

Thanks, but the code doesnt seem to matter, it won't upload regardless of its extension or characters used.

grocha647:
Thanks, but the code doesnt seem to matter, it won't upload regardless of its extension or characters used.

Are you saying that you can't even upload any of the example sketches like Blink?

Another common problem is a sketch that is flooding the USB buffers with output. Does the TX light come on fairly steady when you start the MEGA? If so, Hold down the Reset button, unplug and re-plug the USB cable, click on the upload button, and release the Reset button when you see the "Binary Sketch Size:" message.