[Solved] Can't upload sketches to watch, reset button just makes it blink and shut down

Hi, I received my watchX today and assembled it. I was excited to upload a watchface and after setting up the libraries I tried my first upload. That failed with this error:

avrdude: Expected signature for ATmega32U4 is 1E 95 87
         Double check chip, or use -F to override this check.

I then tried the reset button trick mentioned in the forum, I think something was uploaded, at least I got some other errors:

***failed;
***failed;  
***failed;  
***failed;  
***failed;  
***failed;  
avrdude: Error: butterfly programmer uses avr_write_page() but does not
provide a cmd() method.
*** page 123 (addresses 0x6bfc - 0x6c7b) failed to write

and now the watch does not show anything on the screen anymore. When I connect it via usb, it’s not recognized, so I can’t choose a port.

What can I do to debug this?

here is the debug output of the upload:

Arduino: 1.8.7 (Linux), Board: "Arduino Leonardo"

Der Sketch verwendet 27772 Bytes (96%) des Programmspeicherplatzes. Das Maximum sind 28672 Bytes.
Globale Variablen verwenden 1976 Bytes (77%) des dynamischen Speichers, 584 Bytes fĂĽr lokale Variablen verbleiben. Das Maximum sind 2560 Bytes.
Wenig Arbeitsspeicher verfügbar, es können Stabilitätsprobleme auftreten.
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {/dev/ttyACM0, } => {/dev/ttyACM0, }
Found upload port: /dev/ttyACM0
/home/tilman/arduino/ide/arduino-1.8.7/hardware/tools/avr/bin/avrdude -C/home/tilman/arduino/ide/arduino-1.8.7/hardware/tools/avr/etc/avrdude.conf -v -patmega32u4 -cavr109 -P/dev/ttyACM0 -b57600 -D -Uflash:w:/tmp/arduino_build_225030/Basic_Watch.ino.hex:i 

avrdude: Version 6.3-20171130
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/home/tilman/arduino/ide/arduino-1.8.7/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/home/tilman/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyACM0
         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 "/tmp/arduino_build_225030/Basic_Watch.ino.hex"
avrdude: writing flash (27772 bytes):

Writing | #avrdude: error: programmer did not respond to command: write block

avrdude: Error: butterfly programmer uses avr_write_page() but does not
provide a cmd() method.
 *** page 123 (addresses 0x6bfc - 0x6c7b) failed to write

 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
 ***failed;  
  
# | 100% 11.22s

avrdude: 27772 bytes of flash written
avrdude: verifying flash memory against /tmp/arduino_build_225030/Basic_Watch.ino.hex:
avrdude: load data flash data from input file /tmp/arduino_build_225030/Basic_Watch.ino.hex:
avrdude: input file /tmp/arduino_build_225030/Basic_Watch.ino.hex contains 27772 bytes
avrdude: reading on-chip flash data:

Reading | avrdude: error: programmer did not respond to command: set addr
#avrdude: butterfly_recv(): programmer is not responding
##########################################Der ausgewählte serielle Port ##################### ist nicht vorhanden oder das Board ist nicht angeschlossen
####### | 100% 6.39s

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0300
         0x7c != 0x0e
avrdude: verification error; content mismatch

avrdude done.  Thank you.

Dieser Bericht wäre detaillierter, wenn die Option
"Ausführliche Ausgabe während der Kompilierung"
in Datei -> Voreinstellungen aktiviert wäre.

I had to cut out a bunch of the following, because the log would’ve been 28000 lines long otherwise…

avrdude: Error: butterfly programmer uses avr_write_page() but does not
provide a cmd() method.
 *** page 123 (addresses 0x6bfc - 0x6c7b) failed to write

 ***failed;  
 ***failed;

Okay this seems to be resolved. I tried another laptop and am running manjaro on both. It didn’t work there either. So I switched to a computer with a different OS and the sketches upload without a problem. Bummer about the manjaro installs though… I need to find a solution for that, but it seems lots of arduino devs are experiencing the same problem with arduino-ide, so I’ll try to find out what’s going on, on their forums.

now to have some fun with the watchX!!! yay :smiley:

1 Like

Dear xnopasaranx ,

I am glad that you have solved the problem successfully :relaxed:

Please keep in touch if you encounter any other problems.