Corrupted Leonardo Bootloader

Hi i'm trying to fix my leonardo bootloader but it disconnects me after couple of seconds of being in the bootloader mode my belief it is corrupted , I'm trying to revive this leonardo board via arduino uno I followed this video:

I get this error when i'm trying to upload the sketch from the uno to the leonardo

a bit more context Before I used Atmel flip on this leonardo and I flashed the wrong hex file into this and since it is bricked and i can't repair it , no matter what I tried doing it doesn't seem to change from that hex file that I first flashed into it and on top of it can't go into bootloader mode for longer than 2 seconds

the hexfile that i flashed was a keyboard uno hex file but the problem is that i flashed it into my leonardo and it's pretty much bricked right now

These are my settings + the error:

upp

You can try this Arduino Leonardo Bootloader Replacement - iFixit Repair Guide

I tried it didn't work to me , abit of context Before I used Atmel flip on this leonardo and I flashed the wrong hex into this and since it is bricked and i can't repair it I tried doing this method but it doesn't seem to change from that hex file it is stuck like that

It's normal that the bootloader times out after about 8 seconds. Is that what you are observing?

What does windows device manager think of your board if it's in bootloader mode?

Does the built-in LED fade in and out while in bootloader mode?

"It's normal that the bootloader times out after about 8 seconds. Is that what you are observing?"
No when I short the 2 pins instead of remaining in bootloader dfu mode it just reverts back into "Arduino keyboard" I flashed this chip with wrong hex and now I think i bricked with

It doesn't really react light up the dfu mode leds

My opinion: you have a bootloader. Just upload a normal sketch the usual (?) way.

  1. In the IDE, select Leonardo for the board.
  2. Reset the Leonardo, select the bootloader port as the port.
  3. Start an upload.
  4. When the IDE reports the memory usage, reset the board.

When you tried to burn the bootloader using the UNO, did you put a capacitor between RESET and GND on the UNO? Something around 10uF, but the value is not critical, is sometimes needed to prevent the UNO from resetting during the bootload process.

I need to revert the Board back to being Arduino Leonardo and not Leonardo Keyboard and also what about the fact that it just ejects me from bootloader dfu mode? it is needed in order to burn the proper hex file back into this chip and fix the bootloader

Yes i've used a capacitor still didn't fix that problem :confused:

You have a bootloader, your screenshot shows it. So I do not quite understand why you need to fiddle with dfu mode?

You shoukd be able to upload a sketch via USB.

Just to verify, you are connecting to the ICSP header pins on the Leonardo, and not pins 11/12/13. Unlike the UNO, the ISP pins on a Leonardo are not the same as 11/12/13.

No insult intended, but you have loaded the ArduinoISP sketch onto the UNO? (although I can clearly see that sketch is shown on your screenshot)

This bootloader mode you see is temporary it crashes the moment it gets into this mode back to Leonardo keyboard , This matters since I flashed the wrong hex file into this Leonardo board and i can't revert this back to proper hex file until i can get this to be in bootloader mode stable without crashing back to Leonardo Keyboard (Atmel flip requires the chip to be in dfu mode to be flashed)

Yes lol i did load and connect the UNO with 13 12 11 and gnd and 5v , Leonardo ICSP

Another thing you can try, if there is still actually a bootloader on the board. Double-tap the reset button on the leonardo as the IDE gets to the point of uploading a sketch (use something short like the blink sketch).

mhmm did that nothing really changed like the sketch works either way ^^ that wasn't the issue though :frowning:

I understand that it falls back. That happens after approx. 8 seconds. But it shows that the bootloader is available.

Have you tried the steps in post #7 using the IDE and the USB connection instead of the complicated way of using DFU mode?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.