Go Down

Topic: i cant upload boot loader to atmega 8  (Read 392 times) previous topic - next topic

mohmdth110

hi ...
i am trying to upload bootloader from arduino uno as (arduinoISP)to atmega 8 but i cant do that
and this error accourse
 1.6.3 (Windows 7):"Arduino Uno"

E:\Arduino\hardware\tools\avr/bin/avrdude -CE:\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -cstk500v1 -PCOM1 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0x05:m -Uhfuse:w:0xDE:m -Ulfuse:w:0xFF:m



avrdude: Version 6.0.1, compiled on Mar 30 2015 at 14:56:06

         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

         Copyright (c) 2007-2009 Joerg Wunsch



         System wide configuration file is "E:\Arduino\hardware\tools\avr/etc/avrdude.conf"



         Using Port                    : COM1

         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.05s



avrdude: Device signature = 0xffffff (retrying)



Reading | ################################################## | 100% 0.05s



avrdude: Device signature = 0xffffff (retrying)




Reading | ################################################## | 100% 0.05s



avrdude: Device signature = 0xffffff

avrdude: Yikes!  Invalid device signature.

         Double check connections and try again, or use -F to override

         this check.





avrdude done.  Thank you.

pert

Please use code tags (</> button on the toolbar) when you post code or warning/error messages. The reason is that the forum software can interpret parts of your code as markup, leading to confusion, wasted time, and a reduced chance for you to get help with your problem. This will also make it easier to read your code and to copy it to the IDE or editor. If your browser doesn't show the posting toolbar then you can just manually add the code tags:
[code]// your code is here[/code]
Using code tags and other important information is explained in the How to use this forum post. Please read it.

You have Arduino Uno selected from the Tools > Board menu but you say the target chip is ATmega8. The Arduino Uno is ATmega328P. Before running the Tools > Burn Bootloader process you need to select the board that matches the configuration of your target chip. One possible option is to select Tools > Board > Arduino NG or older and then Tools > Processor > ATmega8. That requires a 16 MHz external clock. If I remember correctly, the Arduino AVR Boards package that comes with Arduino IDE 1.6.3 does not correctly support the ATmega8. You will need to update your Arduino IDE to a relatively recent version if you want to use that board selection.

If you need a different hardware configuration I recommend MiniCore:
https://github.com/MCUdude/MiniCore
which supports ATmega8 in all common hardware configurations.

Now after all that I suspect this device signature 0xffffff indicates another problem as well but get started with the correct board selection first.

hieunguyen14197

use this arduinoisp code to arduino board and try again you will done. sorry for my english.

Go Up