Go Down

Topic: Breadboard Arduino (ATMega328p) upload problems (Read 2 times) previous topic - next topic

Lucian1977

HELP!

I have been trying to get my breadboard Arduino up and running for a couple of evenings now and if I had any hair I'd be pulling it out right now :(

I followed these instructions:

http://www.instructables.com/id/How-To-Make-The-Easiest-Breadboard-Arduino-UnoE/?ALLSTEPS

I have the breadboard set up exactly as described. This corresponds with other breadboard Arduino clones I've seen so I am sure I have done it right. I've even replaced all the capacitors, the 16MHz crystal and even the chip itself :(

When I manually press the reset button I get flashing on pin 13 as expected. The software reset also flashes pin 13, so something is happening.

In the 0023 IDE I get 

Quote
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51


In 1.0 I get just

Quote
avrdude: stk500_getsync(): not in sync: resp=0x00


(I need 0.23 for the sketch I am using)

I am using a CP2102 USB to serial adapter. This works fine, it passes loopback tests and can program both my Pro Minis

Any ideas please?

johnwasser

That Instructable seems to be missing one wire: the connection between the top power rail and bottom power rail.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Lucian1977

The author notes that later in the instructions. I have my rails linked already too (habit) I am at a loss. Can't seem to get the manual reset working either, though I never have been able to get the timing right before

Lucian1977

Here is the verbose mode output when trying to upload the blink sketch if it helps any

Quote
Binary sketch size: 1018 bytes (of a 32256 byte maximum)
C:\Users\LD\Documents\Arduino\arduino-0023\hardware/tools/avr/bin/avrdude -CC:\Users\LD\Documents\Arduino\arduino-0023\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega328p -cstk500v1 -P\\.\COM8 -b9600 -D -Uflash:w:C:\Users\LD\AppData\Local\Temp\build2884719328464425973.tmp\Blink.cpp.hex:i

avrdude: Version 5.4-arduino, compiled on Oct 11 2007 at 19:12:32
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

         System wide configuration file is "C:\Users\LD\Documents\Arduino\arduino-0023\hardware/tools/avr/etc/avrdude.conf"

         Using Port            : \\.\COM8
         Using Programmer      : stk500v1
         Overriding Baud Rate  : 9600
avrdude: ser_open(): setting dtr
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: Send: Q [51]   [20]
avrdude: Recv:
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

avrdude done.  Thank you.


johnwasser

Your upload is happening at 9600 baud.  The standard bootloaders expect either 115200 baud (UNO) or 57600 (Duemilanove).

What bootloader is programmed into the ATmega386P chip?

What board are you selecting from Tools/Board?
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Go Up