Arduino out of sync if shields are attached

Hi,
I have begun having a very strange issue where my arduino uno r3 will not accept code uploaded from the IDE (what the code is doesnt appear to matter). The error message is "avrdude: stk500_getsync(): not in sync: resp=0x00". This only happens when a shield (such as Sensor shield V4) or the sparkfun AVR ISP shield. When I take out the shield, the arduino works as normal. This issue has only come up since I started using the AVR ISP shield, and it was intermittent until just now, where it appears permanent. However when I do try uploading, the arduino does restart (or at least stops the RGB led I have plugged into it).

I have tried changing the USB port, changing the COM port by the port manager. Also it might be important but the chip on the arduino is not the original..its one I got from sparkfun, I believe they come with the optiboot loader.

I do not use the IDE with the arduinoISP sketch, I have used AVRdude if that makes any difference.

I have the following IDE versions: 1.0, 1.0.1, 1.0.3 and the 1.5 beta.

I've googled it a few times, have not found a whole lot and certainly no solutions that worked.

Any help would be appreciated.

This means that your shield has a fault on it which is stopping the arduino from working.
Maybe a short somewhere.

With the AVRISP shield attached to your Uno, you can't upload the sketch directly to your Uno. It would go to an AVR chip plugged into your AVRISP shield. If you are trying to upload the ArduinoISP sketch to your Uno, you need to remove the shield first. Are you trying to program an AVR chip or are you trying to program your Uno?

As for the sensor shield, if you have any sensor attached to digital pins 0 and 1 it may be interfering with the USB serial lines used for programming the Uno.

Grumpy_Mike:
This means that your shield has a fault on it which is stopping the arduino from working.
Maybe a short somewhere.

Okay so where would I start if I wanted to find out exactly what was wrong with the shield (if it is that particular shield)?

hiduino:
With the AVRISP shield attached to your Uno, you can't upload the sketch directly to your Uno. It would go to an AVR chip plugged into your AVRISP shield. If you are trying to upload the ArduinoISP sketch to your Uno, you need to remove the shield first. Are you trying to program an AVR chip or are you trying to program your Uno?

As for the sensor shield, if you have any sensor attached to digital pins 0 and 1 it may be interfering with the USB serial lines used for programming the Uno.

I am trying to program a ATMEGA328P PU using the arduino uno with the ISP sketch loaded. I use avrdude -P COM2 -b 19200 -c avrisp -p m328p -v -e -U flash:w:SOMEPROGRAM.cpp.hex to get the code onto the ATMEGA328. I have not been able to get the project that uses the ATMEGA328 chip working yet so I cant test it.

I have tried with nothing plugged into the sensor shield.

If you are using the arduino as a programmer have you disabled the reset?

I am having the same issue but with the Arduino Sensore Shield v5


When I have the shield attached, i cant upload anything to the arduino. But when I remove it, it uploads fine.

Any ideas what could be going on here?

Sorry for reviving a somewhat old thread.

bump, anyone?

The tx and rx pins connect directly to the tx and rx pins of the 8u2, meaning that any shield with an avr connected to tx and rx would try and get programmed instead of the avr on the arduino. Also a shield with the tx and rx pins shorted will also stop programming. I recommend taking the shields off while programming and then put them back on when using them.
-Luke

(deleted)

van12:
same issue with "L298P motor control shield", no matter i do, I need to unplug the shield before flash the arduino uno. what a shame, it will slow down the work. I think I will use L293D to code/test and then move it to L298P

NB: if using the "motor control L293D", there is no issue when flashing the uno

Do you really have to revive a 6 year old thread?

Without links to the actual product and product's schematic, nobody will be able to help.

Did you disable the reset of Arduino while using it for programming?

(deleted)

(deleted)

just break (get rid of it or push it up to a side ) the pin 0 (rx pin) , the pin on L289P is over 1cm. now i am back to business

That's why I asked for schematic. It might have revealed that something is connected to the serial pons. Might also be a short on the board.

(deleted)

You think that we all exactly know which shield you're talking about. There are several manufacturers that produce L298 motor control shields.