# Burning Bootloader using Leonardo

**URL:** <https://forum.arduino.cc/t/burning-bootloader-using-leonardo/1430850>\
**Category:** 3rd Party Boards\
**Created:** [February 15, 2026, 1:12am UTC](https://forum.arduino.cc/t/burning-bootloader-using-leonardo/1430850 "2026-02-15T01:12:13Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![quisl](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/quisl/32/1260223_2.png) [@quisl](https://forum.arduino.cc/u/quisl)\
**Post date:** [February 15, 2026, 1:12am UTC](https://forum.arduino.cc/t/burning-bootloader-using-leonardo/1430850/1 "2026-02-15T01:12:13Z")

</div>

I have 2 leonardo boards without bootloader, I’ve been trying a third Leonardo that works to burn bootloader for the past 2 days without success  
All I get is programmer is not responding  
Unable to open com port for programmer stk500v1

Can someone please help me out

---

<div class="post-metadata">

**Author:** ![dmjlambert](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/dmjlambert/32/221001_2.png) [@dmjlambert](https://forum.arduino.cc/u/dmjlambert)\
**Post date:** [February 15, 2026, 5:21am UTC](https://forum.arduino.cc/t/burning-bootloader-using-leonardo/1430850/2 "2026-02-15T05:21:45Z")

</div>

Perhaps. Set your IDE settings or preferences enable show verbose output during download. Give the step by step details of the exact procedure you are using, including what program are you loading on the programmer Arduino, what wiring you do, which Arduino is connected to the computer and with what kind of wire, what selections you make for all the settings in the tools menu. Just pretend we know absolutely nothing about what you are doing (which we don’t). Don’t miss any details of what you are trying. Show a clear photo of the wiring so we can see your solder connections if you have any, and see where the wires connect. Show the full text of what the verbose upload shows in the IDE.

---

<div class="post-metadata">

**Author:** ![david\_2018](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/david_2018/32/1013044_2.png) [@david\_2018](https://forum.arduino.cc/u/david_2018)\
**Post date:** [February 15, 2026, 5:50am UTC](https://forum.arduino.cc/t/burning-bootloader-using-leonardo/1430850/3 "2026-02-15T05:50:19Z")

</div>

One major point, you must use the ICSP header on the target Leonardo boards, the MISO/MOSI/SCK pins are not wired to any of the other headers.

---

<div class="post-metadata">

**Author:** ![quisl](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/quisl/32/1260223_2.png) [@quisl](https://forum.arduino.cc/u/quisl)\
**Post date:** [February 15, 2026, 6:02am UTC](https://forum.arduino.cc/t/burning-bootloader-using-leonardo/1430850/4 "2026-02-15T06:02:52Z")

</div>

I actually followed a guide you did ages ago (glad to see you still being active)  
I’m connecting via isp header and p10  
I flashed the isp example code with the reset 10 line  
Selected arduino as isp  
Using this layout

 ![IMG_4385](https://europe1.discourse-cdn.com/arduino/original/4X/7/1/c/71ce337ed650cbe31732dcf4187536f54c09110d.png)

---

<div class="post-metadata">

**Author:** ![dmjlambert](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/dmjlambert/32/221001_2.png) [@dmjlambert](https://forum.arduino.cc/u/dmjlambert)\
**Post date:** [February 15, 2026, 1:34pm UTC](https://forum.arduino.cc/t/burning-bootloader-using-leonardo/1430850/5 "2026-02-15T13:34:53Z")

</div>

I have a Leonardo that will not accept a bootload any more. I suspect the ATMega32U4 is bad due to static damage and I may get around to replacing the MCU. I recommend make sure your software and wiring is good by ensuring you can bootload something else such as a Nano or Uno. If the one Leonardo you have for a programmer is your last working Arduino, then perhaps you can’t do that. The point of that exercise would be to make sure you can bootload something that you know is in working order.

---

<div class="post-metadata">

**Author:** ![quisl](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/quisl/32/1260223_2.png) [@quisl](https://forum.arduino.cc/u/quisl)\
**Post date:** [February 15, 2026, 2:39pm UTC](https://forum.arduino.cc/t/burning-bootloader-using-leonardo/1430850/6 "2026-02-15T14:39:51Z")

</div>

I don’t even think the other boards are damaged to a degree which doesn’t allow bootloader to burn anymore, both got bricked while uploading a sketch which failed  
It already fails at communicating with the programmer which is strange despite it being new and already has the isp code flashed

---

<div class="post-metadata">

**Author:** ![Willem43](https://avatars.discourse-cdn.com/v4/letter/w/ea5d25/32.png) [@Willem43](https://forum.arduino.cc/u/Willem43)\
**Post date:** [February 15, 2026, 2:45pm UTC](https://forum.arduino.cc/t/burning-bootloader-using-leonardo/1430850/7 "2026-02-15T14:45:56Z")

</div>

A long time ago, way too long, I made an ICSP programmer using the Atmega32U4, mainly to simplify the circuit due to the native USB. It still performs perfectly.

There is however a problem. Originally we had a programmer option for “Arduino as ISP (ATmega32U4)”. That was removed somewhere along the line for reasons I cannot remember. The normal choice “Arduino as ISP” does not work with the Atmega32U4 (Leonardo).

You have to add an option back to the programmers.txt file found here (I am assuming Windows):

`C:\Users\<your user name>\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6`

Below is a listing of my programmers.txt entries showing the “Arduino as ISP” as well as the “Arduino as ISP (ATmega32U4)” options. You will notice the only difference is the protocol option.

```arduino
arduinoasisp.name=Arduino as ISP
arduinoasisp.communication=serial
arduinoasisp.protocol=stk500v1
arduinoasisp.speed=19200
arduinoasisp.program.protocol=stk500v1
arduinoasisp.program.speed=19200
arduinoasisp.program.tool=avrdude
arduinoasisp.program.tool.default=avrdude
arduinoasisp.program.extra_params=-P{serial.port} -b{program.speed}

arduinoasispatmega32u4.name=Arduino as ISP (ATmega32U4)
arduinoasispatmega32u4.communication=serial
arduinoasispatmega32u4.protocol=arduino
arduinoasispatmega32u4.speed=19200
arduinoasispatmega32u4.program.protocol=arduino
arduinoasispatmega32u4.program.speed=19200
arduinoasispatmega32u4.program.tool=avrdude
arduinoasispatmega32u4.program.tool.default=avrdude
arduinoasispatmega32u4.program.extra_params=-P{serial.port} -b{program.speed}

```

Saving the above and restarting the IDE also does not work since the programmer options are cached. You need to delete the .arduinoIDE file if I remember correctly.

`C:\Users\<your user name>\.arduinoIDE`

Close arduino, delete the above file (backup to be safe) and restart the IDE. The deleted file will be recreated but you will loose you settings (like preferences - make a copy).

---

<div class="post-metadata">

**Author:** ![david\_2018](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/david_2018/32/1013044_2.png) [@david\_2018](https://forum.arduino.cc/u/david_2018)\
**Post date:** [February 15, 2026, 2:46pm UTC](https://forum.arduino.cc/t/burning-bootloader-using-leonardo/1430850/8 "2026-02-15T14:46:44Z")

</div>

> [@quisl](#):
>
> both got bricked while uploading a sketch which failed

Quickly pressing the reset button twice should put the board into bootloader mode and allow you to upload a sketch without running the code that is currently on the board.

---

<div class="post-metadata">

**Author:** ![ptillisch](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@ptillisch](https://forum.arduino.cc/u/ptillisch)\
**Post date:** [February 15, 2026, 3:01pm UTC](https://forum.arduino.cc/t/burning-bootloader-using-leonardo/1430850/9 "2026-02-15T15:01:10Z")

</div>

> [@Willem43](#):
>
> Originally we had a programmer option for “Arduino as ISP (ATmega32U4)”. That was removed somewhere along the line for reasons I cannot remember.

This programmer definition is [still present in the " **Arduino AVR Boards**" platform](https://github.com/arduino/ArduinoCore-avr/blob/1.8.7/programmers.txt#L61-L69). Each boards platform may provide its own programmer definitions, so you won't necessarily have this option under Arduino IDE's **Tools \> Programmer** menu if you have a board from a 3rd party platform (e.g., [**MiniCore** boards platform](https://github.com/MCUdude/MiniCore)) selected.

So it should not be necessary for @quisl to modify their `programers.txt` file in order to accomplish this.

> [@Willem43](#):
>
> The normal choice “Arduino as ISP” does not work with the Atmega32U4 (Leonardo).

I confirm this. @quisl please make sure to select **Tools \> Programmer \> Arduino as ISP (ATmega32U4)** from the Arduino IDE menus. If you had a different option selected previously, please try again after adjusting the **Tools \> Programmer** menu selection.

---

<div class="post-metadata">

**Author:** ![quisl](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/quisl/32/1260223_2.png) [@quisl](https://forum.arduino.cc/u/quisl)\
**Post date:** [February 15, 2026, 6:14pm UTC](https://forum.arduino.cc/t/burning-bootloader-using-leonardo/1430850/10 "2026-02-15T18:14:34Z")

</div>

Update:  
Wow the fix was so simple, I had to use Arduino as ISP (ATmega32u4)  
Can someone explain why in the past it was just Arduino as ISP  
Thanks everyone for helping

---

<div class="post-metadata">

**Author:** ![ptillisch](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@ptillisch](https://forum.arduino.cc/u/ptillisch)\
**Post date:** [February 15, 2026, 7:12pm UTC](https://forum.arduino.cc/t/burning-bootloader-using-leonardo/1430850/11 "2026-02-15T19:12:28Z")

</div>

Great news!

> [@quisl](#):
>
> Can someone explain why in the past it was just Arduino as ISP

## Background

Arduino IDE uses a tool named [**AVRDUDE**](https://avrdudes.github.io/avrdude/) to perform the "Burn Bootloader" operation. **AVRDUDE** is a general purpose tool intended to support various memory programming operations for the entire range of AVR microcontrollers, via a variety of ISP programmers and bootloaders.

These programmers and bootloaders use a variety of distinct protocols by which the transfer of data between the **AVRDUDE** application and the target is accomplished. So **AVRDUDE** must be configured for the specific programmer type in use:

[https://avrdudes.github.io/avrdude/7.3/avrdude\_4.html#index-Option-\_002dc-programmer\_002did](https://avrdudes.github.io/avrdude/7.3/avrdude_4.html#index-Option-_002dc-programmer_002did)

There are two different programmer types that can be used with an "Arduino as ISP" programmer:

- `arduino`
- `stk500v1`

The `arduino` programmer type can be used with all "Arduino as ISP" programmers, regardless of which specific Arduino board model is used for the programmer. However, use of this programmer type can sometimes result in the programming operation failing when the programmer board has an [auto-reset circuit](https://rheingoldheavy.com/arduino-from-scratch-part-11-atmega328p-dtr-and-reset/) (e.g., **UNO R3** , **Mega 2560** , classic **Nano** ). That can be worked around by [connecting a capacitor to the board](https://docs.arduino.cc/built-in-examples/arduino-isp/ArduinoISP/#:~:text=This%20type%20of%20board%20needs%20a%2010%C2%B5F%20electrolytic%20capacitor), but this makes an already complex endeavor even more so.

The failure with programmer boards that have an auto-reset circuit is less likely to occur when **AVRDUDE** is configured to use the alternative `stk500v1` programmer type. However, this programmer type can not be used by Windows users when the programmer board uses native USB (as is the case with the **Leonardo** ):

> <https://github.com/arduino/Arduino/issues/1182>
>
> Versions:
> Tried this on windows 7 SP1 and on XP SP2 (though on XP SP2, composite… device stuff must be stripped to bring up leanardo all together).
> The problem does not occur on linux.
> Arduino 1.0.2
> 
> What steps will reproduce the problem?
> From the IDE, perform following steps:
> 1. Upload the ArduinoISP sample to the leonardo.
> 2. Select ArduinoISP as programmer
> 3. In the preferences select verbose output during uploads.
> 4. Select an arbitrary board type. (no need to actually connect that target to the leonardo, we just want to see whether serial communictation between pc an leonardo works).
> 5. Perform "burn bootloader".
> 
> Expected output: avrdude should send some bytes to the leonardo and the latter should send some bytes back (this should of coarse result in a failed upload because no target is attached)
> 
> Actual output: Leonardo sends nothing back, TX led never lights up. (RX led does)
> 
> Analysis: It turns out that on windows when avrdude opens the serial port, neither DTR nor RTS are asserted. Under these conditions, the leonardo does not send out data, see CDC.cpp:
> 
> \`\`\` C++
> size\_t Serial\_::write(uint8\_t c)
> {
> /\* only try to send bytes if the high-level CDC connection itself 
> is open (not just the pipe) - the OS should set lineState when the port
> is opened and clear lineState when the port is closed.
> bytes sent before the user opens the connection or after
> the connection is closed are lost - just like with a UART. \*/
> 
> // TODO - ZE - check behavior on different OSes and test what happens if an
> // open connection isn't broken cleanly (cable is yanked out, host dies
> // or locks up, or host virtual serial port hangs) \*/
> if (\_usbLineInfo.lineState \> 0) {
> int r = USB\_Send(CDC\_TX,&c,1);
> if (r \> 0) {
> return r;
> } else {
> setWriteError();
> return 0;
> }
> }
> setWriteError();
> return 0;
> }
> \`\`\`
> 
> The comment in the code makes sense but unfortunately windows/avrdude do not set RTS/DTR. Note that this does work on classic arduino's: on the duemilanove the ftdi chip apparently just forwards the data received from its uart on the usb. On the uno, the (LUFA) code in the atmega8u4, does not check RTS/DTR, but instead it checks whether the device is in the usb CONFIGURED state and whether the baudrate has been set (the latter is a bit odd, but maybe it is because of this problem). Myself I tried with no checks at all ( if ( 1 /\_\_usbLineInfo.lineState \> 0\_/) ). It works for ArduinoISP, but this may have side effects (hanging other sketches if serial port is not opened?).
> 
> A work around has been proposed to use ArduinoISP with the arduino protocol instead of the stk500v1 protocol. This works because the the arduino protocol's autoreset code briefly drops RTS/DTR and sets it back high. After this, the leonardo can send out data. (but this is making use of a side effect)
> 
> Not 100% sure what the best solution is. But I think that (unless there is a danger to lock up things), we should not prevent the leonardo from sending out data. The perception of the leonardo would benefit from this. (In the forum it is often heard "I gave up and bought an Uno and it worked out of the box". It is a pity the leonardo is great for ArduinoISP)
> 
> See also:
> http://petervanhoyweghen.wordpress.com/2012/09/16/arduinoisp-on-the-leonardo/
> http://arduino.cc/forum/index.php/topic,108270.msg1013258.html#msg1013258

The programmer type used by **AVRDUDE** when performing a "Burn Bootloader" operation is configured in the [programmer definitions](https://arduino.github.io/arduino-cli/dev/platform-specification/#programmerstxt) of the Arduino boards platform that adds support to Arduino IDE for a given set of Arduino boards/microcontrollers. Support for the **Leonardo** board is provided by the "[**Arduino AVR Boards**](https://github.com/arduino/ArduinoCore-avr)" platform.

## History

The " **Arduino as ISP**" programmer definition in the **Arduino AVR Boards** platform configured **AVRDUDE** to use the `stk500v1` programmer type in versions 1.6.20 and earlier.

In version 1.6.21, the " **Arduino as ISP**" programmer definition was changed to instead use the `arduino` programmer type:

> <https://github.com/arduino/Arduino/pull/3687>
>
> With the new avrdude there is a special arduino option that does not trigger DTR… and won't reset the Arduino.

> <https://github.com/arduino/ArduinoCore-avr/commit/b084848f2eaf9ccb3ac9a64ac5492d91df4706bf>

That change allowed Windows users to utilize of native USB boards like the **Leonardo** , **Micro** , **Pro Micro** , etc. as an "Arduino as ISP" programmer. However, we started receiving more reports of failures from people using boards with the auto-reset circuit as "Arduino as ISP" programmers:

> <https://github.com/arduino/Arduino/issues/8032>
>
> Uploading a barebone ATMEga328P with a NANO (my case) is impossible because in t…he file \`programmers.txt\` the following lines seems to be wrong:
> 
> \`\`\`text
> arduinoasisp.protocol=arduino
> \`\`\`
> 
> and:
> 
> \`\`\`text
> arduinoasisp.program.protocol=arduino
> \`\`\`
> 
> They should be:
> \`\`\`text
> arduinoasisp.protocol=stk500v1
> \`\`\`
> 
> and
> 
> \`\`\`text
> arduinoasisp.program.protocol=stk500v1
> \`\`\`
> 
> When uploading, the symptom is:
> 
> \`\`\`text
> Using Port : COM4
> Using Programmer : arduino
> Overriding Baud Rate : 19200
> avrdude: stk500\_getsync() attempt 1 of 10: not in sync: resp=0x15
> avrdude: stk500\_getsync() attempt 2 of 10: not in sync: resp=0x15
> \`\`\`
> 
> and further:
> 
> \`\`\`text
> avrdude: stk500\_getparm(): (a) protocol error, expect=0x14, resp=0x14
> \`\`\`

For this reason, starting from version 1.8.1 of the **Arduino AVR Boards** platform, the " **Arduino as ISP**" programmer definition was changed back to use the `stk500v1` programmer type. In order to continue to support the use by Windows users of native USB boards as a programmer, a new "**Arduino as ISP (ATmega32U4)**" programmer definition was added (ATmega32U4 is the microcontroller on the **Leonardo** , **Micro** , and **Pro Micro** boards):

> <https://github.com/arduino/ArduinoCore-avr/pull/56>
>
> Use of the \`stk500v1\` protocol for Arduino as ISP does not work with native USB …boards on Windows. The \`arduino\` protocol does (see https://github.com/arduino/Arduino/issues/1182#issue-9477400).
> 
> However, the \`arduino\` protocol makes it more likely that boards with an external USB interface chip will require the auto-reset circuitry to be disabled to allow them to be used as Arduino as ISP. That adds extra complexity to a process already difficult for the average Arduino user.
> 
> For this reason, this pull request does the following:
> \- Revert the \[previous commit changing the Arduino as ISP programmer to use the \`arduino\` protocol\](https://github.com/arduino/ArduinoCore-avr/commit/b084848f2eaf9ccb3ac9a64ac5492d91df4706bf). This restores the Arduino as ISP programmer to maximum compatibility with boards using an external USB interface.
> \- Add a new programmer using the \`arduino\` protocol specifically for using native USB boards as Arduino as ISP.
> 
> I'm not sure what the most appropriate name for the new programmer is. I went with "Arduino as ISP (ATmega32U4)" and the ID \`arduinoasispatmega32u4\` but I'm happy to modify this PR if something else is preferred.
> 
> Approved at https://github.com/arduino/Arduino/issues/8032#issuecomment-448520230
> 
> \- Fixes https://github.com/arduino/Arduino/issues/1182 (though note some more advanced fixes are also discussed in that thread)
> \- Fixes https://github.com/arduino/Arduino/issues/8032

## Analysis

All that said, we circle back to your question:

> [@quisl](#):
>
> Can someone explain why in the past it was just Arduino as ISP

I'm not sure exactly what you mean by this. I hope the information I provided above answers your question.

If you are asking why there was originally only the one " **Arduino as ISP**" programmer definition, I think I have covered that well.

If you are instead saying that at some time in the past you were able to perform this same operation using the " **Arduino as ISP**" programmer definition, then there are several possible explanations:

- You were using a different board as an "Arduino as ISP" programmer, and that board did not use native USB communication.
- You were using a native USB board as programmer, but on a computer with an operating system other than Windows.
- You were using a native USB board as programmer, with an **Arduino AVR Boards** platform version in the range from 1.6.21-1.6.23.

---

<div class="post-metadata">

**Author:** ![quisl](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/quisl/32/1260223_2.png) [@quisl](https://forum.arduino.cc/u/quisl)\
**Post date:** [February 15, 2026, 8:48pm UTC](https://forum.arduino.cc/t/burning-bootloader-using-leonardo/1430850/12 "2026-02-15T20:48:56Z")

</div>

wow really great explanation, thanks a lot for the effort. Never would have thought to experience this overwhelming amount of support  
Really appreciate it everyone​🫶

---

<div class="post-metadata">

**Author:** ![spacesailor123643](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/spacesailor123643/32/1276629_2.png) [@spacesailor123643](https://forum.arduino.cc/u/spacesailor123643)\
**Post date:** [February 15, 2026, 8:53pm UTC](https://forum.arduino.cc/t/burning-bootloader-using-leonardo/1430850/13 "2026-02-15T20:53:43Z")

</div>

so that means i cant program an ATtiny85 with arduino anymore?

 ![images (3)](https://europe1.discourse-cdn.com/arduino/original/4X/7/5/5/755b36ed2cdb677f46ae60c618ab61155e82d99d.jpeg)

---

<div class="post-metadata">

**Author:** ![ptillisch](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@ptillisch](https://forum.arduino.cc/u/ptillisch)\
**Post date:** [February 15, 2026, 9:39pm UTC](https://forum.arduino.cc/t/burning-bootloader-using-leonardo/1430850/14 "2026-02-15T21:39:56Z")

</div>

> [@spacesailor123643](#):
>
> so that means i cant program an ATtiny85 with arduino anymore?

No. You are welcome to program an ATtiny85 with Arduino. I don't know how you drew that conclusion from what was written here.

If you want to program an ATtiny85, give it a try. If you encounter a problem, just let use know and we'll provide assistance.

---

<div class="post-metadata">

**Author:** ![spacesailor123643](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/spacesailor123643/32/1276629_2.png) [@spacesailor123643](https://forum.arduino.cc/u/spacesailor123643)\
**Post date:** [February 15, 2026, 10:05pm UTC](https://forum.arduino.cc/t/burning-bootloader-using-leonardo/1430850/15 "2026-02-15T22:05:30Z")

</div>

Well I read the "Arduino as ISP" part and I got sad cuz was removed

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [August 14, 2026, 10:05pm UTC](https://forum.arduino.cc/t/burning-bootloader-using-leonardo/1430850/16 "2026-08-14T22:05:33Z")

</div>

Closed on August 14, 2026, 10:05pm UTC

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