avrdude: programmer is not responding / not in sync

  • Arduino Uno
  • Arduino Nano
  • Arduino Mega

You may see

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
attempt 10 of 10: not in sync
programmer is not responding
Failed uploading: uploading error: exit status 1

Why it happens

  • The wrong board or port is chosen in the Tools menu.
  • Something is connected to pins 0 (RX) and 1 (TX). The USB cable talks to the chip through those same two pins.
  • A charge-only or loose USB cable.
  • An older Nano needs the other bootloader setting.

How to fix it

  1. Choose your board in Tools > Board and its port in Tools > Port.
  2. Pull out every wire on pins 0 and 1, including a Bluetooth module, then upload again.
  3. Close the Serial Monitor and any other program using the board.
  4. Try another USB cable (one that can copy files from a phone) straight into the computer, not a hub.
  5. Press the reset button on the board just before uploading.
  6. For a Nano, try Tools > Processor > ATmega328P (Old Bootloader).

It worked if: Upload File > Examples > 01.Basics > Blink. The IDE says "Done uploading" and the small L light blinks once a second.

From the official documentation. Message wording from Arduino Support and the avrdude 8 program itself; not reproduced, because it needs a real faulty board. Sources: Arduino Support: 'Error: avrdude' when uploading, avrdude source code.

Didn't help? Search another error or ask us.