Error while downloading the program to Arduino Leonardo

I encountered such an error and I don't know how to fix it while downloading to Arduino Leonardo

avrdude: Version 6.3-"C:\Users\kbabc.LAPTOP-PHE68K9N\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\kbabc.LAPTOP-PHE68K9N\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega32u4 -cavr109 "-PCOM6" -b57600 -D "-Uflash:w:C:\Users\kbabc.LAPTOP-PHE68K9N\AppData\Local\Temp\arduino\sketches\7D339606EAB62DBD1007A0423BF34537/Szkic.ino.hex:i"
20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

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

         Using Port                    : COM6
         Using Programmer              : avr109
         Overriding Baud Rate          : 57600
         AVR Part                      : ATmega32U4
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PA0
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  9000  9000 0x00 0x00
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : butterfly
         Description     : Atmel AppNote AVR109 Boot Loader

Connecting to programmer: .
Found programmer: Id = "CATERIN"; type = S
    Software Version = 1.0; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.

Programmer supports the following devices:
    Device code: 0x44

avrdude: devcode selected: 0x44
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9587 (probably m32u4)
avrdude: reading input file "C:\Users\kbabc.LAPTOP-PHE68K9N\AppData\Local\Temp\arduino\sketches\7D339606EAB62DBD1007A0423BF34537/Szkic.ino.hex"
avrdude: writing flash (5390 bytes):

Writing | ################################################## | 100% 0.41s

avrdude: 5390 bytes of flash written

avrdude done.  Thank you.

Hi @milka5. The output you shared is the output we would expect from a successful upload.

Did Arduino IDE indicate the upload failed? If the upload fails, you will see an "Upload error: ..." notification at the bottom right corner of the IDE window:

If the upload succeeds, you will see a "Done uploading." notification there:

Note that the success notification is hidden after a few seconds, so you might miss it if you aren't watching, but you can click the :bell: icon at the right side of the status bar to show the hidden notifications again.

If you didn't get an "Upload error: ..." notification then the upload was successful and you don't need to worry about this message.

Notes on the Coloration of Upload Output in Arduino IDE

You might notice some messages printed to the "Output" panel at the bottom of the Arduino IDE window in red text while uploading. The color might give the impression that these messages are intended to communicate some sort of a problem has occurred, but it is not so in this case.

The developers of the 3rd party tool Arduino IDE uses for uploading made an unusual decision to print even the tool's purely informational output to the "standard error" stream (AKA "stderr") instead of the more common practice of printing it on the "standard output" (AKA "stdout") stream. Because it is usually associated with errors or warnings, Arduino IDE colors all output received from the stderr stream red (at least when the default IDE theme is selected).

So don't be mislead by the color of the text during the upload (though you should pay attention to red text printed while compiling because the color is significant in that case). As long as you don't see an "Upload error: ..." notification, all is well with the upload.

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