MEga2560 timeout after trying to connect SD shield

Hi,
I am having a problem. I have an arduino mega 2560 and had some code which was uploading fine.

I have since tried to connect to an sd card module (the cheap ones from ebay) and now I cannot upload any programs.

Everytime I try to upload I get the message avrdude: stk500v2_ReceiveMessage(): timeout

Can anyone help with this?

I have tried uninstalling and reinstalling the software, powering down the board and trying the code on a different machine, none of which worled.

Cheers

Does it work if the sd card module is not connected?

At one time, I was using pins 0 and 1 as outputs and had them wired up to a breadboard. This caused problems for me uploading. After a pin re-assignment; no issues. I don't know what pins are used by a cheap SD card reader. I thought they did not usually use 0 or 1 and used the ICSP bus.

If the SD card is miswired, is corrupting Reset pin perhaps, that will cause download issues.
Otherwise, connected to SCK-MISO-MOSI should be okay.

CrossRoads:
If the SD card is miswired, is corrupting Reset pin perhaps, that will cause download issues.
Otherwise, connected to SCK-MISO-MOSI should be okay.

No it doesnt work when the SD card is not connected. I am unable to upload any programs without a timeout.

Does anyone have any suggestions as to what the problem may be before I need to buy another Arduino?

With just a USB cable connected to your Arduino does uploading fail?

Yes. All I have connected is a USB and I am trying to upload a program which worked before I tried to install the sd shield. Even when I try to connect only with the usb I am getting a time out error.

In the Arduino IDE, is the correct serial port selected?

Is the correct board type selected?

Yes and yes

Actually this is the problem. The IDE seems to be reverting back to COM port 1 every time the program is started no matter what COM port the arduino is attached to. If I manually change it every time I can now download. Thanks for everyones help.