Can't upload sketch to Arduino UNO (SOLVED)

I get this error message when I try to upload my sketch :

Arduino: 1.8.13 (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Sketch uses 3958 bytes (1%) of program storage space. Maximum is 253952 bytes.

Global variables use 202 bytes (2%) of dynamic memory, leaving 7990 bytes for local variables. Maximum is 8192 bytes.

avrdude: stk500v2_ReceiveMessage(): timeout

avrdude: stk500v2_ReceiveMessage(): timeout

avrdude: stk500v2_ReceiveMessage(): timeout

avrdude: stk500v2_ReceiveMessage(): timeout

avrdude: stk500v2_ReceiveMessage(): timeout

avrdude: stk500v2_ReceiveMessage(): timeout

avrdude: stk500v2_getsync(): timeout communicating with programmer

An error occurred while uploading the sketch

You subject says 'Uno', but the error message says 'Mega'. Which is it?

Wow the solution was a really easy fix, the board wasn't set as an Arduino UNO under Tools - Board

1 Like