I have been encountering an error while uploading code to ArduPilot with Atmega 328P
avrdude: stk500_get sync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect = 0x14, resp=0x51
I tried all the debugging steps as mentioned here but none worked.
I tried on 2 different windows 7 x64 machines & 1 windows XP x32 machine but still no luck.
Tried both FTDI cable from DIY Drones & the FTDI breakout board 3.3V from sparkfun.
Tried resetting the board just before upload,unplugging & plugging the USB cable before upload.
Tried with VCP & D2XX drivers from FTDI. (from here)
Tried almost everything but still NOT WORKING!
I guess there is some problem with the board itself.But I just got it from sparkfun & that part is hard to sink in!
Ya, I checked the RTS setting,solderings,tried different baud rates (dont know if it really matters),orientation of the FTDI pins and all that.Im using an ESC from Scorpion to power the board.
The LEDs are all blinking properly as has been told in the manual
Is there some point that I have missed or that I've done wrong?FinallyIm getting tired of searching all over the internet!So thought I woulddirectly ask help. :) Or is there some problem with the bootloader?
Hoping that somebody helps me out because I desperately needs help!
Regards,
Abhijith
You need to be a member of diydrones to add comments!
Replies
Try to uninstall the drivers for the AVR.
Just a thought.....
Jason
Regards,
The solution that worked for me is to press the reset button after approx. 4 seconds after I press upload on the Arduino IDE. The exact trigger for me to press the reset is a very slight change in the blinking leds.
Hope it helps for you as well, good luck!
You state that you are: "Im using an ESC from Scorpion to power the board." Are you using the ESC at the same time that you have the FTDI cable attached to the Ardupilot board?
Regards,
TCIII
Manoel
PS I have noticed that the "boot" comes in a loop, running indefinitely(LEDs red, yellow, blue are flashing in the same order). This is correct?
Don't connect your GPS.
Check you've selected the correct Serial Port in Arduino.
Take a pic of your setup and post it.