Trinket Pro 3V

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
rbrook
 
Posts: 3
Joined: Fri Jan 22, 2016 11:34 pm

Trinket Pro 3V

Post by rbrook »

Hi,

I'm getting the following error when uploading any code to my trinket (testing with Blink). I'm also getting USB disconnect reconnect sounds from my laptop every 10 sec when the trinket is connected

avrdude: error: usbtiny_send: (expected 128, got -5)
avrdude: verification error, first mismatch at byte 0x0088
0xff != 0x10
avrdude: verification error; content mismatch

I have tried reprogramming the boot loader and it said it was successful but the problem is still there.

I have tried 1.6.4, 1.6.5 1.6.7 versions of the programmer used every USB port on the laptop and even a powered USB hub.

Any help would be appreciated.

Cheers,
Richard

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: Trinket Pro 3V

Post by adafruit_support_mike »

The tutorial explains how to make the Pro Trinket work with the Arduino IDE:

https://learn.adafruit.com/introducing- ... rduino-ide

User avatar
rbrook
 
Posts: 3
Joined: Fri Jan 22, 2016 11:34 pm

Re: Trinket Pro 3V

Post by rbrook »

I followed that tutorial step by step again and still the same problem.

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: Trinket Pro 3V

Post by adafruit_support_mike »

It's probably a timing issue. If you're programming a Pro Trinket through the USB cable, you have to press the hardware reset button on the PCB and click the Upload button in the IDE so the red LED is pulsing when the IDE finishes compiling and starts trying to upload.

That can be Tricky on Windows machines due to the timing of the Device Manager. The good news is that the timing is pretty stable. Once you get a feel for it, it's repeatable.

User avatar
rbrook
 
Posts: 3
Joined: Fri Jan 22, 2016 11:34 pm

Re: Trinket Pro 3V

Post by rbrook »

Trying different timings and so far I've found the Trinket disconnects and reconnects every 10 sec except when i'm attempting an upload to it then it takes 21 sec until it disconnects still with the same error.

avrdude: error: usbtiny_send: (expected 128, got -5)
avrdude: verification error, first mismatch at byte 0x0008
0xff != 0x0c
avrdude: verification error; content mismatch

When the trinket was just booting up and i started the upload to quickly i was getting these errors that make sense.

avrdude: Error: Could not find USBtiny device (0x1781/0xc9f)

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: Trinket Pro 3V

Post by adafruit_support_mike »

Another thing you can try, which occasionally helps, is to put an old/cheap USB hub between the computer and the Arduino.

The Trinket doesn't have any USB hardware, so its bootloader emulates a low-speed USB connection. Some USB-3 buses generate signals the Trinket can't handle, but a hub between the Trinket and computer can act as a translator. The hub will have a complete USB-2 chip that the computer can recognize, and will also be able to talk to the Trinket.

User avatar
ck37
 
Posts: 1
Joined: Sat Jun 15, 2013 9:59 am

Re: Trinket Pro 3V

Post by ck37 »

I was able to get mine to work by updating the Adafruit AVR board software within the Arduino IDE - had been using 1.4.2 and updated to 1.4.5. Use the Arduino IDE menu to select Tools -> Boards -> Board Manager. Filter by "adafruit", then click the "Adafruit AVR Boards" section and click the "update" button if one is displayed.

User avatar
sfoley
 
Posts: 4
Joined: Tue Mar 22, 2016 8:13 pm

Re: Trinket Pro 3V

Post by sfoley »

Im having the same problem here with a 3V Pro Trinket (with headers and a LiPoly backpack soldered on) that I just got, running Arduino IDE 1.6.7 and Adafruit AVR Boards 1.4.6. Errors are:
avrdude: error: usbtiny_send: Input/output error (expected 128, got -5)
avrdude: verification error, first mismatch at byte 0x0008
0xff != 0x0c
avrdude: verification error; content mismatch

Sometimes I get an "avrdude: error: usbtiny_send: Input/output error (expected 128, got -5)" error...maybe when it is recycling?

Ive tried different ports, different cables, different computers (all MacOS), with and without an unpowered old USB hub, and no change. Ive tried pushing the reset button and loading with various timing, and still the same errors. I have swapped out the Pro Trinket with a regular 5V Trinket (same cable, port, computer, and sw versions), and it uploads just fine with the right board setting as the only change. The port and IDE and cable all seem to work, just not this 3V Pro Trinket. When I plug the board in, it seems to pulse the red light and never kicks into running a program (haven't ever gotten one loaded).

Is there something else I can try or check? Or am I looking at a bad little board?

User avatar
oakguy
 
Posts: 24
Joined: Mon Dec 17, 2012 2:33 pm

Re: Trinket Pro 3V

Post by oakguy »

Did you get this working? I have had no success either with the Trinket? Maybe you found something?

Thanks!

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: Trinket Pro 3V

Post by adafruit_support_mike »

Try dropping back to version 1.6.5 of the Arduino IDE. Versions 1.6.6 and 1.6.7 made changes that caused all sorts of problems.

User avatar
sfoley
 
Posts: 4
Joined: Tue Mar 22, 2016 8:13 pm

Re: Trinket Pro 3V

Post by sfoley »

I dropped back to IDE 1.6.5 and had to back up to Arduino AVR boards version 1.6.8 in the board manager to get it to compile (a.out problem with 1.6.10). It does compile with version 1.6.8 and Adafruit AVR Boards 1.4.6 in board manager. However, the (verbose) output is the same as before when I try to upload:

Code: Select all

avrdude: Version 6.0.1, compiled on Apr 14 2015 at 16:30:25
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "/Users/sfoley/Library/Arduino15/packages/arduino/tools/avrdude/6.0.1-arduino5/etc/avrdude.conf"
         User configuration file is "/Users/sfoley/.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:024
         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, http://www.ladyada.net/make/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
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/bs/g9p_b6h14w5_pv_j3ztyxcxw0000gn/T/build237949294981430414.tmp/Blink.cpp.hex"
avrdude: writing flash (1078 bytes):

Writing | #####
avrdude: error: usbtiny_send: Input/output error (expected 128, got -5)
######avrdude: 4 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: 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
## | 100% 7.44s

avrdude: 1078 bytes of flash written
avrdude: verifying flash memory against /var/folders/bs/g9p_b6h14w5_pv_j3ztyxcxw0000gn/T/build237949294981430414.tmp/Blink.cpp.hex:
avrdude: load data flash data from input file /var/folders/bs/g9p_b6h14w5_pv_j3ztyxcxw0000gn/T/build237949294981430414.tmp/Blink.cpp.hex:
avrdude: input file /var/folders/bs/g9p_b6h14w5_pv_j3ztyxcxw0000gn/T/build237949294981430414.tmp/Blink.cpp.hex contains 1078 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.05s

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0088
         0xff != 0x10
avrdude: verification error; content mismatch

avrdude done.  Thank you.
Last edited by Franklin97355 on Mon Mar 28, 2016 12:56 am, edited 1 time in total.
Reason: Added [code] tags

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: Trinket Pro 3V

Post by adafruit_support_mike »

It does look like there are some communication problems.

Send a note to [email protected] with a link to this thread and the folks there will get you a replacement 3.3v Pro Trinket.


(#2010)

User avatar
BjornHam
 
Posts: 1
Joined: Sun Apr 17, 2016 1:30 am

Re: Trinket Pro 3V

Post by BjornHam »

I have had the same timing issues as above. Luckily, I bought two Trinkets of which only one was malfunctioning and I tried out the other one before my frustration reached alarming levels.

Before assuming the malfunctioning Trinket was physically broken, I wanted to try out if it was only the bootloader that had given in. After hooking up the two according to https://learn.adafruit.com/introducing- ... bootloader (yes, I read the warning and also carefully checked the pinouts and source code), the bootloader was successfully updated on the malfunctioning Trinket.

Then I uploaded a blink sketch through the FTDI cable (since that was the one I hade used as a terminal cable while updating the bootloader) which worked like a charm. Success at last?

No, it turns out. When again using the USB cable, the same malfunctioning behavior prevails. My laptop has USB 3.0 so I have tried a USB 2.0 hub as well.

My conclusion can't be anything else than: one Trinket works as specified and one Trinket has issues regarding its USB port.

What do I do?

User avatar
lpantano
 
Posts: 5
Joined: Sun Apr 17, 2016 12:16 pm

Re: Trinket Pro 3V

Post by lpantano »

I have the same problem. Protrinket atmega328p 3V/12MHz.

I am in macosx, with arduino version 1.6.5. Just trying to use the blink example and nothing. This is my error:

Code: Select all

Sketch uses 1,078 bytes (3%) of program storage space. Maximum is 28,672 bytes.
Global variables use 9 bytes of dynamic memory.

avrdude: error: usbtiny_send: Operation timed out (expected 128, got -60)
avrdude: verification error, first mismatch at byte 0x029c
         0x81 != 0x8e
avrdude: verification error; content mismatch
I tried different version of arduino IDE, but nothing. :(

any suggestion to get this working?

thanks

User avatar
Franklin97355
 
Posts: 23911
Joined: Mon Apr 21, 2008 2:33 pm

Re: Trinket Pro 3V

Post by Franklin97355 »

@BjornHam Contact [email protected] with a link to this thread and your order details, they will get you a replacement

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”