^^^
I ensured that I had selected the correct board and port before pressing upload.
Here is what I got in the output section after I pressed the 'reset' button on the board as I waited for 5 minutes for the upload.
FQBN: arduino:avr:leonardo
Using board 'leonardo' from platform in folder: C:\Users\SO\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\SO\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Detecting libraries used...
C:\Users\SO\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x1532 -DUSB_PID=0x0098 -DUSB_MANUFACTURER="Unknown" -DUSB_PRODUCT="HID-compliant mouse" -IC:\Users\SO\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\SO\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\leonardo C:\Users\SO\AppData\Local\Temp\arduino\sketches\95BB438B271E15251B155934DA53DA21\sketch\BareMinimum.ino.cpp -o nul
Generating function prototypes...
C:\Users\SO\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x1532 -DUSB_PID=0x0098 -DUSB_MANUFACTURER="Unknown" -DUSB_PRODUCT="HID-compliant mouse" -IC:\Users\SO\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\SO\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\leonardo C:\Users\SO\AppData\Local\Temp\arduino\sketches\95BB438B271E15251B155934DA53DA21\sketch\BareMinimum.ino.cpp -o C:\Users\SO\AppData\Local\Temp\461496688\sketch_merged.cpp
C:\Users\SO\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives C:\Users\SO\AppData\Local\Temp\461496688\sketch_merged.cpp
Compiling sketch...
"C:\\Users\\SO\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x1532 -DUSB_PID=0x0098 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"HID-compliant mouse\"" "-IC:\\Users\\SO\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\SO\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\leonardo" "C:\\Users\\SO\\AppData\\Local\\Temp\\arduino\\sketches\\95BB438B271E15251B155934DA53DA21\\sketch\\BareMinimum.ino.cpp" -o "C:\\Users\\SO\\AppData\\Local\\Temp\\arduino\\sketches\\95BB438B271E15251B155934DA53DA21\\sketch\\BareMinimum.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\SO\AppData\Local\Temp\arduino\cores\arduino_avr_leonardo_e1f90613ec3b5f6f930376a1a0befb38\core.a
Linking everything together...
"C:\\Users\\SO\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega32u4 -o "C:\\Users\\SO\\AppData\\Local\\Temp\\arduino\\sketches\\95BB438B271E15251B155934DA53DA21/BareMinimum.ino.elf" "C:\\Users\\SO\\AppData\\Local\\Temp\\arduino\\sketches\\95BB438B271E15251B155934DA53DA21\\sketch\\BareMinimum.ino.cpp.o" "C:\\Users\\SO\\AppData\\Local\\Temp\\arduino\\sketches\\95BB438B271E15251B155934DA53DA21/..\\..\\cores\\arduino_avr_leonardo_e1f90613ec3b5f6f930376a1a0befb38\\core.a" "-LC:\\Users\\SO\\AppData\\Local\\Temp\\arduino\\sketches\\95BB438B271E15251B155934DA53DA21" -lm
"C:\\Users\\SO\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\SO\\AppData\\Local\\Temp\\arduino\\sketches\\95BB438B271E15251B155934DA53DA21/BareMinimum.ino.elf" "C:\\Users\\SO\\AppData\\Local\\Temp\\arduino\\sketches\\95BB438B271E15251B155934DA53DA21/BareMinimum.ino.eep"
"C:\\Users\\SO\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\SO\\AppData\\Local\\Temp\\arduino\\sketches\\95BB438B271E15251B155934DA53DA21/BareMinimum.ino.elf" "C:\\Users\\SO\\AppData\\Local\\Temp\\arduino\\sketches\\95BB438B271E15251B155934DA53DA21/BareMinimum.ino.hex"
"C:\\Users\\SO\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\\Users\\SO\\AppData\\Local\\Temp\\arduino\\sketches\\95BB438B271E15251B155934DA53DA21/BareMinimum.ino.elf"
Sketch uses 3460 bytes (12%) of program storage space. Maximum is 28672 bytes.
Global variables use 149 bytes (5%) of dynamic memory, leaving 2411 bytes for local variables. Maximum is 2560 bytes.
Connecting to programmer: .avrdude: butterfly_recv(): programmer is not responding
avrdude: ser_recv(): read error: The I/O operation has been aborted because of either a thread exit or an application request.
avrdude: butterfly_recv(): programmer is not responding
avrdude: ser_drain(): read error: The device does not recognize the command.
avrdude: ser_send(): write error: sorry no info avail
avrdude: ser_recv(): read error: The device does not recognize the command.
avrdude: butterfly_recv(): programmer is not responding
avrdude: ser_send(): write error: sorry no info avail
avrdude: ser_recv(): read error: The device does not recognize the command.
avrdude: butterfly_recv(): programmer is not responding
avrdude: ser_recv(): read error: The device does not recognize the command.
avrdude: butterfly_recv(): programmer is not responding
avrdude: ser_send(): write error: sorry no info avail
avrdude: ser_recv(): read error: The device does not recognize the command.
avrdude: butterfly_recv(): programmer is not responding
Found programmer: Id = "�"; type = �
Software Version = i.; Hardware Version = .O
avrdude: ser_send(): write error: sorry no info avail
avrdude: ser_recv(): read error: The device does not recognize the command.
avrdude: butterfly_recv(): programmer is not responding
avrdude: ser_send(): write error: sorry no info avail
avrdude: ser_recv(): read error: The device does not recognize the command.
avrdude: butterfly_recv(): programmer is not responding
avrdude: error: buffered memory access not supported. Maybe it is not
a butterfly/AVR109 but a AVR910 device?
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude: ser_send(): write error: sorry no info avail
avrdude: ser_recv(): read error: The device does not recognize the command.
avrdude: butterfly_recv(): programmer is not responding
avrdude: error: programmer did not respond to command: leave prog mode
avrdude: ser_send(): write error: sorry no info avail
avrdude: ser_recv(): read error: The device does not recognize the command.
avrdude: butterfly_recv(): programmer is not responding
avrdude: error: programmer did not respond to command: exit bootloader
Failed uploading: uploading error: exit status 1
#############################
UPDATE: Tried to upload another sketch that I had been working on, got this after pressing upload.
Sketch uses 17424 bytes (60%) of program storage space. Maximum is 28672 bytes.
Global variables use 2092 bytes (81%) of dynamic memory, leaving 468 bytes for local variables. Maximum is 2560 bytes.
avrdude: ser_open(): can't open device "\\.\COM4": Access is denied.
Failed uploading: uploading error: exit status 1
Hi @1casy623. I'm going to ask you to provide the full verbose output from an upload attempt.
This procedure is not intended to solve the problem. The purpose is to gather more information.
Please do this:
- Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
The "Preferences" dialog will open.
- Uncheck the box next to Show verbose output during:
☑
compile in the "Preferences" dialog.
- Check the box next to Show verbose output during: ☐ upload.
- Click the "OK" button.
The "Preferences" dialog will close.
- Attempt an upload, as you did before.
- Wait for the upload to fail.
- You will see an "Upload error: ..." notification at the bottom right corner of the Arduino IDE window. Click the "COPY ERROR MESSAGES" button on that notification.
- Open a forum reply here by clicking the "Reply" button.
- Click the
<CODE/>
icon on the post composer toolbar.
This will add the forum's code block markup (```
) to your reply to make sure the error messages are correctly formatted.
- Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
This will paste the error output from the upload into the code block.
- Move the cursor outside of the code block markup before you add any additional text to your reply.
- Click the "Reply" button to post the output.
This was displayed during the "uploading" process.
Sketch uses 17424 bytes (60%) of program storage space. Maximum is 28672 bytes.
Global variables use 2092 bytes (81%) of dynamic memory, leaving 468 bytes for local variables. Maximum is 2560 bytes.
Performing 1200-bps touch reset on serial port COM4
Waiting for upload port...
Upload port found on COM4
avrdude: Version 6.3-20190619
"C:\Users\SO\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\SO\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega32u4 -cavr109 "-PCOM4" -b57600 -D "-Uflash:w:C:\Users\SO\AppData\Local\Temp\arduino\sketches\B59BBC028A1B7B54DEDE9D0036AFE70D/TheSketch.ino.hex:i"
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\SO\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
Using Port : COM4
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: .avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
And this is the output section after I pressed the button on the board to end the process.
"Upload error: Failed uploading: uploading error: exit status 1"
Sketch uses 17424 bytes (60%) of program storage space. Maximum is 28672 bytes.
Global variables use 2092 bytes (81%) of dynamic memory, leaving 468 bytes for local variables. Maximum is 2560 bytes.
Performing 1200-bps touch reset on serial port COM4
Waiting for upload port...
Upload port found on COM4
avrdude: Version 6.3-20190619
"C:\Users\SO\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\SO\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega32u4 -cavr109 "-PCOM4" -b57600 -D "-Uflash:w:C:\Users\SO\AppData\Local\Temp\arduino\sketches\B59BBC028A1B7B54DEDE9D0036AFE70D/TheSketch.ino.hex:i"
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\SO\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
Using Port : COM4
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: .avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: ser_send(): write error: sorry no info avail
avrdude: ser_recv(): read error: The I/O operation has been aborted because of either a thread exit or an application request.
avrdude: butterfly_recv(): programmer is not responding
avrdude: ser_send(): write error: sorry no info avail
avrdude: ser_recv(): read error: The device does not recognize the command.
avrdude: butterfly_recv(): programmer is not responding
avrdude: ser_recv(): read error: The device does not recognize the command.
avrdude: butterfly_recv(): programmer is not responding
avrdude: ser_send(): write error: sorry no info avail
avrdude: ser_recv(): read error: The device does not recognize the command.
avrdude: butterfly_recv(): programmer is not responding
Found programmer: Id = "�"; type = @
Software Version = {.u; Hardware Version = �.
avrdude: ser_send(): write error: sorry no info avail
avrdude: ser_recv(): read error: The device does not recognize the command.
avrdude: butterfly_recv(): programmer is not responding
avrdude: ser_send(): write error: sorry no info avail
avrdude: ser_recv(): read error: The device does not recognize the command.
avrdude: butterfly_recv(): programmer is not responding
avrdude: error: buffered memory access not supported. Maybe it is not
a butterfly/AVR109 but a AVR910 device?
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude: ser_send(): write error: sorry no info avail
avrdude: ser_recv(): read error: The device does not recognize the command.
avrdude: butterfly_recv(): programmer is not responding
avrdude: error: programmer did not respond to command: leave prog mode
avrdude: ser_send(): write error: sorry no info avail
avrdude: ser_recv(): read error: The device does not recognize the command.
avrdude: butterfly_recv(): programmer is not responding
avrdude: error: programmer did not respond to command: exit bootloader
avrdude done. Thank you.
Failed uploading: uploading error: exit status 1
This error might be caused by having the wrong port selected from the Tools > Port menu in Arduino IDE.
Please perform this experiment to verify that the port you have selected is your Arduino board:
- Connect the Arduino board to your computer with a USB cable (if it is not already).
- Select Tools > Port from the Arduino IDE menus. If one of the ports in the menu is labeled with the board name (e.g., "COM42 (Arduino Uno)"), that is the port of your Arduino board.
If you saw the port labeled with the board name in the Tools > Port menu, select that port and try uploading again.
If this doesn't solve the problem, please reply here on this forum thread with the answers to the following questions:
- While following those instructions, did you see a port in the Tools > Port menu that was labeled with the board name?
- If you did see a labeled port, was the upload successful after you selected that port?