0

Repairing Bootloader - Adafruit Trinket
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Repairing Bootloader - Adafruit Trinket

by plslet on Mon Sep 18, 2017 1:09 pm

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-trinket/repairing-bootloader

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

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

Re: Repairing Bootloader - Adafruit Trinket

by adafruit_support_carter on Mon Sep 18, 2017 1:59 pm

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

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

Re: Repairing Bootloader - Adafruit Trinket

by plslet on Mon Sep 18, 2017 2:08 pm

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.

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

Re: Repairing Bootloader - Adafruit Trinket

by adafruit_support_carter on Mon Sep 18, 2017 7:00 pm

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

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

Re: Repairing Bootloader - Adafruit Trinket

by plslet on Tue Sep 19, 2017 2:51 am

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.

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

Re: Repairing Bootloader - Adafruit Trinket

by adafruit_support_carter on Tue Sep 19, 2017 10:25 am

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.

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

Re: Repairing Bootloader - Adafruit Trinket

by plslet on Tue Sep 19, 2017 11:49 am

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!

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

Please be positive and constructive with your questions and comments.