Error in uploading a code

I was trying to make a test code, and after the compilation, i got that error message:

Sketch uses 924 bytes (2%) 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.
"C:\Users\rafaf\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\rafaf\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-PCOM3" -b115200 -D "-Uflash:w:C:\Users\rafaf\AppData\Local\Temp\arduino\sketches\FFC6647101E2E89C342D7CF2A201600E/sketch_feb7a.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\rafaf\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

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

avrdude: ser_open(): can't open device "\.\COM3": Acesso negado.

avrdude done. Thank you.

Failed uploading: uploading error: exit status 1

Can someone help me?

Try uploading proven code like maybe "blink" from the ide examples.
Looks like you are not on the correct com port ...or you pc is not recognising whatever you are using to upload " whatever sketch" ....
Circuit diagram too thanks...... NOT fritzing

Hi @tefurto777 ,

welcome to the arduino-forum.
I'm pretty sure that you agree and will follow the way how to solve your problem mimimum 200 minutes faster.
This requires to invest 20 minutes of your precious time to read how to speedup solving your problems.

Directly after registering you got presented informations how to speed up solving your problem.
You should really read it.

This is the important part.
You specified COM3 as the comport but the uploader was unable to open this com-port
possible reasons:

  • wrong comport number = com3 does not exist at all
    => choose the correct COM-port

  • you are using a USB-cable that is only for charging and not for datatransfer
    => try a different USB-cable

  • you haven't installed the correct driver for the USB-to-TTL-converter
    => tell us what exact type of microcontroller you are using including pictures of both sides of your microcontroller-board

  • you have chosen the wrong device for uploading
    => post screenshots how you have adjusted the arduino-IDE
    You will have to provide much more information to analyse the problem

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.