Source: https://mokxi.com/errors/avrdude-stk500-getsync-not-in-sync
Updated: 2026-11-16

Home / Errors
Arduino upload error

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

Your sketch compiled. This message comes after that, when the computer tries to send the program to the board and the board does not answer.

Run the sketch in Mokxi first See the causes

- Upload error
- 4 common causes

The message

## What the Arduino IDE prints

Output window

So the code is almost never the problem. The fault is the connection: the wrong port or board, the wrong bootloader speed, something holding the serial pins, or a board that is not resetting.

Causes

## The 4 usual causes in order

### 1The wrong port or the wrong board is selected

avrdude talks to whatever is on the chosen port, at the speed the chosen board expects. A wrong choice gets silence.

- Open Tools, Port. Unplug the board, look at the list, plug it back in, and pick the entry that appeared.
- Open Tools, Board and pick the board you actually have. An Uno clone is still an Arduino Uno.
- Close the Serial Monitor and anything else that has the port open, then upload again.

### 2A Nano clone with the old bootloader

Many Nano boards ship with the older bootloader, which listens at 57600 baud. The IDE talks at 115200 unless you say otherwise, so nothing answers.

- In the Arduino IDE, both 1.8 and 2, set Tools, Processor to ATmega328P (Old Bootloader).
- Upload again. If it goes through, that was the cause, and the setting stays.

### 3Something is connected to pins 0 and 1

Pins 0 and 1 are the board serial port, the same two wires the upload uses. A Bluetooth module, a GPS or another board on them drowns out the upload.

- Unplug the wires from pins 0 and 1 (RX and TX).
- Upload, then plug them back in.

### 4The board is not resetting, or has no bootloader

The upload starts with a reset. A cable that only carries power, a missing USB driver for a CH340 or CP2102 chip, or a chip with no bootloader on it all stop that.

- Try another USB cable, one that you know carries data.
- Press the reset button on the board just as the IDE changes from Compiling to Uploading.
- On Windows, install the driver for the USB chip on the board. The chip is the small square part near the USB socket.
- A bare ATmega328P chip has no bootloader until one is burned onto it with a programmer.

On a real board

## What to do at the bench

Nothing here is fixed by changing the code, so do not edit the sketch to get an upload through.

Take one thing at a time and upload after each change. That way you know which one fixed it.

Mokxi's Upload to board uses the same bootloader protocol over USB, from Chrome or Edge. It meets the same causes, and it tells you when it finds no 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

### What does avrdude stk500_getsync() not in sync mean?

avrdude, the upload program, sent the board a request and got no valid answer. The sketch itself built fine.

### What does resp=0x00 mean?

The byte that came back was empty, so nothing answered. That points at the port, the cable, the reset or the bootloader speed. A different value on each try points at the wrong baud rate.

### Does this error mean my board is broken?

Rarely. Work through the causes first. Only a board that fails on a second cable and on another computer is likely faulty.

### Can I check my sketch without a board?

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

Next

## More errors and the longer guide

- error: 'ledPin' was not declared in this scope
- fatal error: Servo.h: No such file or directory

The longer guide to this error All Arduino errors
