I'd like to disable the trinket 10-second bootloader when powered up, so it will just begin running the program. I would still like to be able to press the reset button to re-program it.
I found an edited version of the bootloader here. Currently, I am using an Arduino Uno and the 'repair the bootloader' sketch to load the hex to the trinket. The default hex is hard coded in the
images.cpp file and the same hex is included in the Adafruit bootloader GitHub as
How can I compile the forked copy to get the final compiled hex that can be burnt into the trinket?
I get this error when I upload to the board, how did you flash yours?
Setting fuses Set Low Fuse to: F1 -> A000 Set High Fuse to: D5 -> A800 Set Ext Fuse to: 6 -> A400 Verifying fuses... Low Fuse: 0xF1 is 0xF1 High Fuse: 0xD5 is 0xD5 Ext Fuse: 0x6 is 0x6 Setting fuses Verifying flash... verification error at address 0x14C0 Should be 0x33 not 0x5F Failed to verify chip
The fuses are set correctly, but it cannot verify the flash. The supplied Adafruit hex looks like about 93 lines of:
Where the updated, compiled hex is about 181 lines of:
Does the length of each line matter? The output of a successful flash looks like:
Verifying fuses... Low Fuse: 0xF1 is 0xF1 High Fuse: 0xD5 is 0xD5 Ext Fuse: 0x6 is 0x6 Setting fuses Verifying flash... Flash verified correctly! Verifying fuses... Fuses verified correctly! *OK!*