ATmega328P on a breadboard (8MHz internal clock) programming problem


hi there,

i'm asking because run out of ideas... (checked similar topics on forum , nothing worked, or didn't have tools it)

my problem:

i want program circuit atmega328p without external oscillator.
i using arduino uno "arduino isp" programmer. wired (correctly - thought then) , managed burn bootloader "atmega328 on breadboard (8mhz internal clock)" board - , worked fine (at least message avrdude positive).
but not connect board upload sketch (also using arduino isp). time later suggested me add 10k resistor between reset pin , +5v on programmed atmega. did this, , tried upload simple sketch , worked! once... (i not connect upload another).
after that, realized forgot connect gnd signals of both microcontrolers (it because have external power source entire circuit thought not have connect - know silly me.. :( )   after fixing able upload sketches until once clicked normal "upload" button instead of "upload using programmer" mistake , again returned point cannot upload anything.
error time:

avrdude: device signature = 0x000000

my current connections:
atmega328p     ardiono uno
    sck              pin 13
   miso              pin 12
   mosi              pin 11
   res                pin 10
   gnd               gnd
   +5v               +5v   (i decided turn off external source , connect directly arduino)

cap 10uf on res gnd on arduinouno

i checked wires few times, replaced them all.

any ideas wrong, or else can do?

the atmega in tqfp package , soldered board... 

 

any ideas wrong, or else can do?

the atmega in tqfp package , soldered board...  
maybe programmed low fuse external crystal mistake?

an easy test (and recover problem well!) take crystal (any value 8mhz, 16mhz... anywhere range) , hand hold leads 2 avr crystal pins , try programming it.

use regular hc-49 crystal, hold body using cliplead (the other end grounded avr board) , touch 2 pins 328p , try program.

also check fuse settings , sure have bit 5 of high fuse (spi enable) programmed. if not, need high voltage programmer recover (and lotsa luck doing smt part!).

hope helps.

good luck.


Arduino Forum > Using Arduino > Microcontrollers > ATmega328P on a breadboard (8MHz internal clock) programming problem


arduino

Comments

Popular posts from this blog

DHT11 Time out error using v0.4.1library

Sketch upload fails with Java error (___REMOVE___/bin/avrdude)!

Arduino Uno + KTY81/210 temperature sensor