I have an UNO with wires connected properly to burn a bootloader. It works fine on a 328P chip. But I have a leonardo that I think the bootloader has issues and want to reflash it. I have the two boards connected as follows:
Uno 5v, gnd to leo 5v, gnd
Uno pin 10 to leo rst
uno 11 to leo 16
uno 12 to leo 14
uno 13 to leo 15
I have the programmer set to Arduino as ISP and board to Arduino UNO. When I try to burn bootloader, I get the following error:
avrdude: Expected signature for ATmega328P is 1E 95 0F
Double check chip, or use -F to override this check.
Failed chip erase: uploading error: exit status 1
What am I doing wrong or is something fatally wrong with the leonardo?
What are the symptoms? What does your operating system think of your board when you double tap the reset? And yes, I know that the board does not have a reset button so you have to hook one up.
You're trying to burn the bootloader to the Uno. You will need to set the board to Leonardo, Micro or Pro Micro.
Did you upload the Arduino-as-ISP sketch to the Uno?
PS:
There is no such thing as a Leonardo Pro Micro. If your board has the Leonardo bootloader, a single tap reset will get it in bootloader mode. If your board has the Pro Micro bootloader, a double tap reset will get it in bootloader mode.
After reading your reply, I had an idea to use an older version of the IDE. It worked flawlessly. Now I can upload sketches to my pro micro. What is different in the new version? I did nothing different with the older version as I had with the new one.
You must have selected the correct board from the Tools > Board menu in the older version of Arduino IDE, whereas you failed to do that when you used the newer version, as @sterretje already explained.
I'm confident it would have worked just as well in the newer version of Arduino IDE if you would only have selected the Pro Micro board from the Tools > Board menu before performing the "Burn Bootloader" operation.
As I said above, did everything exactly the same with the new version as with the old. I wish I had a way to record my screen and what I do. I'd like to make a video showing what is going on.
But alas it is working now and I'm happy. Thanks for the input guys. I have a Nano that is doing the same thing so I will make a new thread about the issues with it.
There is one possible issue in IDE 2.x; I do not know if it is already solved.
Uploads might fail if the serial monitor is open. To my knowledge this does not happen with boards with the 32U4 microcontroller but it might be the cause of your problem with the Nano.