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

Unanswered Arduino is not uploading even though its connected any thoughts please help

Discussion in 'Troubleshooting' started by mclemens7, May 10, 2017.

  1. mclemens7

    mclemens7 Member

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

    Sketch uses 115430 bytes (45%) of program storage space. Maximum is 253952 bytes.
    Global variables use 4248 bytes (51%) of dynamic memory, leaving 3944 bytes for local variables. Maximum is 8192 bytes.
    avrdude: ser_open(): can't open device "\\.\COM3": Access is denied.


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


    avrdude: ser_send(): write error: sorry no info avail
    avrdude: stk500_send(): failed to send command to serial port
    avrdude: ser_recv(): read error: The handle is invalid.


    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: ser_send(): write error: sorry no info avail
    avrdude: stk500_send(): failed to send command to serial port
    avrdude: ser_recv(): read error: The handle is invalid.


    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: ser_send(): write error: sorry no info avail
    avrdude: stk500_send(): failed to send command to serial port
    avrdude: ser_recv(): read error: The handle is invalid.


    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: ser_send(): write error: sorry no info avail
    avrdude: stk500_send(): failed to send command to serial port
    avrdude: ser_recv(): read error: The handle is invalid.


    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: ser_send(): write error: sorry no info avail
    avrdude: stk500_send(): failed to send command to serial port
    avrdude: ser_recv(): read error: The handle is invalid.


    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: ser_send(): write error: sorry no info avail
    avrdude: stk500_send(): failed to send command to serial port
    avrdude: ser_recv(): read error: The handle is invalid.


    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_getsync(): timeout communicating with programmer
    the selected serial port avrdude: stk500v2_getsync(): timeout communicating with programmer
    does not exist or your board is not connected

    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
    Try using the old version of the Arduino compiler (1.6.9 or earlier).
    However that usually indicates a bad arduino.

    Assuming that the Ardunio is actually ON COM3... You need to verify that.
     
  3. mclemens7

    mclemens7 Member

    Joined:
    Jan 29, 2017
    Messages:
    165
    Likes Received:
    6
    It is on com 3, so you think its a bad arduino?
     
  4. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    That error is usually from a bad arduino or a bad cable connecting to it from the PC.

    The avrdude errors are all generated by the Arduino core.
    If you google

    "avrdude: stk500v2_ReceiveMessage(): timeout"

    (for example) you will see things like this:
    http://forum.arduino.cc/index.php?topic=83079.0
     
  5. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    That is a situation where I would (because I tinker) try to reload the bootloader* on the arduino after swapping in a new one.
    You might be able to recover it that way, but likely bad hardware on the board. I am not going to bother to repair a Mega given the cost of clone boards, but occasionally this sort of thing can be cured by a bootloader reload. In your case I would say replace it and if it works when you reload the firmware throw away the old one.



    *not a simple process, requires a bit more hardware.
     
  6. mclemens7

    mclemens7 Member

    Joined:
    Jan 29, 2017
    Messages:
    165
    Likes Received:
    6
    ok thank you ill get back to you when its changed
     
  7. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    Make sure you are using a new decent USB cable.
    That can cause all sorts of grief.
     
  8. mclemens7

    mclemens7 Member

    Joined:
    Jan 29, 2017
    Messages:
    165
    Likes Received:
    6
    ok
     
  9. Geof

    Geof Volunteer Moderator
    Staff Member

    Joined:
    Nov 9, 2015
    Messages:
    6,757
    Likes Received:
    2,339
    And no programs open other than arduino
     
    mark tomlinson likes this.
  10. mclemens7

    mclemens7 Member

    Joined:
    Jan 29, 2017
    Messages:
    165
    Likes Received:
    6
    actually nvm, i dug deeper into my device manager and the program was weirdly on com3 but my arduino was on com 4, i dont know why it didnt switch. Thanks for your help everyone
     

Share This Page