standalone atmegaa8

Hello, I want to program atmega8 with my arduino program without using bootloader.
Please suggest some tips.

You will need some kind of programmer. You can use Arduino to do this job - Arduino as ISP.

You need a Programmer that will connect to SCK, MISO, MOSI, Reset, power, Gnd, and accesses the memory locations directly.
Can use an Arduino + SD card to do it:
http://www.gammon.com.au/forum/?id=11638
My hardware card at the bottom of the link above combines it all:
http://www.crossroadsfencing.com/BobuinoRev17/Programmer.html


or a Programmer like Atmel AVR ISP MKii if you can locate one. Other Programmers exist as well.

But fresh ic needs to be burned with bootloader isn'it and my problem is that with bootloader atmega8 takes around 8-10 secs to boot up after reset.
That is the main issue.

Burning the bootloader from the IDE sets up the High/Low/Extended fuse bytes.
After that you can download via the SPI pins to overwrite the bootloader for fast startup; the fuses are left alone.

be aware the arduino ide has a bug that prevents burning fuses or bootloaders for that.

mohit-singh:
my problem is that with bootloader atmega8 takes around 8-10 secs to boot up after reset.
That is the main issue.

optiboot version bootloader does not delay like that. however i avoid serial bootloaders in general and prefer isp flashing for other reasons. many recommend expensive programmers but imo usbasp type is not only lowest cost ($1) but also works better. arduino-as-isp is almost as cheap ($2 promini or nano) and works good too.

Another thing, how to get atmega8 into boards
In IDE 1.6.5

Another thing, how to get atmega8 into boards In IDE 1.6.5

Select "Board" "Arduino NG or Older", and then Select "Processor" "ATmega8"

There's a similar multi-step process if you install the optiboot "boards" package.

Still no success, :confused:
Using arduino uno board as ISP to program standalone atmega8 on breadboard but arduino board is itself getting programmed every time.
What is wrong I'm doing please help.

Also installed optiboot v5.0 in hardware but boot time is still 10sec.

Finally programed atmega8 w/o bootloader just exported hex file from arduino IDE and programmed the atmega8 using USB avr with exported hex file..everything is good and thanks a lot guys for all input.