Expected signature for atmega 8 is 1e 93 07

Hello there, sorry for repeating the same issue. Few months Earlier I was facing issue when uploading bootloader to a bare atmega 8a using arduino nano. It showed expected signature for atmega 8 is 1e 93 07.

I had posted the issue in arduino forum and found out that it was a connection problem and I solved by replacing the slack jumper wire.

But at present, although I am able to boatload my pre-bootloaded atmega 8a ic but when i try brand new one using the same wiring diagram (even I just swap out existing chip with the new one on the same breadboard) it fails and error massage is like signature error. It is the same error I had faced earlier. I have tried 5 ICs results are the same. I have double checked all the connections and all are looking good.

Mysterious thing is I have purchased all the chips at a time.

Don’t know how to solve this please help.

Hi and welcome back!

I think that's good, the solution is likely to be the same for all of them.

If it is a genuine chip from a reliable source, then the default CPU clock is 1 MHz, divided down by a factor of 8 from the internal 8 MHz RC oscillator. The ISP programmer MUST use a clock rate of less than 250 kHz to program the device.

use AVRDUDE for burning code. first make your Arduino code as hex and upload it using Arduino nano as isp programmer in AVRDUDE in your atmega8a.

Sorry i couldn’t get that. What i need to do?
I tried internal 8 mhz clock but it is the same error.

How can I make my arduino code into hex. And what is avrdude? Can you please give me details and sorry I am kind of new comer.

I am using atmega NG or older(atmega 8) and arduino as ISP.
It works fine with the pre-bootloaded atmega 8a but the new one causes problem.

You need to make sure that the ISP programmer clock rate is less than 250 kHz.

For better advice, post the details of your setup, like the code, using code tags, a wiring diagram, etc.

See this excellent tutorial: Gammon Forum : Electronics : Microprocessors : How to make an Arduino-compatible minimal board

go to Arduino ide click on file , then go to preference , a dialogue box pop up , check in compile option and click on it. it will make your code in hex format. u find in your compiling window and in your %temp% file location. avrdude is a programme to burn hex file in avr microcontroller. u can find it in internet as avrdude gui . u don't need to burn bootloader in avrdude.

I have tried Gammon Forum] tutorial.

It shows this with the new chip :

10:19:09.509 -> ⸮⸮⸮⸮
10:19:10.993 -> Atmega chip detector.

And this with the pre-bootloaded chip :

10:19:09.509 -> ⸮⸮⸮⸮
10:19:10.993 -> Atmega chip detector.
10:19:11.082 -> Entered programming mode OK.
10:19:11.082 -> Signature = 1E 93 07 
10:19:11.082 -> Processor = ATmega8A
10:19:11.082 -> Flash memory size = 8192
10:19:11.082 -> LFuse = DF 
10:19:11.082 -> HFuse = CA 
10:19:11.082 -> EFuse = FF 
10:19:11.082 -> Lock byte = FF 
10:19:11.082 -> Clock calibration = BA 
10:19:11.082 -> Bootloader in use: Yes
10:19:11.125 -> EEPROM preserved through erase: No
10:19:11.125 -> Watchdog timer always on: Yes
10:19:11.125 -> Bootloader is 1024 bytes starting at 1C00
10:19:11.125 -> 
10:19:11.125 -> Bootloader:
10:19:11.125 -> 
10:19:11.125 -> 1C00: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.125 -> 1C10: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.125 -> 1C20: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.125 -> 1C30: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.125 -> 1C40: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.125 -> 1C50: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.125 -> 1C60: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.228 -> 1C70: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.228 -> 1C80: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.228 -> 1C90: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.228 -> 1CA0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.228 -> 1CB0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.228 -> 1CC0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.228 -> 1CD0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.228 -> 1CE0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.228 -> 1CF0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.228 -> 1D00: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.228 -> 1D10: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.228 -> 1D20: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.228 -> 1D30: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.228 -> 1D40: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.228 -> 1D50: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.263 -> 1D60: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.263 -> 1D70: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.263 -> 1D80: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.263 -> 1D90: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.263 -> 1DA0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.263 -> 1DB0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.263 -> 1DC0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.298 -> 1DD0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.298 -> 1DE0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.298 -> 1DF0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.298 -> 1E00: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.298 -> 1E10: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.298 -> 1E20: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.298 -> 1E30: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.362 -> 1E40: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.362 -> 1E50: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.362 -> 1E60: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.362 -> 1E70: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.362 -> 1E80: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.362 -> 1E90: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.362 -> 1EA0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.362 -> 1EB0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.362 -> 1EC0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.362 -> 1ED0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.362 -> 1EE0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.362 -> 1EF0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.362 -> 1F00: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.362 -> 1F10: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.397 -> 1F20: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.397 -> 1F30: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.397 -> 1F40: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.397 -> 1F50: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.397 -> 1F60: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.397 -> 1F70: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.397 -> 1F80: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.431 -> 1F90: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.431 -> 1FA0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.431 -> 1FB0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.431 -> 1FC0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.431 -> 1FD0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.431 -> 1FE0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.431 -> 1FF0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
10:19:11.494 -> 
10:19:11.494 -> MD5 sum of bootloader = 9A 89 18 B1 18 78 DA 50 6F 76 1B C1 C9 C4 CE 17 
10:19:11.629 -> 
10:19:11.629 -> First 256 bytes of program memory:
10:19:11.629 -> 
10:19:11.629 -> 0: 41 C0 65 C0 64 C0 63 C0 62 C0 61 C0 4E C3 5F C0 
10:19:11.629 -> 10: 5E C0 01 C3 5C C0 CD C2 A7 C2 59 C0 58 C0 57 C0 
10:19:11.629 -> 20: 56 C0 55 C0 54 C0 00 00 00 00 00 00 00 00 00 03 
10:19:11.629 -> 30: 04 06 00 00 00 00 00 00 00 00 0A 0B 0C 0D 0E 0F 
10:19:11.629 -> 40: 00 01 02 03 04 05 00 00 00 00 38 00 35 00 32 00 
10:19:11.629 -> 50: 00 00 00 00 37 00 34 00 31 00 04 04 04 04 04 04 
10:19:11.629 -> 60: 04 04 02 02 02 02 02 02 03 03 03 03 03 03 01 02 
10:19:11.629 -> 70: 04 08 10 20 40 80 01 02 04 08 10 20 01 02 04 08 
10:19:11.691 -> 80: 10 20 03 04 11 24 1F BE CF E5 D4 E0 DE BF CD BF 
10:19:11.691 -> 90: 10 E0 A0 E6 B0 E0 EA EC F4 E1 02 C0 05 90 0D 92 
10:19:11.691 -> A0: AC 38 B1 07 D9 F7 21 E0 AC E8 B0 E0 01 C0 1D 92 
10:19:11.691 -> B0: AF 37 B2 07 E1 F7 10 E0 C2 E4 D0 E0 03 C0 21 97 
10:19:11.691 -> C0: FE 01 D2 D9 C1 34 D1 07 D1 F7 2B D4 FC C9 98 CF 
10:19:11.691 -> D0: 90 E0 FC 01 E2 59 FF 4F 24 91 86 5A 9F 4F FC 01 
10:19:11.691 -> E0: 84 91 88 23 99 F0 90 E0 88 0F 99 1F FC 01 E0 5B 
10:19:11.691 -> F0: FF 4F A5 91 B4 91 FC 01 EA 5B FF 4F 85 91 94 91 
10:19:11.691 -> 

I have tried both the circuit diagram (with and without crystal) results are the same.

For further clarity I am sharing the circuit diagram with 16mhz crystal

This is my error code :

Arduino: 1.8.18 (Windows 10), Board: "Arduino NG or older, ATmega8"

C:\Users\prana\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -CC:\Users\prana\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v -patmega8 -cstk500v1 -PCOM3 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w::m -Uhfuse:w:0xca:m -Ulfuse:w:0xdf:m 



avrdude: Version 6.3-20190619

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

         Copyright (c) 2007-2014 Joerg Wunsch



         System wide configuration file is "C:\Users\prana\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"



         Using Port                    : COM3

         Using Programmer              : stk500v1

         Overriding Baud Rate          : 19200

         AVR Part                      : ATmega8

         Chip Erase delay              : 10000 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         4    20   128    0 no        512    4      0  9000  9000 0xff 0xff

           flash         33    10    64    0 yes      8192   64    128  4500  4500 0xff 0x00

           lfuse          0     0     0    0 no          1    0      0  2000  2000 0x00 0x00

           hfuse          0     0     0    0 no          1    0      0  2000  2000 0x00 0x00

           efuse          0     0     0    0 no          0    0      0     0     0 0x00 0x00

           lock           0     0     0    0 no          1    0      0  2000  2000 0x00 0x00

           calibration    0     0     0    0 no          4    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 = 0xffffff (probably .avr8x_mega) (retrying)



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



avrdude: Device signature = 0xffffff (probably .avr8x_mega) (retrying)



Error while burning bootloader.

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



avrdude: Device signature = 0xffffff (probably .avr8x_mega)

avrdude: Yikes!  Invalid device signature.

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

         this check.





avrdude done.  Thank you.




This is my Arduino IDE settings :

Today I have replaced the chip (All my chips are brought together from the same store) and I got this new error massage :

Arduino: 1.8.18 (Windows 10), Board: "ATmega8, Yes (UART0), EEPROM retained, BOD 2.7V, LTO enabled, External 16 MHz"

C:\Users\prana\AppData\Local\Arduino15\packages\MiniCore\tools\avrdude\7.2-arduino.1/bin/avrdude -CC:\Users\prana\AppData\Local\Arduino15\packages\MiniCore\hardware\avr\3.0.0/avrdude.conf -v -patmega8 -cstk500v1 -PCOM3 -b19200 -e -Ulock:w:0xff:m -Uefuse:w:{bootloader.extended_fuses}:m -Uhfuse:w:0b11000111:m -Ulfuse:w:0b10111111:m 



avrdude: Version 7.2-arduino.1

         Copyright the AVRDUDE authors;

         see https://github.com/avrdudes/avrdude/blob/main/AUTHORS



         System wide configuration file is C:\Users\prana\AppData\Local\Arduino15\packages\MiniCore\hardware\avr\3.0.0\avrdude.conf



         Using Port                    : COM3

         Using Programmer              : stk500v1

         Overriding Baud Rate          : 19200

avrdude stk500_getsync() warning: attempt 1 of 10: not in sync: resp=0x15

avrdude stk500_getsync() warning: attempt 2 of 10: not in sync: resp=0x15

         AVR Part                      : ATmega8

         Chip Erase delay              : 9000 us

         PAGEL                         : PD7

         BS2                           : PC2

         RESET disposition             : possible i/o

         RETRY pulse                   : SCK

         Serial program mode           : yes

         Parallel program mode         : yes

         Timeout                       : 200

         StabDelay                     : 100

         CmdexeDelay                   : 25

         SyncLoops                     : 32

         PollIndex                     : 3

         PollValue                     : 0x53

         Memory Detail                 :



                                           Block Poll               Page                       Polled

           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack

           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------

           eeprom                  4    20   128    0 no        512    4      0  9000  9000 0xff 0xff

           flash                  33    10    64    0 yes      8192   64    128  4500  4500 0xff 0x00

           lfuse                   0     0     0    0 no          1    1      0  4500  4500 0x00 0x00

           hfuse                   0     0     0    0 no          1    1      0  4500  4500 0x00 0x00

           lock                    0     0     0    0 no          1    1      0  4500  4500 0x00 0x00

           signature               0     0     0    0 no          3    1      0     0     0 0x00 0x00

           calibration             0     0     0    0 no          4    1      0     0     0 0x00 0x00



         Programmer Type : STK500

         Description     : Atmel STK500 version 1.x firmware



avrdude stk500_getparm() error: protocol expects OK byte 0x10 but got 0x14



avrdude stk500_getparm() error: protocol expects sync byte 0x14 but got 0x02



avrdude stk500_getparm() error: protocol expects sync byte 0x14 but got 0x10

         Hardware Version: 48164504

         Firmware Version: 0.2

         Topcard         : STK502

         Vtarget         : 1.8 V

         Varef           : 0.0 V

         Oscillator      : Off

         SCK period      : 0.1 us

avrdude stk500_initialize() error: protocol expects OK byte 0x10 but got 0x01

avrdude main() error: initialization failed, rc=-1

        - double check the connections and try again

        - use -B to set lower the bit clock frequency, e.g. -B 125kHz

        - use -F to override this check

avrdude stk500_disable() error: protocol expects sync byte 0x14 but got 0x10


avrdude done.  Thank you.



Error while burning bootloader.

This error code is shown only one time then the previous error code is shown as mentioned.

Another thing appears today is that after failed to burning boot loader the 'L' Led on arduino nano blinks three times continuously until I remove the external 16 mhz crystal. again If I insert the crystal the blinking issue appears. And If I reconnect the usb port then the blinking stops until another failed attempt to burning bootloader.

look at this YouTube tutorial . it may help u... https://www.youtube.com/watch?v=IYi815scN2A&ab_channel=LearnItAllAcademy®

Minicore has variant for atmega 328p/atmega328 p pu/ atmega 328 pb but it Doesn't have chip variant for atmega 8a microcontroller. It shows only atmega 8 not atmega 8a

this problem of signature mismatch may be occurred as this microcontrollers are use fuse bit lock by its previous owner. try to use avrdude software. check out this video also https://www.youtube.com/watch?v=QN0pKymphRA&ab_channel=GantengPermanen

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.