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