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.
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.
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.
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
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.