Did I just found an error in the ArduinoISP page reference?

I am using the Optiloader sketch for a few years now, it is very reliable and is very fast, the thing I love most is the option to “hotswap” chips. I burned several chips, 328p-pu’s, atmega8l-8pu and atmega8a-pu. With ease. But I was never capable of doing the standard way, I mean, following the ArduinoISP reference page, and it seems like almost all other tutorial around is based on this page, of course.

My problem started when I tried to flash some atmega8 with internal osc to try to reduce my project footprint by removing the crystal and the pair of caps. I found no way of doing this by the sketch version of the Optiboot, the Optiloader sketch (but I am pretty sure it is possible), and then I moved to the old fashion way, which was the Arduino as Isp. Since I don’t have an AVRISP mkII and have no plan to acquire one bc I have 2 Uno’s already and maybe 3 more frankenduinos I have built, and actually, I don’t even know how to use a programmer. Anyway, i was almost giving up after trying every little recipe of making an Atmega328 to burn the Atmega8 w/o xtal, and then I found another bare-bones arduino recipe, but this time, the kid (yes, he is an 11 year old) emphasizes the use of a 10uF cap between reset and ground in the host board for the burning process. BADABING, works a treat!! Might seem a very noob problem, buuuut, why there’s no such a thing in the reference page??

Now, for me, every single atmega8-8mhz addition I have made to the boards.txt following all recipes I found works, every single one… and i think i’ve read like 12 or so posts in this forum of people very confused and very frustrated trying to make it work.

Am I wrong?

Is there a way to make the optiloader.ino sketch to just burn the right fuses to the atmega8 8mhz int osc like it does with atmega8 16mhz ext?

isp.jpg

...emphasizes the use of a 10uF cap between reset and ground in the host board for the burning process ... why there's no such a thing in the reference page??

Step #5 (emphasis added)...

Wire your Arduino board to the target as shown in the diagram below. (Note for the Arduino Uno: you'll need to add a 10 uF capacitor between reset and ground.)

Someone else will have to help with the ATmega8 question.

paraphrasing the avrdude: Yikes!

I feel very ashamed, I blame my ADHD, yet the pictures are still deceiving :-[

As for making optiloader set the fuses you want, line 834, 837 contain the fuses that it tries to program to the atmega8. Change those to use the correct fuses for internal oscillator, and you should be good to go.

I think it goes lock, low, high, ext.

Change the fuses on both lines.

It works, thanks for the tip. I noticed a little bit of delay on uploading the sketch, but I think I can live with that, I think the baudrate during the upload is 115200 as shown on the verbose mode:

       Using Port                    : \\.\COM3
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200

And here is the bit of code changed in the optiloader.ino sketch
might be a good idea to fork the project on github to append all 8mhz versions

image_t PROGMEM image_8 = {
  {
    "optiboot_atmega8_8.hex"    }
  ,
  {
    "atmega8"    }
  ,
  0x9307,				/* Signature bytes for 8 */
  {
    0x3F, 0xA4, 0xCC, 0, 0    } //unlock, low, hig, ext
  ,
  {
    0x0F, 0xA4, 0xCC, 0, 0    }//lock, low, high, ext
  ,
  64,
  {
":101E000011248FE594E09EBF8DBF84B714BE81FF7F\n"
":101E1000EED085E08EBD82E08BB988E18AB986E894\n"
":101E200080BD88E089B98EE0CED0BD9A26E088E1F9\n"
":101E30009EEF54E040E29DBD8CBD58BF08B602FE47\n"
":101E4000FDCF38B3342738BBA8952150A1F788249B\n"
":101E50009924CC24C394F5E0DF2EE1E1EE2E73E06B\n"
":101E6000F72EAAD0813489F4A7D08983B0D0898194\n"
":101E7000823819F484E09CD098C0813819F484E049\n"
":101E800097D093C083E094D090C0823419F484E159\n"
":101E9000A6D08BC0853419F485E0A1D086C08535E5\n"
":101EA00069F48AD0082F10E087D090E0982E88241B\n"
":101EB000802A912A880C991C8AD077C0863529F40B\n"
":101EC00084E08DD080E074D070C0843609F043C0C7\n"
":101ED00073D072D0B82E70D080E0881688E1980652\n"
":101EE00030F4F401F7BEE89500E011E002C000E034\n"
":101EF00011E062D0F80181938F01BE16D1F7F0E0B6\n"
":101F00008F16F8E19F0618F0F401F7BEE8955FD050\n"
":101F100007B600FCFDCFF401A0E0B1E02C9130E069\n"
":101F200011968C91119790E0982F8827822B932BF4\n"
":101F300012960C01C7BEE8951124329681E0A034B8\n"
":101F4000B80761F7F401D7BEE89507B600FCFDCFEE\n"
":101F5000E7BEE8952AC08437B9F42ED02DD0A82E3C\n"
":101F60002BD035D0BA2CF40101C0F8018F010F5FDE\n"
":101F70001F4F84911DD0BA94C1F70894811C911C05\n"
":101F8000AA948A0C911C11C0853741F420D08EE1AF\n"
":101F90000FD083E90DD087E00BD007C0813521F445\n"
":101FA00088E011D014D001C012D080E101D059CF07\n"
":101FB0005D9BFECF8CB908955F9BFECF5C9901C0FD\n"
":101FC000A8958CB1089598E191BD81BD0895F4DF85\n"
":101FD000803219F088E0F7DFFFCF84E1E9CF1F936B\n"
":101FE000182FEADF1150E9F7F2DF1F91089580E022\n"
":081FF000EADFEE27FF27099448\n"
":021FFE000404D9\n"
":0400000300001E00DB\n"
":00000001FF\n"
  }
};