how to burn an atmega 328 with arduino uno ?

hi guys

i couldnt find a complete tutorial on how to burn an empty atmega328 with an arduino uno (328p-pu)

i am using ide 1.0.1

uploaded the "arduino isp" to the arduino.

connected the power(both sides of the chip), miso,mosi,reset, sck

  • 10uf between the reset and groung (worked for me for programming an attiny)

selected arduino as programmer

but, i dont know which board to choose ?

or do i need to install a new hardware library ?

(after that i am supposed to write the sketch and upload it using "upload using programmer" ? right ?)

-- the new chip is suppose to be a standalone, no need for bootloader

thanks alot !

If you want to use the internal 8MHz RC oscillator you will need a boards.txt entry for that:

atmega328bb.name=ATmega328p on a breadboard (8 MHz internal clock)

atmega328bb.upload.protocol=stk500
atmega328bb.upload.maximum_size=30720
atmega328bb.upload.speed=57600

atmega328bb.bootloader.low_fuses=0xE2
atmega328bb.bootloader.high_fuses=0xD9
atmega328bb.bootloader.extended_fuses=0x07
atmega328bb.bootloader.path=arduino:atmega
atmega328bb.bootloader.file=ATmegaBOOT_168_atmega328_pro_8MHz.hex
atmega328bb.bootloader.unlock_bits=0x3F
atmega328bb.bootloader.lock_bits=0x0F

atmega328bb.build.mcu=atmega328p
atmega328bb.build.f_cpu=8000000L
atmega328bb.build.core=arduino:arduino
atmega328bb.build.variant=arduino:standard

The easiest way to set the proper fuses is to burn the bootloader. If you leave the fuses in their factory condition your chip will run at 1 MHz.

Are you programming a 328, or a 328P? a 328 will require some changes/additions to a couple files, but the procedure is just like and other operation with ArduinoISP.
Do you have a crystal/resonator hooked up properly? or are you going to use the internal Osc?

If you have a 328P w/16Mhz clock then just select Uno.

thank you for your replys !!!!
still problems...

i am trying to burn atmega328p-pu (blank chip)
using an internal oscillator
got the settings in the boards.txt (on mac it is inside the application package....)
uploaded the arduino isp sketch, plugged the 10uf.
set up programmer: arduino as isp
chose board : 328p on a breadboard

now i am trying to burn bootloader on it (for 8mhz)
but on ide 1.0.1 on the "burn bootloader" option i dont have a submenus. i.e : no options like : burn w/ arduino uno

and when i just use burn bootloader, it compiles, but i get:
avrdude: stk500_recv(): programmer is not responding

same for uploading the blink sketch using "upload using programmer"

ahhh ! please help

thanks

i couldnt find a complete tutorial on how to burn an empty atmega328 with an arduino uno (328p-pu)

Does this help http://arduino.cc/en/Tutorial/ArduinoISP

now i am trying to burn bootloader on it (for 8mhz)
but on ide 1.0.1 on the "burn bootloader" option i dont have a submenus. i.e : no options like : burn w/ arduino uno

After uploading the ArduinoISP sketch to the UNO did you do Tools->Programmer->Arduino as ISP as well as selecting the target (chip to be programmed) in Tools->Board before doing Tools->Burn Bootloader?

Riva:

i couldnt find a complete tutorial on how to burn an empty atmega328 with an arduino uno (328p-pu)

Does this help http://arduino.cc/en/Tutorial/ArduinoISP

yes... i got the general idea, and was able to burn an attiny
the problem is the specific settings - i.e add the board (atmega on breadboard[solved])
and burning it or burning abootloader on it

now i am trying to burn bootloader on it (for 8mhz)
but on ide 1.0.1 on the "burn bootloader" option i dont have a submenus. i.e : no options like : burn w/ arduino uno

After uploading the ArduinoISP sketch to the UNO did you do Tools->Programmer->Arduino as ISP as well as selecting the target (chip to be programmed) in Tools->Board before doing Tools->Burn Bootloader?

sadly yes...
if you dont have other ideas, how can i debug the problem ?

i want to thank you all again, its great that you can have someone that can help.
my background is in software, and its not easy teaching yourself electronics.....
so i really appreciate it

I included some info on burning the fuses at Prototyping small embedded projects with Arduino | David Crocker's Solutions blog.