Re: Trinket: how to stop bootloader mode on power up?

by pooldr on Wed Oct 09, 2013 10:26 am

Rick,

Thanks for reply.
Went into IDE and tried to download, came up with errors and Trinket went back into Bootloader mode.
So, i followed next instruction, and found the hex file, wow, long path, lol.

Used AVR to flash, looks like it went through as bootloader has gone, and blink code is no longer running.

Need to connect to I/O now, will see how this goes today.

I hope this thread helps others,

thanks

Doug
pooldr
 
Posts: 16
Joined: Mon Sep 30, 2013 7:56 am
Location: Philadelphia

Re: Trinket: how to stop bootloader mode on power up?

by pooldr on Wed Oct 09, 2013 11:23 am

Nope,

AVR tries to download, however, it reports,

avrdude: veriification error, first mismatch at byte 0x0047
avrdude: veriification error, content mismatch

Red led is now blinking 4 times a second, i guess this reflects the error.?

I noticed when i compile with compilation checked in preferences, avrdude has many red lines, i guess errors, to many to paste in here.

As it stands, it seems to me that avrdude.conf and avrdude.exe just don't work, i also note that there are at least 30+ versions out there on WEB.

Which one should your customers use, the conf file on adafruit obviously doesn't work, as i have never got this far before using it.

Getting very frustrated here, it shouldn't be this difficult.
pooldr
 
Posts: 16
Joined: Mon Sep 30, 2013 7:56 am
Location: Philadelphia

Re: Trinket: how to stop bootloader mode on power up?

by adafruit_support_rick on Wed Oct 09, 2013 1:55 pm

Are you using the -D option in avrdude? See what happens without it.
User avatar
adafruit_support_rick
 
Posts: 8613
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: Trinket: how to stop bootloader mode on power up?

by pooldr on Wed Oct 09, 2013 2:40 pm

Rick,

I may have cracked it,..

download, http://download.savannah.gnu.org/releas ... -win32.zip

Put both .conf and .exe files into WinAVR folder.

Create HEX file from IDE and navigate to that folder. Enter bootloader, then...

First i used,
' avrdude -c usbtiny -p attiny85 -U flash:w:trinketblink.cpp.hex '

then immediately after, use this,
' avrdude -c usbtiny -p attiny85 -D -U flash:w:trinketblink.cpp.hex '

seem to do the trick, i have loaded 3 different sketches.

ahhh, success at last :D

thanks for your help
pooldr
 
Posts: 16
Joined: Mon Sep 30, 2013 7:56 am
Location: Philadelphia

Re: Trinket: how to stop bootloader mode on power up?

by pooldr on Wed Oct 09, 2013 8:37 pm

Guys,

@adafruit, i appreciate your help, i enjoy the challenge, the steps to achieve it, most importantly the success of my projects. cheers,


thank you..

Doug
N3NZZ
pooldr
 
Posts: 16
Joined: Mon Sep 30, 2013 7:56 am
Location: Philadelphia

Re: Trinket: how to stop bootloader mode on power up?

by adafruit_support_rick on Thu Oct 10, 2013 6:06 am

Glad you got it going, but it shouldn't be that tough. :oops:
We're working on these bootloader issues - for whatever reason, they are specific to Windows. We don't see these problems with MacOSX or Linux. :?
User avatar
adafruit_support_rick
 
Posts: 8613
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY