1. Got a question or need help troubleshooting? Post to the troubleshooting forum or Search the forums!

Unresolved Tried uploading an update and got an access denied. error code is below

Discussion in 'Troubleshooting' started by mclemens7, Apr 20, 2019.

  1. mclemens7

    mclemens7 Member

    Joined:
    Jan 29, 2017
    Messages:
    165
    Likes Received:
    6
    Arduino: 1.6.9 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

    Sketch uses 117,850 bytes (46%) of program storage space. Maximum is 253,952 bytes.
    Global variables use 4,215 bytes (51%) of dynamic memory, leaving 3,977 bytes for local variables. Maximum is 8,192 bytes.
    C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega2560 -cwiring -PCOM3 -b115200 -D -Uflash:w:C:\Users\maxwe\AppData\Local\Temp\build5293bcfb34d481e68504cd52e8acbf99.tmp/ROBO3DR1PLUSV2.ino.hex:i

    avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
    Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
    Copyright (c) 2007-2009 Joerg Wunsch

    System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

    Using Port : COM3
    Using Programmer : wiring
    Overriding Baud Rate : 115200
    avrdude: ser_open(): can't open device "\\.\COM3": Access is denied.


    avrdude: ser_drain(): read error: The handle is invalid.


    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"
    option enabled in File -> Preferences.
     
  2. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    Is COM 3 correct? Can you have the Arduino IDE get the board status on that com port?

    TOOLS -> Get Board Info

    Because if the com port is correct then I would suspect the Arduino has a bad USB port.

    HOWEVER... look here (it is an Arduino error after all):

    http://forum.arduino.cc/index.php?topic=51489.0
     
    #2 mark tomlinson, Apr 20, 2019
    Last edited: Apr 20, 2019
  3. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    I have had this issue a few times myself and it is either a BAD COM port used (i.e. you needed COM4 not COM3) or a bad driver (reinstall the Arduino drivers) or a bad Ardiuno. That last one is not common :) Those boards are pretty sturdy.
     

Share This Page