Pro Trinket 3V Programming Issue

Hi, I am having an issue programming my 3V Pro Trinket, I am using Arduino IDE to try to upload the sketch’s but end up with the following error message.

‘’’
Arduino: 1.8.13 (Mac OS X), Board: “Pro Trinket 3V/12MHz (USB)”

Sketch uses 444 bytes (1%) of program storage space. Maximum is 28672 bytes.
Global variables use 9 bytes of dynamic memory.
/Users/Greg/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/bin/avrdude -C/Users/Greg/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf -v -patmega328p -cusbtiny -Uflash:w:/var/folders/sz/1l_ldm856nngj2phfbwmzjpr0000gn/T/arduino_build_406443/sketch_jul22a.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 "/Users/Greg/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf"
     User configuration file is "/Users/Greg/.avrduderc"
     User configuration file does not exist or is not a regular file, skipping

     Using Port                    : usb
     Using Programmer              : usbtiny

avrdude: usbdev_open(): Found USBtinyISP, bus:device: 020:030
AVR Part : ATmega328P
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       1024    4      0  3600  3600 0xff 0xff
       flash         65     6   128    0 yes     32768  128    256  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: Using SCK period of 10 usec
avrdude: AVR device initialized and ready to accept instructions

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

avrdude: Device signature = 0x1e950f (probably m328p)
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: Using SCK period of 10 usec
avrdude: reading input file “/var/folders/sz/1l_ldm856nngj2phfbwmzjpr0000gn/T/arduino_build_406443/sketch_jul22a.ino.hex”
avrdude: writing flash (444 bytes):

Writing |
avrdude: error: usbtiny_send: Input/output error (expected 128, got -5)
############avrdude: 6 retries during SPI command
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: 1 retries during SPI command
#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: 1 retries during SPI command
#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: 1 retries during SPI command
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: 1 retries during SPI command
#avrdude: 1 retries during SPI command
avrdude: 1 retries during SPI command
#avrdude: 2 retries during SPI command
#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: 1 retries during SPI command
#avrdude: 1 retries during SPI command
avrdude: 1 retries during SPI command
#avrdude: 2 retries during SPI command
#avrdude: 1 retries during SPI command
avrdude: 2 retries during SPI command
##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: 1 retries during SPI command

| 100% 12.91s

avrdude: 444 bytes of flash written
avrdude: verifying flash memory against /var/folders/sz/1l_ldm856nngj2phfbwmzjpr0000gn/T/arduino_build_406443/sketch_jul22a.ino.hex:
avrdude: load data flash data from input file /var/folders/sz/1l_ldm856nngj2phfbwmzjpr0000gn/T/arduino_build_406443/sketch_jul22a.ino.hex:
avrdude: input file /var/folders/sz/1l_ldm856nngj2phfbwmzjpr0000gn/T/arduino_build_406443/sketch_jul22a.ino.hex contains 444 bytes
avrdude: reading on-chip flash data:

the selected serial port
does not exist or your board is not connected
Reading | #########################avrdude: 1 retries during read
######################### | 100% 0.02s

avrdude: verifying …
avrdude: verification error, first mismatch at byte 0x0006
0xff != 0x46
avrdude: verification error; content mismatch

avrdude done. Thank you.
‘’’

I also have a Pro Trinket 5V which functions with out any issue when uploading sketch’s using the same equipment and process.

When the 3V Pro Trinket is plugged in to the MacBook Pro USB 2 Port initially the Red and Green LED’s illuminate as expected and after approximately 10 seconds the Pro Trinket runs the default blink sketch that was installed in the factory.

I have reviewed all Adafruit tutorials and documentation but can’t seem to find a resolution that works!

1 Like

Hey,

Welcome to the forum!

It appears that there have been some similar issues over on the adafruit forums with a 3V pro trinket not correctly interacting with apple devices or other devices using USB 3.0. Do you have another device that you can use running Linux, Windows, or without USB 3.0 ports to verify that the issue is due to compatibility and not due to the board having any malfunctions or faults?

Bryce
Core Electronics | Support

Hi Pinger,

I’ve just read through the whole Adafruit guide on the Pro Trinket. Apparently the bit bashing approach to USB it uses does not work well on USB 3.0 ports. They’ve actually updated their product page with a disclaimer. You might need to try it on an older USB port, or try programming it using the FTDI header.


Check out the FAQ here: https://learn.adafruit.com/introducing-pro-trinket/faq

There’s also a whole lot of similar posts on the Adafruit forums worth exploring.

Regards,
Oliver
Support | Core Electronics

1 Like