pro trinket programming issue.

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
CodyCode
 
Posts: 16
Joined: Sat Sep 13, 2014 12:17 am

pro trinket programming issue.

Post by CodyCode »

I have been testing programs on my pro trinket 5v all day today, and suddenly I can not upload any program for some reason. seemingly the trinket is not responding correctly. All I get back is

Code: Select all

avrdude: error: usbtiny_send: usb_control_msg(DeviceRequestTO): unknown error (expected 128, got -1)
avrdude: verification error, first mismatch at byte 0x0a88
         0x50 != 0xff
avrdude: verification error; content mismatch
Any ideas?

User avatar
CodyCode
 
Posts: 16
Joined: Sat Sep 13, 2014 12:17 am

Re: pro trinket programming issue.

Post by CodyCode »

A few other bits, when plugged in the red led does pulse smoothly to indicate it is in bootloader. When attempting to program the led does blink rapidly, and the previous sketch does not run. I have tried on different usb ports and with different usb cables. Sometimes instead of the above error I will see

Code: Select all

avrdude: error: usbtiny_send: usb_control_msg(DeviceRequestTO): transaction timed out (expected 128, got -60)
avrdude: verification error, first mismatch at byte 0x0500
         0x29 != 0x89
avrdude: verification error; content mismatch
but usually it is -1.

User avatar
CodyCode
 
Posts: 16
Joined: Sat Sep 13, 2014 12:17 am

Re: pro trinket programming issue.

Post by CodyCode »

This also affects more than one sketch, and persists with changes. However seemingly randomly it will work (subsequent attempts to upload the same code may fail, and previously failed code will upload correctly)

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

Re: pro trinket programming issue.

Post by adafruit_support_mike »

That looks like a timing error, or possibly a connection problem.

Try using another USB cable, and programming from another USB port.

User avatar
marvin1969
 
Posts: 2
Joined: Sat May 05, 2018 7:10 pm

Re: pro trinket programming issue.

Post by marvin1969 »

I see this same issue. I've attempted using several different USB ports (USB 2 and 3), bouncing it through an external USB hub (self-powered). In my case, I can get a very small sketch to infrequently (maybe 1 in 5 times), but cannot even get the strandTest to load.

Any advices? I have multiple OS's (Ubuntu, Mint, Windows 10) across several systems from which to operate, but some guidance would help here.

Thanks!

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

Re: pro trinket programming issue.

Post by adafruit_support_mike »

All we can suggest are the same items mentioned above.

There are infinite ways for things to fail. To debug a failure, you need to change things in a controlled way (one parameter at a time) until you start to see some correlation between the operating conditions and the failure. The first step to fixing a failure is learning how to make it fail on demand.

User avatar
marvin1969
 
Posts: 2
Joined: Sat May 05, 2018 7:10 pm

Re: pro trinket programming issue.

Post by marvin1969 »

I have it working now. I stopped using Win10 and switched back to Ubuntu 17 64-bit using 4.13.0-39. What I used:

user@mymachine: ~/$ uname -a
Linux mymachine 4.13.0-39-generic #44-Ubuntu SMP Thu Apr 5 14:25:01 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Arduino IDE 1.0.5 (installed from package manager) - this set the access to the TTY group as part of the installer. I'm not using it as the IDE though.
Arduino IDE 1.8.5 (installed from download, not package manager) - Mine is installed in /home/user/arduino-1.8.5
  • Add the Adafruit_NeoPixel library to the /home/user/Arduino directory
  • Update the drivers and board listings

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

Re: pro trinket programming issue.

Post by adafruit_support_mike »

Glad to hear you got things working!

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

Return to “Microcontrollers”