Upload failedto Nano

I am trying to upload a sketch to Arduino Nano and this is what i get.

Sketch uses 25428 bytes (82%) of program storage space. Maximum is 30720 bytes.
Global variables use 1358 bytes (66%) of dynamic memory, leaving 690 bytes for local variables. Maximum is 2048 bytes.
"C:\Users\Gebruiker\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\Gebruiker\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-PCOM6" -b115200 -D "-Uflash:w:C:\Users\Gebruiker\AppData\Local\arduino\sketches\C6A457DCC7B9856176B6E4872463CAE8/SI5351_VFO_002.ino.hex:i"

avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

     System wide configuration file is "C:\Users\Gebruiker\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

     Using Port                    : COM6
     Using Programmer              : arduino
     Overriding Baud Rate          : 115200

avrdude: ser_open(): can't open device "\.\COM6": Toegang geweigerd.

avrdude done. Thank you.

Failed uploading: uploading error: exit status 1

Code compile is ok. Any Idea??

What does it mean?

Check to see that:

  1. The serial monitor doesn't have the port open.
  2. The serial plotter doesn't have the port open.
  3. No other terminal program has the port open.

Access denied

Problem solved. I used anther COM port

1 Like