[SOLVED] Arduino bootloader killed atmega 328p

hello all
I connected ATmega328p right to the USBtinyISP V2.0 as it shown below in attachments.
Then I checked the connection with avrdude through cmd. The connection between PC and the chip was OK.
I opened Arduino with blink LED example and set Programmer to USBtinyISP, Microcontroller to ATmega328p.
When I hit "Burn bootloader" Arduino said "Double check connections".
I tried to check the connection with avrdude through cmd prompt but the chip was dead. What was wrong?

Had I click on upload programmer instead of burn bootloader?

Which bootloader, specifically, did you select?

You have no oscillator on that board. You may need a crystal or ceramic resonator for it to work.

A blank Atmega328 from the factory have the fuses set, so it usesthe internal 8 MHz oscillator. When you burn bootloader, the fuses are set for an external crystal/resonator. If this is not present, the chip is indeed "dead" and you cannot communicate with it. Fit a 16 MHz ceramic oscillator and you will be able to use it again.

// Per.

Thx, I found this tutorial http://arduino.cc/en/Tutorial/ArduinoToBreadboard about oscillator. But what if I'll try "Upload Programmer" button. What is this button for?

GRXG:
Thx, I found this tutorial http://arduino.cc/en/Tutorial/ArduinoToBreadboard about oscillator. But what if I'll try "Upload Programmer" button. What is this button for?

If the fuses is set for using an oscillator, and you as missing that, "upload using programmer" won't work.

// Per.

Ok, I think I must to connect the 16MHz oscillator to my board in order to raise it from the dead. And then I will set the fuses for using 8 MHz internal oscillator such as I could remove 16 MHz oscillator, right?

GRXG:
Ok, I think I must to connect the 16MHz oscillator to my board in order to raise it from the dead. And then I will set the fuses for using 8 MHz internal oscillator such as I could remove 16 MHz oscillator, right?

If you want to use the internal oscillator, yes. In that case, set the board for a Lilypad, and "flash bootloader" -then the fuses are set for 8 MHz internal osc.

// Per.

I tried to create a new board "ATmega328 on a breadboard (8 MHz internal clock)".
I copied the file below to "C:\Users\Dereck\Documents\Arduino\hardware\Breadboard\boards.txt"
"C:\Users\Dereck\Documents\Arduino" is a sketchbook folder.

##############################################################

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

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

atmega328bb.bootloader.low_fuses=0xE2
atmega328bb.bootloader.high_fuses=0xDA
atmega328bb.bootloader.extended_fuses=0x05
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

Then I restarted my PC.

There are two points:

  1. Is this line right "atmega328bb.upload.protocol=USBtinyISP" ? (Because I use USBtinyISP V2.0)
  2. I don't see this custom board in Tools > Board dialog and accordingly I can't use it. What's wrong with it?

Resource http://arduino.cc/en/Tutorial/ArduinoToBreadboard

Do I need to add the code of new board to the end of this file C:\Program Files (x86)\Arduino\hardware\arduino\avr\boards.txt right?

Thank you all. Everything works perfectly. Problem solved!
I did everything like it said there http://arduino.cc/en/Tutorial/ArduinoToBreadboard

Great :stuck_out_tongue:

// Per.