Hi there,
I hope you are doing well.
I tried to upload the program from this [Arduino Forum]
(Generation of three phase square wave using arduino(SIMPLE CODING))
I also made sure that I have the drivers for UNO installed from this location:
C:\Program Files (x86)\Arduino\drivers
And also I have the correct port selected from "Tools>Port:"
I tried all three USB Ports and updated the drivers separately for each.
But I encountered the following error messages:
1st Error:
Port: COM7
Error Message: Arduino: 1.8.15 (Windows 10), Board: "Arduino Uno"
Sketch uses 1070 bytes (3%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
avrdude: ser_open(): can't set com-state for "\.\COM7"
An error occurred while uploading the sketch
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
2nd Error:
Port: COM8
Error Message: Arduino: 1.8.15 (Windows 10), Board: "Arduino Uno"
Sketch uses 1070 bytes (3%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
avrdude: ser_open(): can't set com-state for "\.\COM8"
An error occurred while uploading the sketch
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
3rd Error:
Port: COM6
Error Message: Arduino: 1.8.15 (Windows 10), Board: "Arduino Uno"
Sketch uses 1070 bytes (3%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
avrdude: ser_open(): can't set com-state for "\.\COM6"
An error occurred while uploading the sketch
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
I tried uploading the program by opening the .ino file directly, opening the .ino file from the new Arduino window and copying the code.
I get this error every single time.
BUT THE SAME CODE UPLOADED SUCCESSFULLY TO ARDUINO MEGA BOARD.
Would you please help me to figure this out?
Regards,
Haseeb