So I've been stuck on this problem today and I've spent many hours on it. I don't have much experience with Arduino, so I don't really know what to try anymore. I was having trouble uploading my sketch to the board with an error like this
avrdude: verification error, first mismatch at byte 0x0000 0x62 != 0x0c avrdude: verification error; content mismatch
No problem, after looking at some forums I bought a usbasp AVR ATMEGA8 programmer to try to burn a new bootloader. After fixing a few problems with it, I finally came to this error.
avrdude: warning: cannot set sck period. please check for usbasp firmware update. avrdude: error: programm enable: target doesn't answer. 1 avrdude: initialization failed, rc=-1 Double check connections and try again, or use -F to override this check.
After looking at a few more forums I found that either the wiring was wrong or I was going to have enable the "slow SCK" jumper. So I tripled checked the wiring and eventually had to solder the sjumper but still got the same error.
I finally gave up and learned you can use a different Arduino to burn the bootloader. After using the example code named arduinoIsp and even trying a different version that overwrites the clock cycle. I'm still getting this error
avrdude: Device signature = 0x1e9801 (probably m2560) avrdude: Expected signature for ATmega328P is 1E 95 0F Double check chip, or use -F to override this check.
avrdude done. Thank you.
This is where I am currently stuck. existing forum help seems to stop here. What it looks like to me is the arduinoIsp isn't designed to work with my version of the ATMega8? I know you can dig around the .config files and make it work. but I'm not sure if they are compatible and if it will work correctly. I'm also assuming that I'm now forced to burn the bootloader with the usbasp that I bought. However, I have also run into a dead end there and have no idea where to even start looking into that problem. any help is greatly appreciated!