HOW TO OVERRIDE???

I am getting this error when i use BURN BOOTLOADER, i have set the programmer = Arduino as ISP

avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to
override
this check

HOW DO I USE -F?? where to type it?? how do i override this error??

HOW DO I USE -F?

If the answer isn't obvious, you shouldn't.

abhinavparakh95:
I am getting this error when i use BURN BOOTLOADER, i have set the programmer = Arduino as ISP

avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to
override
this check

HOW DO I USE -F?? where to type it?? how do i override this error??

Sounds like the device signature is wrong. When the bootloader is programmed
the hardware signature bytes are checked and if not what is expected then the
programming aborts.

So what signature bytes are you using (depends on the settings in boards.txt
for the currently selected board)?

What chip are you trying to program? Exact part number - different versions
of the same chip can have different signature bytes.

MarkT:
Sounds like the device signature is wrong. When the bootloader is programmed
the hardware signature bytes are checked and if not what is expected then the
programming aborts.

So what signature bytes are you using (depends on the settings in boards.txt
for the currently selected board)?

What chip are you trying to program? Exact part number - different versions
of the same chip can have different signature bytes.

The Chip on which i am trying to burn the bootloader is ATmega328P-PU.
I have selected Arduino UNO in Tools->Boards
And also i have uploaded ArduinoISP example on the Arduino UNO board that i have.

this is the code as in boards.txt for Arduino UNO

uno.name=Arduino Uno
uno.upload.protocol=arduino
uno.upload.maximum_size=32256
uno.upload.speed=115200
uno.bootloader.low_fuses=0xff
uno.bootloader.high_fuses=0xde
uno.bootloader.extended_fuses=0x05
uno.bootloader.path=optiboot
uno.bootloader.file=optiboot_atmega328.hex
uno.bootloader.unlock_bits=0x3F
uno.bootloader.lock_bits=0x0F
uno.build.mcu=atmega328p
uno.build.f_cpu=16000000L
uno.build.core=arduino
uno.build.variant=standard

all the numbers on the ATmega328P-PU chip that i have are :

FrontSide
ATMEL 1231
ATMEGA328P-PU
BackSide
2W2736
35473D
1-P1231 e3

Are you using an UNO as the ISP? you might need a capacitor.

An Arduino board serving as an ISP to program the ATmega on another Arduino board. On the Arduino Uno, you'll need to connect a 10 uF capacitor between reset and ground (after uploading the ArduinoISP sketch). Note that you need access to the reset pin on the target board, which isn't available on NG or older boards.

(deleted)

Nothing is helping. I tried connecting the capacitor (10uF) but nothing helped.
Still not able to burn the bootloader.
I am Using Arduino UNO Rev 3 board as ISP.
and burning the bootloader on ATmega328P-PU NOT ATmega328-PU.

I tried connecting the capacitor (10uF) but nothing helped.

UNO R3 works without the capacitor.

avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to

Concentrate to the first part of sentence: "Double check connections..."!
Disconnect all, try to reburn ArduinoISP sketch, check the connections and then do not forgot to change the board to required type before you start to burn the bootloader (you've probably omitted this).
There is tutorial how to do this http://arduino.cc/en/Tutorial/ArduinoISP

Budvar10:
Concentrate to the first part of sentence: "Double check connections..."!
Disconnect all, try to reburn ArduinoISP sketch, check the connections and then do not forgot to change the board to required type before you start to burn the bootloader (you've probably omitted this).
There is tutorial how to do this http://arduino.cc/en/Tutorial/ArduinoISP

Which board do i have to select when i burn the bootloder? I have ATmega328P-PU chip on a breadboard? I have been burning bootloader with the board selected as Arduino UNO.

I had reconnected and tried again almost 20 times in the past few days.

I also tried OptiLoader to burn the bootloader and i get the following error message :

Target power on! ...
Starting Program Mode - Failed, result = 0x0

Target power OFF!

I have checked the wiring several times.

Which board do i have to select when i burn the bootloder? I have ATmega328P-PU chip on a breadboard? I have been burning bootloader with the board selected as Arduino UNO.

Wrong! Read carefully the link an also http://arduino.cc/en/Tutorial/ArduinoToBreadboard. You have to download http://arduino.cc/en/uploads/Tutorial/Breadboard.zip and follow the instructions how to use it.
You have to select "ATmega328 on a breadboard".

I was able to isolate the error, and also figured out a weird solution for it.

The problem was in the crystal (KDS 16.00MHz) i was using. Well so i tried 3 things :

  1. I removed the crystal but kept the capacitors (22pF X 2) connected and tried optiLoader didn't work.
  2. I removed the capacitors (22pF X 2) even still didn't work.
  3. I put the crystal back in place without the capacitors(22pF X 2) and it WORKED.

Now it is working fine but, i don't know why..

Thanks for all your replies.

abhinavparakh95:
HOW DO I USE -F?? where to type it??

Can people just stop being a pack of morons and answer the OP's question? There are other people using the forum trying to find answers, and searching for something as trivial as "-F" is hard to find the correct results.

Sorry to be blunt, but the OP asked a simple question in which following posts beat around the bush - not helpful to the general community.

Pilbromatic:
HOW DO I USE -F?? where to type it??

Can people just stop being a pack of morons and answer the OP's question? There are other people using the forum trying to find answers, and searching for something as trivial as "-F" is hard to find the correct results.

Would using the -f option have helped at all in this case ?

I think not.