“Error uploading sketch” in Arduino IDE and other upload issues

If you keep getting the error below (or a similar one) when trying to upload your sketch, read this article.

Try the troubleshooting steps below in order. If it still fails, contact us and describe what you tried (which steps).

Show verbose output of the Arduino IDE

In File > Preferences do you have the “Show verbose output during: upload” checked?

That might show more details and you can send that output to us.

Troubleshooting steps related to connection issues

  1. Reconnect the Arduino, try another usb port
  2. Double-check the settings in the Tools menu: for regular Arduino, set Bootloader to "ATmega328P (Old Bootloader)", for BLE-Nano, set it to just "ATmega328P". Check the other settings too!
  3. Restart the Arduino IDE. Save your sketch first!
  4. Try another USB-port (again) and/or select another COM-port if available.
  5. Disconnect Arduino, reboot your computer, reconnect Arduino.
  6. Update the driver of your COM-port. Disconnect your Arduino. Go to Windows Device Manager (type in start: ‘device manager’ or ‘apparaatbeheer’). Expand ‘Ports’ (Poorten) and notice the options in there. Now plug-in the USB of your Arduino, and watch which Port is added in this list. Right-click this one and choose ‘update driver’ and then select the option to automatically let Windows search for available drivers.
  7. The same as above, but instead of ‘update driver’, choose ‘remove device’ while your Arduino is connected. Then disconnect your Arduino and reconnect it again, this will force Windows to reinstall the drivers for this COM-Port. If your board uses a CH340 driver, check this page for (re)installing that driver.

Some related errors:

Not in sync
"avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00"

May occur randomly, especially if you have multiple arduino sketches open. It means the port is busy and cannot be accessed at the moment. This is nothing too serious, though. Reconnecting the Arduino often resolves the issue.

Can't open device
"ser_open(): can't open device "\.\COM6" … "

This means the driver of this port has crashed or cannot be found. This is often caused by incorrectly disconnecting your Arduino. NEVER rewire your breadboard when the Arduino is connected to your PC. This can damage the Arduino, and more importantly, your computer!

Restarting your computer might help.

Other things to try

As a test, connect the other Arduino (our kits come with 2 of them), just the board itself, no need to mount it on a breadboard. Check that you select the proper Processor (Tools > Processor): the regular Nano needs “ATmega328P (old bootloader)”, the Nano BLE needs the regular one (ATmega328P).

If connecting the other Arduino (without being mounted on the breadboard) works, there are 2 possibilities: 1. you have a wiring problem (your wires cause the Arduino mounted on the breadboard to malfunction) 2. the Arduino mounted on the breadboard (that does not work) is defective.

In case of 1: double or triple check the wiring! In case of 2: replace the Arduino on the board with the working Arduino.

More help