Repairing Bootloader - Adafruit Trinket

USB AVR Programmer and SPI interface. Adafruit's USBtinyISP.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
plslet
 
Posts: 4
Joined: Mon Sep 18, 2017 1:06 pm

Repairing Bootloader - Adafruit Trinket

Post by plslet »

Okay - it seems like I've messed up the bootloader. My trinket (5v,16mhz) activates the power light but not the red light when connected to a computer.

I know about this;
https://learn.adafruit.com/introducing- ... bootloader

But I don't have an arduino uno - is there a way to repair the bootloader without it?

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: Repairing Bootloader - Adafruit Trinket

Post by adafruit_support_carter »

You'll need something to program it. What do you have?

User avatar
plslet
 
Posts: 4
Joined: Mon Sep 18, 2017 1:06 pm

Re: Repairing Bootloader - Adafruit Trinket

Post by plslet »

adafruit_support_carter wrote:You'll need something to program it. What do you have?
Well - nothing besides a computer really (Windows 10 or MacOS Sierra). I'm sort of looking for the easiest/cheapest/most convenient way to do it.

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: Repairing Bootloader - Adafruit Trinket

Post by adafruit_support_carter »

Hmmm. No way then with out some additional hardware. What did you do to potentially corrupt the bootloader?

User avatar
plslet
 
Posts: 4
Joined: Mon Sep 18, 2017 1:06 pm

Re: Repairing Bootloader - Adafruit Trinket

Post by plslet »

adafruit_support_carter wrote:Hmmm. No way then with out some additional hardware. What did you do to potentially corrupt the bootloader?
So what options do I have? Could you list what hardware is needed?

I'm not sure what I did - some program made the trinket go in a bootloader loop so I just pulled the usb out. The trinket kept working afterwars though (multiple times). I guess one time I just hit the sweet spot for it to not work.

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: Repairing Bootloader - Adafruit Trinket

Post by adafruit_support_carter »

You need an AVR ISP Programmer. The guide you linked shows how to use an Arduino UNO to act like. It can also be done with a Raspberry Pi:
https://learn.adafruit.com/program-an-a ... s/overview
The other option would be to use a dedicated programmer like the one here:
https://learn.adafruit.com/mass-avr-isp-programmer
but there are other options out there, like the AVR Dragon. But obviously this hardware is more expensive than a replacement Trinket and is special purpose. If you wanted to try to repair the Trinket, I'd suggest going the Arduino UNO route and you could use the UNO for many other applications.

User avatar
plslet
 
Posts: 4
Joined: Mon Sep 18, 2017 1:06 pm

Re: Repairing Bootloader - Adafruit Trinket

Post by plslet »

adafruit_support_carter wrote:You need an AVR ISP Programmer. The guide you linked shows how to use an Arduino UNO to act like. It can also be done with a Raspberry Pi:
https://learn.adafruit.com/program-an-a ... s/overview
The other option would be to use a dedicated programmer like the one here:
https://learn.adafruit.com/mass-avr-isp-programmer
but there are other options out there, like the AVR Dragon. But obviously this hardware is more expensive than a replacement Trinket and is special purpose. If you wanted to try to repair the Trinket, I'd suggest going the Arduino UNO route and you could use the UNO for many other applications.
Why can I not use another trinket (Why must it be PI or UNO) to act like an AVR ISP Programmer?
Could I just not mess up the UNO too and have two bricks laying around?

From what I can see, the UNO is more expensive than the programmer (https://www.adafruit.com/product/50 and https://www.adafruit.com/product/46). I don't want to spend a bunch of money and end up with the same problem again!

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

Return to “USBtinyISP”