Error Uploading Sketch via Bluetooth - avrdude: stk500_getsync(): not in sync: r

Hi,

I got this error below when i try to upload my sketch using the HC-05 module to my new Arduino Uno R3. I have verified that my baudrate match with the baudrate bluetooth and the right outgoing com port the bluetooth used, i also verified that the correct Arduino Board was selected.

On the other hand, i can upload my sketch using a usb cable and able to control my robot wirelessly via the HC-05 bluetooth module. However, I dont want to hook up my robot via the USB cable everytime i made a changes to my sketch but instead I want to upload the sketch wirelessly via bluetooth as well.

Any help is much appreciated.

Thanks,

Nimpu

=======================

avrdude: Version 5.11, compiled on Sep 2 2011 at 19:38:36
** Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/**
** Copyright (c) 2007-2009 Joerg Wunsch**
** System wide configuration file is "C:\Program Files (x86)\Arduino2/hardware/tools/avr/etc/avrdude.conf"**
** Using Port : COM3**
** Using Programmer : arduino**
** Overriding Baud Rate : 115200**
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Recv:
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude done. Thank you.

Check For the solution Mentioned Here
http://forum.arduino.cc/index.php/topic,177431.0.html
http://forum.arduino.cc/index.php/topic,106873.0.html

Hi,

Thanks for the reply. The first link does not seem to relate to my problem. I can upload successfully via the USB cable and able to control my rebot with a keyboard inputs through the HC-05 module.

But when i tried to upload my sketch wirelessly i got the issue. I have check the troubleshooting steps provided in the second link and seems all what i have connected in my UNO is correct. Is this related to the auto-reset of the UNO? i have tried several reset after i pressed the upload button it still appear the avrdued: stk500_getsync() issue.

Thanks,

Nimpu

This problem With bootloader. there are many way bootloader crashed. You need a Avr pocket programmer to upload the bootloader.

Hi,

Thanks for the reply. However i currently dont have the kit to do so. I have though a spare atmega328P which works perfectly uploading sketch via HC-05 bluetooth/wirelessly. Will it be possible if i can simply swap the Atmega328P chip to my new UNO and see if it works?

Any harm will it inflict to my new UNO?

Thanks,

nimpu

Hi,

I changed the Atmega328P in my UNO with another Atmega328P that has already a bootloader that works when i upload my sketch wirelessly. I still having getsync issue however. I also tested the Atmega328P in my UNO with the locally made board and i can upload the sketch wirelessly, seemingly smooth upload without a hitch, which concludes that the new UNO chip bootloader is functioning and not crashed.

I think this is boils down now to the board itself probably because UNO does not support auto reset? Any advise?

Thanks,

So were you able to figure it out? I am having similar issues.