Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to burn the arduino bootloader onto my ATmega328P so it uses the internal clock. I followed the tutorial in this page but I'm getting this error.

avrdude: Version 6.3, compiled on Dec 16 2016 at 13:33:19
     Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
     Copyright (c) 2007-2014 Joerg Wunsch

     System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

     Using Port                    : COM5
     Using Programmer              : stk500v1
     Overriding Baud Rate          : 19200
     AVR Part                      : ATmega328P
     Chip Erase delay              : 9000 us
     PAGEL                         : PD7
     BS2                           : PC2
     RESET disposition             : dedicated
     RETRY pulse                   : SCK
     serial program mode           : yes
     parallel program mode         : yes
     Timeout                       : 200
     StabDelay                     : 100
     CmdexeDelay                   : 25
     SyncLoops                     : 32
     ByteDelay                     : 0
     PollIndex                     : 3
     PollValue                     : 0x53
     Memory Detail                 :

                              Block Poll               Page                       Polled
       Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
       ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
       eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
       flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
       lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
       hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
       efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
       lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
       calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
       signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

     Programmer Type : STK500
     Description     : Atmel STK500 Version 1.x firmware
     Hardware Version: 2
     Firmware Version: 1.18
     Topcard         : Unknown
     Vtarget         : 0.0 V
     Varef           : 0.0 V
     Oscillator      : Off
     SCK period      : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x000000 (retrying)

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x000000 (retrying)

Error while burning bootloader.
Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
     Double check connections and try again, or use -F to override
     this check.


avrdude done.  Thank you.

I tried placing a cap from reset to ground but it doesn't wort either.
Any idea on what might be wrong with my procedure?

Thanks

[EDIT]

  • I followed the procedure described at the bottom of the page linked (Minimal Circuit (Eliminating the External Clock)).
  • I used the bootloader in "breadboard-1-6-x.zip"
  • I am using the Arduino IDE v1.8.1
share|improve this question
    
It isn't clear from question+webpage what your procedure is, or what you want to do. What “internal clock” do you mean? The built-in 8 MHz RC oscillator ? If so, please edit question to say so. Also edit question to include a schematic of how you have things hooked up. Do you have a USBasp to program the ATmega328P system, or what? – jwpat7 Feb 16 at 2:54
    
I followed precisely the instructions listed on the link I provided. And yes it is the internal 8MHz RC oscillator – jagjordi Feb 16 at 5:57
    
You could edit the question and say what your programmer is, what fuse settings, which bootloader. Or just let people guess. – jwpat7 Feb 16 at 6:05
    
I though providing a link of the tutorial which answers all of your questions was enough, but I'll edit it out. – jagjordi Feb 16 at 6:08
    
The link describes several different procedures, and I think the details of what all was done aren't clear – jwpat7 Feb 16 at 6:10

If your ATMEGA328P has already been used with a crystal or already has a bootloader on it, then the fuses will be set to expect a crystal oscillator. In this case, you must initially have a crystal & the associated 2 capacitors connected. Once you have succeeded in burning the bootloader (this process also sets the fuses) you can dispense with the crystal.

share|improve this answer
    
can I connect the ATmega Cristal pins to the arduino board? – jagjordi 2 days ago
    
According to this, it should be possible to share a crystal (or resonator in the case of most newer Arduino boards) : forum.arduino.cc/index.php?topic=78584.0 – 6v6gt yesterday
    
I tryed connecting to the board oscillator. Now it gives me this error: – jagjordi yesterday
    
avrdude: Device signature = 0x00ffff avrdude: Expected signature for ATmega328P is 1E 95 0F Double check chip, or use -F to override this check. – jagjordi yesterday
    
Also the device signature keeps changing every time I try to burn the bootloader. Does this mean the ATmega is broken? – jagjordi yesterday

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.