Problem Uploading to board; ERROR message ACCESS DENIED to COM1 PORT.

.I checked Board, Processor, and Port, and all are correctly listed. I’ve only one USB port.Here is the copied error message after attempted upload followed by the Code:

Arduino: 1.6.3 (Windows 8.1), Board: “Arduino Nano, ATmega328”

C:\Program Files\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10603 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\avr\variants\eightanaloginputs C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp\sketch_may03a.cpp -o C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp\sketch_may03a.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp\hooks.c.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp\WInterrupts.c.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp\wiring.c.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp\wiring_analog.c.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp\wiring_digital.c.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp\wiring_pulse.c.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp\wiring_shift.c.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp\abi.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp\CDC.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp\HardwareSerial.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp\HardwareSerial0.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp\HardwareSerial1.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp\HardwareSerial2.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp\HardwareSerial3.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp\HID.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp\IPAddress.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp\main.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp\new.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp\Print.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp\Stream.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp\Tone.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp\USBCore.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp\WMath.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp\WString.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp\core.a

C:\Program Files\Arduino\hardware\tools\avr/bin/avr-gcc -w -Os -Wl,–gc-sections -mmcu=atmega328p -o C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp/sketch_may03a.cpp.elf C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp\sketch_may03a.cpp.o C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp/core.a -LC:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp -lm

C:\Program Files\Arduino\hardware\tools\avr/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp/sketch_may03a.cpp.elf C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp/sketch_may03a.cpp.eep

C:\Program Files\Arduino\hardware\tools\avr/bin/avr-objcopy -O ihex -R .eeprom C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp/sketch_may03a.cpp.elf C:\Users\CAPURN~1\AppData\Local\Temp\build3587300312327536412.tmp/sketch_may03a.cpp.hex

Sketch uses 1,326 bytes (4%) of program storage space. Maximum is 30,720 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”: Access is denied.

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

avrdude: stk500_recv(): programmer is not responding

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

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x54

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x54

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x54

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x54

avrdude: stk500_recv(): programmer is not responding

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

avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x54

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x54

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x54

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x54

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x54

Here is the program I wrote using another with different numbered pins as a guide. It verified after a few minor corrections:

void setup() {
// initialize the digital pin 7,6,5,4,3,2,1TX,0RX
pinMode(7, OUTPUT);
pinMode(6, OUTPUT);
pinMode(5, OUTPUT);
pinMode(4, OUTPUT);
pinMode(3, OUTPUT);
pinMode(2, OUTPUT);
pinMode(1, OUTPUT);
pinMode(0, OUTPUT);
}

void loop() {
digitalWrite(7, HIGH);
delay(80);
digitalWrite(7, LOW);
digitalWrite(6, HIGH);
delay(80);
digitalWrite(6, LOW);
digitalWrite(5, HIGH);
delay(80);
digitalWrite(5, LOW);
digitalWrite(4, HIGH);
delay(80);
digitalWrite(4, LOW);
digitalWrite(3, HIGH);
delay(80);
digitalWrite(3, LOW);
// reverse
digitalWrite(3, HIGH);
delay(80);
digitalWrite(3, LOW);
digitalWrite(4, HIGH);
delay(80);
digitalWrite(4, LOW);
digitalWrite(5, HIGH);
delay(80);
digitalWrite(5, LOW);
digitalWrite(6, HIGH);
delay(80);
digitalWrite(6, LOW);
digitalWrite(7, HIGH);
delay(80);
digitalWrite(7, LOW);

}

First, check your task manager if something is already using the COM port (do you have multiple IDE windows open?).

If not, go to Device Manager and find your Serial/COM port -> properties -> port settings -> advanced and change the COM port number (eg. to COM2). It might pop up saying that something is using the com port, proceed anyways. Change the com port in your IDE accordingly.

This usually frees up the com port. However a simple windows restart often helps as well.

Well, I completed that task and set it to COM3. At the bottom of the screen it says "Arduino Nano ATmega328 board COM3" and I checked my tools, Port, and its checked "COM3". But now when I upload I get this error message:

Arduino: 1.6.3 (Windows 8.1), Board: "Arduino Nano, ATmega328"

C:\Program Files\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10603 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\avr\variants\eightanaloginputs C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp\Knight_Rider_Code.cpp -o C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp\Knight_Rider_Code.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp\hooks.c.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp\WInterrupts.c.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp\wiring.c.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp\wiring_analog.c.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp\wiring_digital.c.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp\wiring_pulse.c.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp\wiring_shift.c.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp\abi.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp\CDC.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp\HardwareSerial.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp\HardwareSerial0.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp\HardwareSerial1.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp\HardwareSerial2.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp\HardwareSerial3.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp\HID.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp\IPAddress.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp\main.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp\new.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp\Print.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp\Stream.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp\Tone.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp\USBCore.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp\WMath.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp\WString.cpp.o

Using previously compiled file: C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp\core.a

C:\Program Files\Arduino\hardware\tools\avr/bin/avr-gcc -w -Os -Wl,--gc-sections -mmcu=atmega328p -o C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp/Knight_Rider_Code.cpp.elf C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp\Knight_Rider_Code.cpp.o C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp/core.a -LC:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp -lm

C:\Program Files\Arduino\hardware\tools\avr/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp/Knight_Rider_Code.cpp.elf C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp/Knight_Rider_Code.cpp.eep

C:\Program Files\Arduino\hardware\tools\avr/bin/avr-objcopy -O ihex -R .eeprom C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp/Knight_Rider_Code.cpp.elf C:\Users\CAPURN~1\AppData\Local\Temp\build1943739910042177585.tmp/Knight_Rider_Code.cpp.hex

Sketch uses 1,326 bytes (4%) of program storage space. Maximum is 30,720 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 "\.\COM3": The system cannot find the file specified.

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

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

Now the error is different! Do you see any "lights" in the Arduino board?

Yes, A constant Blue. And a white Led nest to it flashing approx. 3sec off, 3 sec on...

I just fixed it! I didn't know it would make a difference that I had a one to 4 port USB adapters since my Arduino USB was the port I had switched on. Moved my laptop closer, discarded the 1 to 4 port USB adapter and hit upload and it ran immediately. This is my Third day using Arduino so give me a break. Thank you for your time! Texas Roads

Good Job!

Might have been some incompatibility problems, as I have never had that issue when uding usb hubs (as far as I remember). But great that you got the problem solved :)