0

Fried trinket 5v
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Fried trinket 5v

by Khevob on Sun Nov 12, 2017 2:13 pm

I bought a trinket to use for led strip animation, It was a lot of trying, since it's my first project, but it worked for a while. I wrote the entirety of the code first then enabled features one by one, and tested them. The last feature took the program size up to 5200~ bytes, 98% of the available space, so i tought it came out just perfect.

Upon uploading the code to the trinket, i got an error message, wich i assumed was just that i forgot to set it into bootloader mode again, but after that, the trinket just stopped working. It doesn't run the previous version of the code, and the reset button does nothing, it doesn't enter bootloader mode anymore, nor does the red led light up upon reset.

I read here that you can restore the bootloader via an Arduino UNO, but i don't have access to one, nor any other board, only a windows laptop.

Did i overwrite the bootloader, or just simply fried it somehow? How could i fix it without another board? Should i just trash it?

Khevob
 
Posts: 3
Joined: Sun Nov 12, 2017 1:50 pm

Re: Fried trinket 5v

by adafruit_support_carter on Tue Nov 14, 2017 1:12 pm

Did i overwrite the bootloader, or just simply fried it somehow?

Possibly. If there were no hardware changes and it was simply a sketch upload, then this seems more likely than frying it. However, did this "last feature" also enable some aspect of the hardware interface that previously had not been used?

How could i fix it without another board?

What other boards do you have that may be similar to an UNO?

adafruit_support_carter
 
Posts: 6288
Joined: Tue Nov 29, 2016 2:45 pm

Re: Fried trinket 5v

by Khevob on Tue Nov 14, 2017 3:19 pm

The program is a rather simple led strip control, with a few buttons and animations. The last update was just an other animation, nothing new really, same pins same functions. Now the board just doesn't do anything, only the green led lighting up when i plug it in, no data output on any pins, reset does nothing it seems.

As for other boards, I do have an other trinket 5v, and nothing else. I will ask around my friends, but i doubt anyone has one lying around.

How much data would you say is still safe to upload? Don't really want to just try and upload it to the other one, until i make sure. If i can get the code down to 5000 bytes that should be good enough, yeah?

Khevob
 
Posts: 3
Joined: Sun Nov 12, 2017 1:50 pm

Re: Fried trinket 5v

by adafruit_support_carter on Tue Nov 14, 2017 6:41 pm

The uploader shouldn't let you overwrite the bootloader by simply trying to install too large of a program. It knows how much room is available for your sketches. It's possible that new animation code you added just happened to be the one to exceed an array bound and step on the bootloader section.

Asking around sounds like a good idea. If you can get your hands on a loaner UNO, then we can try the bootloader repair process.

adafruit_support_carter
 
Posts: 6288
Joined: Tue Nov 29, 2016 2:45 pm

Re: Fried trinket 5v

by martian on Fri Nov 24, 2017 11:40 pm

Hey there, Hoping to jump in here with a similar/same problem. I've had 5v trinket in use for a few months and was just trying a new sketch. I'd loaded variants a few times already, when bootloader seemed to go dead. Not sure 100% why. The green light is on, the red bootloader light is dim and not pulsing when I reset the board. It had gone unresponsive, which it seemed to do occasionally, so I pulled the plug. But I'd also been messing around with external interrupts which is novel for me. (not inclined to think this would be problematic

So digging around I found the bootloader repair technique and tried it with an Arduino Mega 2560 (most things for uno work on this board):

https://learn.adafruit.com/introducing- ... bootloader

This was the serial output form the attempt:

Tri
Trinket loader!

Type 'G' or hit BUTTON for next chip
Starting Program Mode [OK]

Reading signature:200
Searching for image...
Not Found
Image fail


This is not the expect output from the link above.

Any help appreciated!

martian
 
Posts: 70
Joined: Wed Sep 27, 2017 2:17 am

Re: Fried trinket 5v

by kattni on Fri Nov 24, 2017 11:43 pm

@martian, I would suggest creating a new topic. It's difficult to track new questions in older threads.

kattni
 
Posts: 26
Joined: Fri Aug 18, 2017 6:33 pm

Re: Fried trinket 5v

by Khevob on Sat Nov 25, 2017 8:19 am

As for the original question, i couldn't get my hands on a board so i reduced the size of the code to 4970 bytes, and successfully uploaded that to a new trinket. I would say this case was an accidental override of the bootloader, but it is unsolved.

Khevob
 
Posts: 3
Joined: Sun Nov 12, 2017 1:50 pm

Re: Fried trinket 5v

by adafruit_support_carter on Sat Nov 25, 2017 1:41 pm

@Khevob Go ahead and email support@adafruit.com with a link to this thread and your order number and they can get you a replacement Trinket this one time.

Be careful programming the new one though since you don't have a way to repair the bootloader.

adafruit_support_carter
 
Posts: 6288
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.