stk500_getsync()

I have this kit i ordered that consists of an ATMEGA328p-PU w/ Arduino uno boot loader. with the various parts needed for a standalone setup

using the standard standalone breadboard design with a TTL-232R USB Adapter

I Have been stuck with this error from the start and i have tried everything in the interwebs i could uncover. I have tried various board types but mainly the Uno using the Arduino as ISP and Ctrl +Shift + U (using programer)

I have read about sending random serial data to flush the buffer some how but i not sure how thats done or if it even pertains to my situation

Here are the things i have tried so far.

  • The Arduino Troubleshooting post.

  • Loop back test from this fourm - Passed Test.

  • added the 1k pullup resistors to rx / tx

  • musical button resets /w download clicks

I also have narrowed down the fact that the serial monitor in Arduino sees a boot message coming from the chip at 57600 baud which translated to StandardFirmata_2_2_for_UNO_0_3. i tried to override the baud rate in the Arduino Uno entry in the "Boards.txt" file to 57600 but it still will not sync. Thanks in advance for any tips.. 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 "F:\ebooks\Atmega328P\arduino-1.0.4-windows\arduino-1.0.4\hardware/tools/avr/etc/avrdude.conf"

Using Port : \.\COM5 Using Programmer : stk500v1 Overriding Baud Rate : 57600 avrdude: Send: 0 [30] [20] avrdude: Send: 0 [30] [20] avrdude: Send: 0 [30] [20] avrdude: Recv: . [f9] avrdude: stk500_getsync(): not in sync: resp=0xf9

avrdude done. Thank you.

Do you have a crystal? What frequency?

I also have narrowed down the fact that the serial monitor in Arduino sees a boot message coming from the chip at 57600 baud which translated to StandardFirmata_2_2_for_UNO_0_3.

How did you do that?

using this diagram .. the crystal is a 16.0uh09

How did you do that?

well if i set the baud rate in device manager for the port im using to 57600 and match that in the serial monitor in adruino and press reset, this message appears after a few seconds "StandardFirmata_2_2_forUNO_0_3" i have tried it in hyperterminal as well. same message. that's why im fixated on 57600, only success i have had this far is that message..

Pin 2 on the chip is Rx, Pin 3 is Tx. You have them the other way around.

What's that black thing with white on top connecting Reset to Gnd?

Looks like you have a Firmata sketch loaded, however that doesn't prove what speed the bootloader is operating at. Normally a Uno uses a 115200 baud bootloader.

Yes i saw that typo a while back, im defiantly using the tx->rx wiring.. the black thing is a momentary switch for the reset.

your comment about firmata made me open that can up and there was the answer to why that message is showing up at 57600 baud. once i ran this little utility the data started pouring out. The question is why cant i overwrite this with another sketch.

"This "firmata_test" program works with boards running StandardFirmata version 2.2 or higher on standard Baud rate 57600."

The question is, do you have a bootloader installed, and if so, which is it? If you have a spare Uno lying around you can run the sketch here to detect what bootloader is on your chip:

http://www.gammon.com.au/forum/?id=11633

purchased as kit.. "Atmega328P BreadBoard Arduino Kit with Arduino Uno Bootloader"

I'm a newbie to this so its the only one i have. I think I'm pretty much hooked on this stuff after poking at this thing for so long. Ill order some more gear and try what you suggested.

If it has the Uno bootloader, then try selecting Uno in the “boards” menu, and don’t change the baud rate, or if you changed it, change it back to 115200.

I setup the connections to the chip with my new mega 2560 and ran your chip detector.. Here are the results. Is this the Uno bootloader?

Atmega chip detector. Entered programming mode OK. Signature = 1E 95 0F Processor = ATmega328P Flash memory size = 32768 LFuse = FF HFuse = DA EFuse = FD Lock byte = CF Clock calibration = A3 Bootloader in use: Yes EEPROM preserved through erase: No Watchdog timer always on: No Bootloader is 2048 bytes starting at 7800

Bootloader:

7800: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 7810: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 7820: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 7830: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 7840: FF FF FF FF FF FF FF 00 00 00 00 00 00 00 00 00 7850: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7860: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7870: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7890: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 78A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 78B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 78C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 78D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 78E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 78F0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7910: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7920: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7930: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7940: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7950: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7960: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7970: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7990: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 79A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 79B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 79C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 79D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 79E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 79F0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7A00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7A10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7A20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7A30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7A40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7A50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7A60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7A70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7A80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7A90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7AA0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7AB0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7AC0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7AD0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7AE0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7AF0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7B00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7B10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7B20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7B30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7B40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7B50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7B60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7B70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7B80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7B90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7BA0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7BB0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7BC0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7BD0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7BE0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7BF0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7C00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7C10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7C20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7C30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7C40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7C50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7C60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7C70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7C80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7C90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7CA0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7CB0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7CC0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7CD0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7CE0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7CF0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7D00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7D10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7D20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7D30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7D40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7D50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7D60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7D70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7D80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7D90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7DA0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7DB0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7DC0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7DD0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7DE0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7DF0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7E00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7E10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7E20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7E30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7E40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7E50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7E60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7E70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7E80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7E90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7EA0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7EB0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7EC0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7ED0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7EE0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7EF0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7F00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7F10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7F20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7F30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7F40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7F50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7F60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7F70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7F80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7F90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7FA0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7FB0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7FC0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7FD0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7FE0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7FF0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

MD5 sum of bootloader = C9 9A 74 C5 55 37 1A 43 3D 12 1F 55 1D 6C 63 98

First 256 bytes of program memory:

0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

I setup the connections to the chip with my new mega 2560 and ran your chip detector.. Here are the results. Is this the Uno bootloader?

Bootloader:

7800: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ... 7830: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 7840: FF FF FF FF FF FF FF 00 00 00 00 00 00 00 00 00 7850: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7860: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... 7FF0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

MD5 sum of bootloader = C9 9A 74 C5 55 37 1A 43 3D 12 1F 55 1D 6C 63 98

No it isn't. As you can see it is all 0xFF followed by 0x00. That isn't code.

The sketch on this page will put the Uno bootloader there, with the same wiring:

http://www.gammon.com.au/forum/?id=11635

Thanks Nick, it looks like a successful download… I’ll set it up in stand alone mode to confirm… I’m much obliged by your generous time and patience.