Source: https://mokxi.com/errors/avrdude-butterfly-recv-programmer-is-not-responding
Updated: 2026-11-17

Home / Errors
Arduino upload error

# avrdude: butterfly_recv(): programmer is not responding

The Leonardo, the Micro and the Pro Micro use their own USB chip, and the upload starts by a reset into the bootloader. This message means the tool missed it.

Run the sketch in Mokxi first See the causes

- Upload error
- 3 common causes

The message

## What the Arduino IDE prints

Output window

The bootloader waits only a few seconds, and its serial port has a different name from the sketch port, so timing and port choice matter.

Causes

## The 3 usual causes in order

### 1The bootloader window was missed

The board listens for a new sketch for about eight seconds after a reset.

- Start the upload, and as soon as Uploading shows, press the reset button once.
- Or double-tap reset first, wait for the LED to pulse, then upload.

### 2A different port was selected for the bootloader

The board appears as one port when running and as another in the bootloader. The IDE normally follows the change, and can lose it.

- Double-tap reset, open Tools, Port, and pick the entry that is new in the list.
- Upload at once, before the window closes.

### 3The running sketch has taken the USB port

A sketch that crashes at start, or that acts as a keyboard in a loop, makes the board hard to reach.

- Double-tap reset to force the bootloader, then upload a blank sketch to take control back.
- Add a few seconds of delay at the start of setup() in sketches that act as a USB keyboard or mouse.

On a real board

## What to do at the bench

Mokxi's Upload to board writes to a Leonardo, Micro or Pro Micro from Chrome or Edge. The board changes port when it enters the bootloader, so the same reset trick applies.

Run the sketch in Mokxi before you blame the board. If it builds and runs there, the code is fine and the problem is the connection to the real board.

### Test the sketch in Mokxi first

Run the sketch here before you blame the board. If it builds and runs in Mokxi, the code is fine and the fault is the connection to the real board. Mokxi never uploads in a simulation, so it cannot raise this error itself.

A sketch to try first

FAQ

## Questions and answers

### Why is the Leonardo different from the Uno?

Its main chip speaks USB itself, so there is no separate USB chip, and it must be reset into a bootloader to take a sketch.

### What does double-tap reset do?

It starts the bootloader and holds it for about eight seconds, so the upload can find it.

### Does a USB keyboard sketch cause this?

It can. A loop that types all the time leaves you no time to start an upload. Add a delay or a switch that turns typing on.

Next

## More errors and the longer guide

- avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
- Port not found

The longer guide to the Uno version of this error All Arduino errors
