How do you do a loop-back test if you cannot upload a sketch?
Is there a built in monitor? I realize that MEGA2560 boards with the new bootloader/monitor might have that option...
Maybe you should try to compile and upload a simple sketch and post the actual error code here if that does not work.
I am not sure what you are trying to upload -- the blink sketch or a large program...???