I have been burning midnight oil everyday trying to burn bootloader on Atmega 8A using Arduino Mega as ISP with 16 Mhz external clock using ICSP connector pins. Below is the error while doing uploading in an proto/bread board. Also not able to upload sketches using Arduino IDE. Pls help here
Atmega chip programmer.
Written by Nick Gammon.
Version 1.38
Compiled on Aug 9 2020 at 01:18:13 with Arduino IDE 10813.
Attempting to enter ICSP programming mode ..........
Entered programming mode OK.
Signature = 0x1E 0x93 0x07
Processor = ATmega8A
Flash memory size = 8192 bytes.
Writes are timed, not polled.
LFuse = 0xE4
HFuse = 0xD9
EFuse = 0xFF
Lock byte = 0xFF
Clock calibration = 0xAD
Bootloader address = 0x1C00
Bootloader length = 1002 bytes.
Type 'Q' to quit, 'V' to verify, or 'G' to program the chip with the bootloader ...
Erasing chip ...
Writing bootloader ...
Committing page starting at 0x1C00
Committing page starting at 0x1C40
Committing page starting at 0x1C80
Committing page starting at 0x1CC0
Committing page starting at 0x1D00
Committing page starting at 0x1D40
Committing page starting at 0x1D80
Committing page starting at 0x1DC0
Committing page starting at 0x1E00
Committing page starting at 0x1E40
Committing page starting at 0x1E80
Committing page starting at 0x1EC0
Committing page starting at 0x1F00
Committing page starting at 0x1F40
Committing page starting at 0x1F80
Committing page starting at 0x1FC0
Written.
Verifying ...
Verification error at address 1C00. Got: 0x00 Expected: 0x12
Verification error at address 1C01. Got: 0x00 Expected: 0xC0
Verification error at address 1C02. Got: 0x00 Expected: 0x2B
Verification error at address 1C03. Got: 0x00 Expected: 0xC0
Verification error at address 1C04. Got: 0x00 Expected: 0x2A
Verification error at address 1C05. Got: 0x00 Expected: 0xC0
Verification error at address 1C06. Got: 0x00 Expected: 0x29
Verification error at address 1C07. Got: 0x00 Expected: 0xC0
Verification error at address 1C08. Got: 0x00 Expected: 0x28
My recommendation is to try using the "Arduino as ISP" programmer approach with the Arduino IDE's Tools > Burn Bootloader feature. That Nick Gammon thing was good in its time, but it doesn't provide anything of value for your application in 2020.
Although the Arduino IDE does provide that "Arduino NG or older" board option with the ATmega8, the better option is to use MiniCore to add more advanced ATmega8 support to the Arduino IDE:
Instructions for installation and usage are provided at the link above.
Make the following connections between the Arduino board you will be using as the programmer and the target. Refer to the "Connections" table on the SPI library reference page to determine the pins:
An error occurred while uploading the sketch
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.