Bootloading Atmega8A-AU

Hi,
i designed a pcb for Atmega328p-AU but due to some logistical issues i was forced to use Atmega8a-AU, but the problem is that i am not able to burn a bootloader. I tried using MiniCore and Arduino NG or Older but no luck. This the message i am getting. I assembled pair of two boards one with 16MHz crystal and associated caps and one without. Neither of them works.
I also checked with AVRDUDEs using USBasp and the detect option is not returning anything. The pcb is a a working one because i am using it with Atmega328p-au.

"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:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

     Using Port                    : COM7
     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
       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 .reduced_core_tiny) (retrying)

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

avrdude: Device signature = 0x00ffff
avrdude: Expected signature for ATmega8 is 1E 93 07
Double check chip, or use -F to override this check.

avrdude done. Thank you."

Let's see it, please. Schematics and a picture of the finished product. It will be much easier to help then.

Why ATmega8? It is old and quite different from ATmega328. If possible is better to use ATmega88, which is similar to 328.


This is the schematic.

yes, my local supplier only had Atmega8 in stock and i have to deliver the product asap.

Excellent. Can you please provide a picture as well?
Design and implementation can sometimes vary.



These are the pics. The connections are correct. The atmega328p-au version of the board is working.

If the Atmega8 is brand new, it's running off it's internal 1MHz oscillator. This is a bit too slow for a USBasp programmer. Does it work if you use the "USBasp (slow)" option with MiniCore?