Unable to upload the code to the Arduino Uno.

hello guys,

i am new to arduinos and it is my first project.
i wrote the program and everything is fine and code compilation is done perfectly.

when i press upload. this error message appears:

Arduino: 1.6.2 (Windows 8.1), Board: "Arduino Uno"

Sketch uses 1,030 bytes (3%) of program storage space. Maximum is 32,256 bytes.

Global variables use 9 bytes (0%) of dynamic memory, leaving 2,039 bytes for local variables. Maximum is 2,048 bytes.

avrdude: ser_open(): can't open device "\.\COM1": The system cannot find the file specified.

Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.


i tried it (same program) on a different computer with windows 7 and same problem. and i don't think the problem is from the drivers, i don't know.

Besides, on windows 7, the port option in tools can be clicked (enable), while on windows 8 it is disabled (i can't click it).

Please if anyone can help me. Thank you.


Sounds like COM1: is not the correct name for your Arduino's port. What is listed under Tools->Port?