Arduino upload error avarude timeout

Hello,
Please help!
I tried to submit my code on an arduino mega2560 but this message appears:
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 "/private/var/folders/3n/z956r71d59176tk1w6h2zzvw0000gs/T/AppTranslocation/43673331-FDA4-4190-976C-15FA7CDB9020/d/Arduino.app/Contents/Java/hardware/cetols/avrude .conf "
     User configuration file is "/Users/leo/.avrduderc"
     User configuration file does not exist or is not a regular file, skipping

     Using Port: /dev/cu.QCY-T1C-SerialPort-6
     Using Programmer: wiring
     Overriding Baud Rate: 115200

avrdude: ser_open (): can't open device "/dev/cu.QCY-T1C-SerialPort-6": Resource busy
ioctl ("TIOCMGET"): Inappropriate ioctl for device
ioctl ("TIOCMGET"): Inappropriate ioctl for device
avrdude: ser_send (): write error: Bad file descriptor
avrdude: stk500_send (): failed to send command to serial port
avrdude: stk500v2_ReceiveMessage (): timeout
avrdude: ser_send (): write error: Bad file descriptor
avrdude: stk500_send (): failed to send command to serial port
avrdude: stk500v2_ReceiveMessage (): timeout
avrdude: ser_send (): write error: Bad file descriptor
avrdude: stk500_send (): failed to send command to serial port
avrdude: stk500v2_ReceiveMessage (): timeout
avrdude: ser_send (): write error: Bad file descriptor
avrdude: stk500_send (): failed to send command to serial port
avrdude: stk500v2_ReceiveMessage (): timeout
avrdude: ser_send (): write error: Bad file descriptor
avrdude: stk500_send (): failed to send command to serial port
avrdude: stk500v2_ReceiveMessage (): timeout
avrdude: ser_send (): write error: Bad file descriptor
avrdude: stk500_send (): failed to send command to serial port
avrdude: stk500v2_ReceiveMessage (): timeout
avrdude: stk500v2_getsync (): timeout communicating with programmer

avrdude done. Thank you.

all messages will be appreciated
Thank you
Leonardo1inventor

Make sure you have selected the port of your Arduino board from the Arduino IDE's Tools > Port menu.

Sometimes the port will be labeled with the board name in the menu. Other times it will not. If you don’t know which port is your Arduino board, you can find it like this:

  1. Unplug your Arduino board from the computer.
  2. Select Tools > Port from the Arduino IDE's menus.
  3. Note the ports, if any, listed in the menu.
  4. Close the Tools menu. The ports list is only updated when the Tools menu is re-opened, so this step is essential.
  5. Plug your Arduino board into the computer.
  6. Select Tools > Port from the Arduino IDE's menus. - The new port listed in the menu is your Arduino board.

(I forgot to mention this in the description but it's my first forum.)
Ok. I have selected the usb port, but I cannot upload to the arduino card.
Always the same message:
Sketch uses 3200 bytes (1%) of program storage space. Maximum is 253952 bytes.
Global variables use 163 bytes (1%) of dynamic memory, leaving 8029 bytes for local variables. Maximum is 8192 bytes.


Complete compilations.
avrdude: stk500v2_ReceiveMessage (): timeout
avrdude: stk500v2_ReceiveMessage (): timeout
avrdude: stk500v2_ReceiveMessage (): timeout
avrdude: stk500v2_ReceiveMessage (): timeout
avrdude: stk500v2_ReceiveMessage (): timeout
avrdude: stk500v2_ReceiveMessage (): timeout
avrdude: stk500v2_getsync (): timeout communicating with programmer
Upload error: Error: 2 UNKNOWN: uploading error: uploading error: exit status 1

i use the basic blink code

Thanks for your answer.
Leonardo1inventor

Did you follow the instructions in my last reply to verify that you have the correct port selected for your Arduino Mega 2560 board?

Yes, thanks for the indication. But the problem persists ... I am beginning to believe that my arduino mega has burned out.

The strange thing is that the PC sees the mega arduino connected with the classic usb cable but I can't transfer data to the board. The tx and rx ligts was off. :confounded:

I have a mac with the last version of the arduino ide.
Could someone help :speaking_head:Apart from flashing little when when this message appears (screen shot).
Screen Shot 2021-07-14 at 15.03.40

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