Uploads Failing

Hi everyone,

I’ve been playing around with my dev kit for about a month, installing a bunch of games, and trying to just fiddle around with the code,
but a week ago, I’ve been getting this error every time I try to upload something:

Arduino: 1.8.19 (Mac OS X), Board: "Blink"

/Users/ethanlin/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/bin/avrdude -C/Users/ethanlin/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf -B 5 -v -patmega168pb -cusbtiny -Uflash:w:/var/folders/tg/x4vcvy3s2_1cks53vfbxpbbc0000gq/T/arduino_build_879551/TDS.ino.hex:i -Uflash:w:/Users/ethanlin/Library/Arduino15/packages/move38/hardware/avr/1.3.0/bootloaders/BlinkBIOS.hex:i -u 

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 "/Users/ethanlin/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf"
         User configuration file is "/Users/ethanlin/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : usb
         Using Programmer              : usbtiny
         Setting bit clk period        : 5.0
avrdude: usbdev_open(): Found USBtinyISP, bus:device: 020:020
         AVR Part                      : ATmega168PB
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         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        512    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     16384  128    128  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 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 : USBtiny
         Description     : USBtiny simple USB programmer, https://learn.adafruit.com/usbtinyisp
avrdude: programmer operation not supported

avrdude: Setting SCK period to 5 usec
avrdude: AVR device initialized and ready to accept instructions

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

avrdude: Device signature = 0x1e9415 (probably m168pb)
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: Setting SCK period to 5 usec
avrdude: reading input file "/var/folders/tg/x4vcvy3s2_1cks53vfbxpbbc0000gq/T/arduino_build_879551/TDS.ino.hex"
avrdude: writing flash (10290 bytes):

Writing | ################################################## | 100% 0.00s

avrdude: 2 retries during SPI command
avrdude: 10290 bytes of flash written
avrdude: verifying flash memory against /var/folders/tg/x4vcvy3s2_1cks53vfbxpbbc0000gq/T/arduino_build_879551/TDS.ino.hex:
avrdude: load data flash data from input file /var/folders/tg/x4vcvy3s2_1cks53vfbxpbbc0000gq/T/arduino_build_879551/TDS.ino.hex:
avrdude: input file /var/folders/tg/x4vcvy3s2_1cks53vfbxpbbc0000gq/T/arduino_build_879551/TDS.ino.hex contains 10290 bytes
avrdude: reading on-chip flash data:

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

avrdude: 1 retries during read

avrdude: error: usbtiny_receive: Operation timed out (expected 128, got 96)

A lot of:
avrdude: (some number) retries during SPI command

avrdude: verifying ...
avrdude: 10290 bytes of flash verified
avrdude: reading input file "/Users/ethanlin/Library/Arduino15/packages/move38/hardware/avr/1.3.0/bootloaders/BlinkBIOS.hex"
avrdude: writing flash (16296 bytes):

Writing | ################################################## | 100% 0.00s

avrdude: 1 retries during SPI command
avrdude: 1 retries during SPI command
avrdude: 1 retries during SPI command
avrdude: 1 retries during SPI command
avrdude: 16296 bytes of flash written
avrdude: verifying flash memory against /Users/ethanlin/Library/Arduino15/packages/move38/hardware/avr/1.3.0/bootloaders/BlinkBIOS.hex:
avrdude: load data flash data from input file /Users/ethanlin/Library/Arduino15/packages/move38/hardware/avr/1.3.0/bootloaders/BlinkBIOS.hex:
avrdude: input file /Users/ethanlin/Library/Arduino15/packages/move38/hardware/avr/1.3.0/bootloaders/BlinkBIOS.hex contains 16296 bytes
avrdude: reading on-chip flash data:

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

Some of:
avrdude: (some num) retries during read

avrdude: error: usbtiny_receive: Operation timed out (expected 128, got 112)

A lot a lot of:
avrdude: (some num) retries during SPI command

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x3400
         0x40 != 0x48
avrdude: verification error; content mismatch

the selected serial port 
 does not exist or your board is not connected
avrdude done.  Thank you.


I saw some other users find this error and fixed by restarting their computers, swapping ports, replugging, ect.
I tried all these things, and sometimes (about 1/50 chance), it works, but I’m still stuck on this error.

Thanks!

Check the battery levels on your Blinks maybe? Once one goes low it becomes flaky when teaching neighbors.

A couple of quick questions:

  1. Are you using the Dev Blink included in the Game Maker Kit (AKA: Developer Kit)?
  2. Is the Programmer set to have target power on?

Yes, and yes.
Should I send a picture?

I don’t have a multimeter, but the battery should be good because I replaced them 3 days ago.

1 Like

So now I am getting this error where the blinkBOIS file was missing, so I decided to reinstall the blinks SDK, (since I couldn’t find it on github) and then my error was fixed for a bit…
only for it to come up again. :expressionless: