Pro Trinket USB Upload Problem

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
colem
 
Posts: 4
Joined: Mon Jun 03, 2013 11:09 pm

Pro Trinket USB Upload Problem

Post by colem »

I am unable to upload code to my new Pro Trinket 5v over USB. When I plug it into my mac I get a green power light and the pulsing red LED for bootloader mode like I should but when I try to upload a blink sketch, I get the following error.

Code: Select all

avrdude: error: usbtiny_send: Input/output error (expected 128, got -5)
avrdude: verification error, first mismatch at byte 0x0016
         0x0c != 0x6e
avrdude: verification error; content mismatch
I have tried different usb cables and ports on my computer with the same results. I even tried re-programming the bootloader as described here with no better results. The Trinket shows up in System Information as USBtiny (see attached picture).

Anybody have any ideas?
Thanks in advance for the help.
Attachments
System Information.png
System Information.png (201.29 KiB) Viewed 1071 times

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

Re: Pro Trinket USB Upload Problem

Post by Franklin97355 »

Are you pressing the reset button just before the upload starts?

User avatar
colem
 
Posts: 4
Joined: Mon Jun 03, 2013 11:09 pm

Re: Pro Trinket USB Upload Problem

Post by colem »

Yes, I am pressing the button to go into bootloader mode before uploading. I tried reprogramming the bootloader again and am getting the bootloading pulsing light on loop. When I tried to upload I got this error:

Code: Select all

avrdude: error: usbtiny_send: Input/output error (expected 128, got -5)

avrdude: error: usbtiny_receive: Input/output error (expected 4, got -5)

avrdude: error: usbtiny_receive: Input/output error (expected 4, got -5)

avrdude: error: usbtiny_receive: Device not configured (expected 4, got -6)

avrdude: error: usbtiny_receive: Device not configured (expected 4, got -6)

avrdude: error: usbtiny_receive: Device not configured (expected 4, got -6)

avrdude: error: usbtiny_receive: Device not configured (expected 4, got -6)

avrdude: error: usbtiny_receive: Device not configured (expected 4, got -6)

avrdude: error: usbtiny_receive: Device not configured (expected 128, got -6)

avrdude: error: usbtiny_receive: Device not configured (expected 4, got -6)
avr_read(): error reading address 0x0000
    read operation not supported for memory "flash"
avrdude: failed to read all of flash memory, rc=-2

avrdude: error: usbtiny_transmit: Device not configured
With "avrdude: error: usbtiny_receive: Device not configured (expected 4, got -6)" repeated many more times.
Hope this helps.

User avatar
FidgetTheHiker
 
Posts: 5
Joined: Fri Oct 07, 2016 11:14 am

Re: Pro Trinket USB Upload Problem

Post by FidgetTheHiker »

Was there ever a resolution to this? I'm getting the same error now with a new Pro Trinket 3v. I've tried two cables (both work with other Arduino's, a WICED Feather, etc.) on two computers - a new HP with USB3 running Windows 10, and and older, USB2 equipped Lenovo, running Elementary OS.

Verbose upload output is attached as a text tile - all 16k lines of it.

Thanks!
Attachments
VerboseUploadOutput.txt
Verbose upload output
(456.34 KiB) Downloaded 142 times

User avatar
FidgetTheHiker
 
Posts: 5
Joined: Fri Oct 07, 2016 11:14 am

Re: Pro Trinket USB Upload Problem

Post by FidgetTheHiker »

Additional information...
I went back to basics - Blink. To my surprise, it did upload and work. So I tried adding only the includes for my project, none of the code, and then it didn't upload again. My test sketch is below. I tried commenting out the includes one-by-one and found that with blink only or blink and the SPI.h include, it would upload and fail to upload randomly. Repeated tries, one after another, would work a few times, then fail many more, then work again... I never got it to upload with either of RadioHead's libraries. It builds, but won't upload.

I've tried many, many times to get the timing right on the build/reset button/upload sequence. Could the issue be, not that the upload doesn't start within 10 seconds, but that it's not done in 10 seconds?

Code: Select all

//#include <RHReliableDatagram.h>
//#include <RH_RF95.h>
//#include <SPI.h>

void setup() {
  pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);
  delay(250);
  digitalWrite(LED_BUILTIN, LOW);
  delay(250);
}

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

Return to “Other Arduino products from Adafruit”