Unable to upload code to Zumo32U4

Hi,

I have been unable to upload code to my Zumo32U4 in windows 10 which has been working fine previously. I have tried both uploading before bootloader method, bootloader before uploading method and erasing the program with AVRDUDE. The Zumo32U4 is able to enter bootloader with the yellow light fading in and out and both the Zumo32U4 port and bootloader port show up in the device manager. Below is the verbose output in arduino for uploading. My zumo32u4 is connected to COM6 but for some reason Arduino forces a reset on port COM6 and then tries to upload to COM7 as seen below.

Thanks

Sketch uses 7454 bytes (25%) of program storage space. Maximum is 28672 bytes.
Global variables use 325 bytes (12%) of dynamic memory, leaving 2235 bytes for local variables. Maximum is 2560 bytes.
Forcing reset using 1200bps open/close on port COM6
PORTS {COM4, COM5, COM6, COM10, COM11, } / {COM4, COM5, COM10, COM11, } => {}
PORTS {COM4, COM5, COM10, COM11, } / {COM4, COM5, COM7, COM10, COM11, } => {COM7, }
Found upload port: COM7
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega32u4 -cavr109 -PCOM7 -b57600 -D -Uflash:w:C:\Users\matth\AppData\Local\Temp\arduino_build_533310/BlinkLEDs.ino.hex:i

avrdude: Version 6.3-20190619
Copyright © 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright © 2007-2014 Joerg Wunsch

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

     Using Port                    : COM7
     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: 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_recv(): read error: The device does not recognize the command.

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 = “F”; type = @
Software Version = �.w; 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 isn’t
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.

the selected serial port
does not exist or your board is not connected

Update:
I have fixed the problem! I had recently mounted a pan tilt kit onto the zumo32u4 and realized that the mount was holding down buttonA and for some reason that was messing with the upload.

2 Likes

Hello.

I am glad to hear you were able to figure out the problem; thanks for letting us know.

- Patrick