0

Pro Trinket Bootloader Problems
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Pro Trinket Bootloader Problems

by pandaeggs on Thu Apr 25, 2019 12:00 am

I just started with the pro trinket 5V and have run into the issue where the bootloader won't start when I plug it in. I was uploading code fine before I attached all of my pins then the red light stopped blinking and I couldn't upload. I tried reprogramming the bootloader but I am getting this error in my serial monitor:
Code: Select all | TOGGLE FULL SIZE
Type 'G' or hit BUTTON for next chip
Starting Program Mode [OK]

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


I am using this link to reprogram the bootloader: https://learn.adafruit.com/introducing- ... bootloader

I still have a few things plugged into the front but I either don't use those pins or the ground side of the pin is pulled out (11 and 13 are connected to LEDs with no ground now). I also have the lipoly backpack on the vBAT pin but I don't think that would affect anything.

I also found another forum where they talked about this. I got the code:
Code: Select all | TOGGLE FULL SIZE
const image_t PROGMEM image_328 = {
    {"trinket_5V_2015_03_17.hex"},
    {"atmega328"},
//    0x950F,            /* Signature bytes for 328P */
    0x0200,            /* New signature */
    {0x3F, 0xFF, 0xD0, 0x05},           // pre program fuses (prot/lock, low, high, ext)
    {0x0F, 0x00, 0x00, 0x00},           // post program fuses
    {0x3F, 0xFF, 0xFF, 0x07},           // fuse mask
    31868,     // size of chip flash in bytes
    128,   // size in bytes of flash page
    {


And my first error passed but then I got a new error:

Code: Select all | TOGGLE FULL SIZE
Adafruit Trinket 3V programmer - June 9 2015

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

Reading signature:200
Searching for image...
Found "trinket_3V_2015_03_17.hex" for atmega328

Setting fuses
Set Lock Fuse to: 3F -> 3F Set Low Fuse to: FF -> FF Set High Fuse to: D0 -> D0 Set Ext Fuse to: 5 -> 5
Verifying fuses...
Lock Fuse: 3F is 0Failed to verify fuses


I attached a photo of my reprogramming. Please let me know if you can help.

Thanks,
Emory
Attachments
IMG_6776.jpg
IMG_6776.jpg (676.12 KiB) Viewed 125 times
Last edited by pandaeggs on Thu Apr 25, 2019 1:32 am, edited 1 time in total.

pandaeggs
 
Posts: 5
Joined: Mon Nov 26, 2018 6:53 pm

Re: Pro Trinket Bootloader Problems

by pandaeggs on Thu Apr 25, 2019 12:21 am

I just saw that I had switched pin 11 and 12 and corrected that. I still am getting the same error though.

pandaeggs
 
Posts: 5
Joined: Mon Nov 26, 2018 6:53 pm

Re: Pro Trinket Bootloader Problems

by adafruit_support_mike on Sun Apr 28, 2019 3:22 am

The Trinket bootloader is written for a different microcontroller (the Trinket's ATtiny85, not the Pro Trinket's ATmega328), so trying to repair the bootloader that way won't work. You'd need an in-circuit programmer for the Pro Trinket.

It's also a lot harder to corrupt the Pro Trinket's bootloader, since that lives in a section of memory that's configured read-only after the chip is programmed. The ATtiny85 doesn't have that option, so it's possible to mess up the bootloader with regular communication and some bad signal timing.

The Pro Trinket's bootloader doesn't start automatically, and the board will never show up as a Serial Port in the Arduino IDE. It doesn't have any real USB hardware, the bootloader just emulates a low-speed USB connection long enough to upload the firmware. You always have to click the reset button to launch the bootloader before doing an upload.

adafruit_support_mike
 
Posts: 57856
Joined: Thu Feb 11, 2010 2:51 pm

Please be positive and constructive with your questions and comments.