Hey, are you using Windows and having verification errors?

Adafruit's tiny microcontroller platform. Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Hey, are you using Windows and having verification errors?

Post by adafruit »

We'd like to track down the trinket/gemma verification error bug that some customers are seeing. we can't reproduce the bug - all our gemma/trinkets work great on all our computers and its a small number of customers (percentagewize!) so its hard to chase down the issue. we'd like to start with windows customers first

if you're having lots of verification errors, as in you cannot upload via the Arduino IDE and you are a windows user please help us out! answer these q's and we'll figure it out together :)

1) what exact version of windows are you using? win7, win7 64, vista, win 8, win 8.1...etc
2) what exact product is it? trinket 3v, trinket 5v or gemma?
3) can you paste the avrdude error?
4) if you edit the avrdude.conf file and change the 900000 to 400000, does that fix things? http://learn.adafruit.com/introducing-trinket/faq#faq-3
5) how about if you update your avrdude to this version attached here, does that fix things?
6) did none of those things help?

Thanks looks like this solves many people's problems, and we got a lot of feedback. to keep this from turning into a general-purpose thread i'm locking now. make a new thread if you need help!
Attachments
avrdudetrinket11513.zip
(380.36 KiB) Downloaded 1517 times

User avatar
n0rd
 
Posts: 3
Joined: Fri Oct 18, 2013 9:53 am

Re: Hey, are you using Windows and having verification error

Post by n0rd »

1) what exact version of windows are you using?
Windows 7 Ultimate, 64-bit (Service Pack 1).
Arduino 1.0.5 (Clean zipped version not .exe with this driver and the steps on this page done (ie Added ATtiny85 Support, Updated 'avrdude.conf' and Updated 'ld.exe')
2) what exact product is it?
Tinket 5V
3) can you paste the avrdude error?

Code: Select all

avrdude: error: usbtiny_receive: usb_control_msg: sending control message failed, win error: The device does not recognize the command. (expected 4, got -5)
After getting this message, Trinket will cycle in boot-mode indefinitely. (Windows device plug/unplug sounds occur seemingly in random order every 5 or so seconds).
4) if you edit the avrdude.conf file and change the 900000 to 400000, does that fix things?
Yes but message (above) is still displayed however Trinket gets programmed (tested only with "Blink" sketch).
5) how about if you update your avrdude to this version attached here, does that fix things?
With 'chip_erase_delay' set back to 900000 it fails with the following message:

Code: Select all

avrdude: TRINKET BOOTLOADER SELECTED

avrdude: verification error, first mismatch at byte 0x0000
         0xff != 0x20
avrdude: verification error; content mismatch
With 'chip_erase_delay' set to 400000 it works with the following message:

Code: Select all

avrdude: TRINKET BOOTLOADER SELECTED

avrdude: TRINKET BOOTLOADER SELECTED
Hope this helps

- Steve

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: Hey, are you using Windows and having verification error

Post by adafruit »

OK, steve, so for you, *both* are required to have a clean programming experience. thanks for the notice!

User avatar
n0rd
 
Posts: 3
Joined: Fri Oct 18, 2013 9:53 am

Re: Hey, are you using Windows and having verification error

Post by n0rd »

Can't find post edit so I'll just add this here in case it helps someone:

Windows was booted with "Disable Driver Signature Enforcement" mode. (Press F8 when Windows is booting up until you get the Advanced Boot Options menu, then select "Disable Driver Signature Enforcement").

Without this I would constantly get the error message:

Code: Select all

avrdude: Error: Could not find USBtiny device (0x1781/0xc9f)

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: Hey, are you using Windows and having verification error

Post by adafruit »

n0rd, that is a driver problem, not a verification error. this thread is for debugging verification errors, only. thanks!

User avatar
languer
 
Posts: 98
Joined: Fri May 17, 2013 2:02 pm

Re: Hey, are you using Windows and having verification error

Post by languer »

1) what exact version of windows are you using? win, win7 64, vista, win 8, win 8.1...etc
-> XP PRO
2) what exact product is it? trinket 3v, trinket 5v or gemma?
-> Trinket 3V
3) can you paste the avrdude error?
-> Same as n0rd
4) if you edit the avrdude.conf file and change the 900000 to 400000, does that fix things? http://learn.adafruit.com/introducing-trinket/faq#faq-3
-> exact same results as n0rd
5) how about if you update your avrdude to this version attached here, does that fix things?
-> exact same results as n0rd ==> YAY IT WORKS
6) did none of those things help?
==> Doing both got me from a very cumbersome programming (using command line, -D, and all that stuff), to a working Arduino IDE + Trinket combination. Many thanks !!!

User avatar
mtb369
 
Posts: 3
Joined: Tue Jul 23, 2013 2:30 pm

Re: Hey, are you using Windows and having verification error

Post by mtb369 »

1) what exact version of windows are you using?
Win7 Home Premium SP1 64-bit
Arduino 1.0.5
Using the 1.2.1 USBTiny Driver
Updated avrdude.conf
Updated avr-ld
2) what exact product is it? trinket 3v, trinket 5v or gemma?
This is a Trinket 5v
3) can you paste the avrdude error?
Sure, from avrdude:

Code: Select all

C:\Users\Marc>avrdude -c usbtiny -p attiny85
avrdude: TRINKET BOOTLOADER SELECTED
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.03s

avrdude: Device signature = 0x1e930b
avrdude: safemode: Fuses OK
avrdude done.  Thank you.
Which all looks fine and dandy, when I try to upload from Arduino, I get this:

Code: Select all

avrdude: error: usbtiny_receive: usb_control_msg: sending control message failed, win error: A device attached to the system is not functioning.

 (expected 4, got -5)
avrdude: verification error, first mismatch at byte 0x0000
         0x20 != 0x00
avrdude: verification error; content mismatch
This happens plugged directly into the laptop, and also when it's attached through a USB hub.
4) if you edit the avrdude.conf file and change the 900000 to 400000, does that fix things?
No. I've tried a couple different settings, from 300000 to 900000. Hasn't made a difference that I can tell.
5) how about if you update your avrdude to this version attached here, does that fix things?
I am currently using

Code: Select all

C:\Users\Marc>avrdude -v
avrdude: Version 5.11svn-20111019, compiled on Oct  9 2013 at 11:48:15
Previously, I'd been using this version:

Code: Select all

C:\Users\Marc>avrdude -v
avrdude: Version 5.11-Patch#7610, compiled on Aug 31 2011 at 08:02:19
6) did none of those things help?
Unfortunately no. Though I have faith that we'll sort this out. Adafruit hasn't steered me wrong yet, and I doubt you'll start any time soon.
Last edited by mtb369 on Fri Nov 08, 2013 11:57 am, edited 1 time in total.

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: Hey, are you using Windows and having verification error

Post by adafruit »

mtb369, please turn on VERBOSE UPLOADING (in Arduino IDE preferences) and post the entire output from trying to upload blink sketch to a trinket

User avatar
mtb369
 
Posts: 3
Joined: Tue Jul 23, 2013 2:30 pm

Re: Hey, are you using Windows and having verification error

Post by mtb369 »

Hello again.

As per your request, I've enabled the verbose uploading. I tried uploading it a number of times, just to make sure I was getting a consistent error. I managed to get two errors. One of which I've not been able to reproduce, so I don't know if it's important, or was just a hiccup.

This is what I've seen every time but once:
(Also, it seems like it says more at the beginning of the upload, but may be getting cut off.)

Code: Select all

CMD: [40 00 11 b1] [00 00 00 00]
CMD: [48 00 11 1d] [00 00 00 00]
CMD: [40 00 12 80] [00 00 00 00]
CMD: [48 00 12 93] [00 00 00 00]
CMD: [40 00 13 62] [00 00 00 00]
CMD: [48 00 13 00] [00 00 00 00]
CMD: [40 00 14 90] [00 00 00 00]
CMD: [48 00 14 93] [00 00 00 00]
CMD: [40 00 15 63] [00 00 00 00]
CMD: [48 00 15 00] [00 00 00 00]
#CMD: [40 00 16 a0] [00 00 00 00]
CMD: [48 00 16 93] [00 00 00 00]
CMD: [40 00 17 64] [00 00 00 00]
CMD: [48 00 17 00] [00 00 00 00]
CMD: [40 00 18 b0] [00 00 00 00]
CMD: [48 00 18 93] [00 00 00 00]
CMD: [40 00 19 65] [00 00 00 00]
CMD: [48 00 19 00] [00 00 00 00]
CMD: [40 00 1a bf] [00 00 00 00]
CMD: [48 00 1a 91] [00 00 00 00]
CMD: [40 00 1b af] [00 00 00 00]
CMD: [48 00 1b 91] [00 00 00 00]
CMD: [40 00 1c 9f] [00 00 00 00]
CMD: [48 00 1c 91] [00 00 00 00]
CMD: [40 00 1d 8f] [00 00 00 00]
CMD: [48 00 1d 91] [00 00 00 00]
CMD: [40 00 1e 7f] [00 00 00 00]
#CMD: [48 00 1e 91] [00 00 00 00]
CMD: [40 00 1f 6f] [00 00 00 00]
CMD: [48 00 1f 91] [00 00 00 00]
CMD: [4c 00 80 00] [00 00 00 00]
CMD: [40 00 00 5f] [00 00 00 00]
CMD: [48 00 00 91] [00 00 00 00]
CMD: [40 00 01 4f] [00 00 00 00]
CMD: [48 00 01 91] [00 00 00 00]
CMD: [40 00 02 3f] [00 00 00 00]
CMD: [48 00 02 91] [00 00 00 00]
CMD: [40 00 03 2f] [00 00 00 00]
CMD: [48 00 03 91] [00 00 00 00]
CMD: [40 00 04 0f] [00 00 00 00]
CMD: [48 00 04 90] [00 00 00 00]
CMD: [40 00 05 0f] [00 00 00 00]
CMD: [48 00 05 be] [00 00 00 00]
CMD: [40 00 06 0f] [00 00 00 00]
#CMD: [48 00 06 90] [00 00 00 00]
CMD: [40 00 07 1f] [00 00 00 00]
CMD: [48 00 07 90] [00 00 00 00]
CMD: [40 00 08 18] [00 00 00 00]
CMD: [48 00 08 95] [00 00 00 00]
CMD: [40 00 09 9b] [00 00 00 00]
CMD: [48 00 09 01] [00 00 00 00]
CMD: [40 00 0a ac] [00 00 00 00]
CMD: [48 00 0a 01] [00 00 00 00]
CMD: [40 00 0b 7f] [00 00 00 00]
CMD: [48 00 0b b7] [00 00 00 00]
CMD: [40 00 0c f8] [00 00 00 00]
CMD: [48 00 0c 94] [00 00 00 00]
CMD: [40 00 0d 80] [00 00 00 00]
CMD: [48 00 0d 91] [00 00 00 00]
CMD: [40 00 0e 62] [00 00 00 00]
CMD: [48 00 0e 00] [00 00 00 00]
#CMD: [40 00 0f 90] [00 00 00 00]
CMD: [48 00 0f 91] [00 00 00 00]
CMD: [40 00 10 63] [00 00 00 00]
CMD: [48 00 10 00] [00 00 00 00]
CMD: [40 00 11 a0] [00 00 00 00]
CMD: [48 00 11 91] [00 00 00 00]
CMD: [40 00 12 64] [00 00 00 00]
CMD: [48 00 12 00] [00 00 00 00]
CMD: [40 00 13 b0] [00 00 00 00]
CMD: [48 00 13 91] [00 00 00 00]
CMD: [40 00 14 65] [00 00 00 00]
CMD: [48 00 14 00] [00 00 00 00]
CMD: [40 00 15 62] [00 00 00 00]
CMD: [48 00 15 b7] [00 00 00 00]
CMD: [40 00 16 08] [00 00 00 00]
CMD: [48 00 16 b6] [00 00 00 00]
CMD: [40 00 17 01] [00 00 00 00]
#CMD: [48 00 17 fe] [00 00 00 00]
CMD: [40 00 18 05] [00 00 00 00]
CMD: [48 00 18 c0] [00 00 00 00]
CMD: [40 00 19 6f] [00 00 00 00]
CMD: [48 00 19 3f] [00 00 00 00]
CMD: [40 00 1a 19] [00 00 00 00]
CMD: [48 00 1a f0] [00 00 00 00]
CMD: [40 00 1b 01] [00 00 00 00]
CMD: [48 00 1b 96] [00 00 00 00]
CMD: [40 00 1c a1] [00 00 00 00]
CMD: [48 00 1c 1d] [00 00 00 00]
CMD: [40 00 1d b1] [00 00 00 00]
CMD: [48 00 1d 1d] [00 00 00 00]
CMD: [40 00 1e 7f] [00 00 00 00]
CMD: [48 00 1e bf] [00 00 00 00]
CMD: [40 00 1f ba] [00 00 00 00]
#CMD: [48 00 1f 2f] [00 00 00 00]
CMD: [4c 00 a0 00] [00 00 00 00]
CMD: [40 00 00 a9] [00 00 00 00]
CMD: [48 00 00 2f] [00 00 00 00]
CMD: [40 00 01 98] [00 00 00 00]
CMD: [48 00 01 2f] [00 00 00 00]
CMD: [40 00 02 88] [00 00 00 00]
CMD: [48 00 02 27] [00 00 00 00]
CMD: [40 00 03 86] [00 00 00 00]
CMD: [48 00 03 0f] [00 00 00 00]
CMD: [40 00 04 91] [00 00 00 00]
CMD: [48 00 04 1d] [00 00 00 00]
CMD: [40 00 05 a1] [00 00 00 00]
CMD: [48 00 05 1d] [00 00 00 00]
CMD: [40 00 06 b1] [00 00 00 00]
CMD: [48 00 06 1d] [00 00 00 00]
CMD: [40 00 07 63] [00 00 00 00]
CMD: [48 00 07 e0] [00 00 00 00]
#CMD: [40 00 08 88] [00 00 00 00]
CMD: [48 00 08 0f] [00 00 00 00]
CMD: [40 00 09 99] [00 00 00 00]
CMD: [48 00 09 1f] [00 00 00 00]
CMD: [40 00 0a aa] [00 00 00 00]
CMD: [48 00 0a 1f] [00 00 00 00]
CMD: [40 00 0b bb] [00 00 00 00]
CMD: [48 00 0b 1f] [00 00 00 00]
CMD: [40 00 0c 6a] [00 00 00 00]
CMD: [48 00 0c 95] [00 00 00 00]
CMD: [40 00 0d d1] [00 00 00 00]
CMD: [48 00 0d f7] [00 00 00 00]
CMD: [40 00 0e bc] [00 00 00 00]
CMD: [48 00 0e 01] [00 00 00 00]
CMD: [40 00 0f 2e] [00 00 00 00]
CMD: [48 00 0f c0] [00 00 00 00]
#CMD: [40 00 10 ff] [00 00 00 00]
CMD: [48 00 10 b7] [00 00 00 00]
CMD: [40 00 11 f8] [00 00 00 00]
CMD: [48 00 11 94] [00 00 00 00]
CMD: [40 00 12 80] [00 00 00 00]
CMD: [48 00 12 91] [00 00 00 00]
CMD: [40 00 13 62] [00 00 00 00]
CMD: [48 00 13 00] [00 00 00 00]
CMD: [40 00 14 90] [00 00 00 00]
CMD: [48 00 14 91] [00 00 00 00]
CMD: [40 00 15 63] [00 00 00 00]
CMD: [48 00 15 00] [00 00 00 00]
CMD: [40 00 16 a0] [00 00 00 00]
CMD: [48 00 16 91] [00 00 00 00]
CMD: [40 00 17 64] [00 00 00 00]
CMD: [48 00 17 00] [00 00 00 00]
CMD: [40 00 18 b0] [00 00 00 00]
#CMD: [48 00 18 91] [00 00 00 00]
CMD: [40 00 19 65] [00 00 00 00]
CMD: [48 00 19 00] [00 00 00 00]
CMD: [40 00 1a e2] [00 00 00 00]
CMD: [48 00 1a b7] [00 00 00 00]
CMD: [40 00 1b 08] [00 00 00 00]
CMD: [48 00 1b b6] [00 00 00 00]
CMD: [40 00 1c 01] [00 00 00 00]
CMD: [48 00 1c fe] [00 00 00 00]
CMD: [40 00 1d 05] [00 00 00 00]
CMD: [48 00 1d c0] [00 00 00 00]
CMD: [40 00 1e ef] [00 00 00 00]
CMD: [48 00 1e 3f] [00 00 00 00]
CMD: [40 00 1f 19] [00 00 00 00]
CMD: [48 00 1f f0] [00 00 00 00]
CMD: [4c 00 c0 00] [00 00 00 00]
CMD: [40 00 00 01] [00 00 00 00]
CMD: [48 00 00 96] [00 00 00 00]
#CMD: [40 00 01 a1] [00 00 00 00]
CMD: [48 00 01 1d] [00 00 00 00]
CMD: [40 00 02 b1] [00 00 00 00]
CMD: [48 00 02 1d] [00 00 00 00]
CMD: [40 00 03 ff] [00 00 00 00]
CMD: [48 00 03 bf] [00 00 00 00]
CMD: [40 00 04 ba] [00 00 00 00]
CMD: [48 00 04 2f] [00 00 00 00]
CMD: [40 00 05 a9] [00 00 00 00]
CMD: [48 00 05 2f] [00 00 00 00]
CMD: [40 00 06 98] [00 00 00 00]
CMD: [48 00 06 2f] [00 00 00 00]
CMD: [40 00 07 88] [00 00 00 00]
CMD: [48 00 07 27] [00 00 00 00]
CMD: [40 00 08 8e] [00 00 00 00]
CMD: [48 00 08 0f] [00 00 00 00]
#CMD: [40 00 09 91] [00 00 00 00]
CMD: [48 00 09 1d] [00 00 00 00]
CMD: [40 00 0a a1] [00 00 00 00]
CMD: [48 00 0a 1d] [00 00 00 00]
CMD: [40 00 0b b1] [00 00 00 00]
CMD: [48 00 0b 1d] [00 00 00 00]
CMD: [40 00 0c e3] [00 00 00 00]
CMD: [48 00 0c e0] [00 00 00 00]
CMD: [40 00 0d 88] [00 00 00 00]
CMD: [48 00 0d 0f] [00 00 00 00]
CMD: [40 00 0e 99] [00 00 00 00]
CMD: [48 00 0e 1f] [00 00 00 00]
CMD: [40 00 0f aa] [00 00 00 00]
CMD: [48 00 0f 1f] [00 00 00 00]
CMD: [40 00 10 bb] [00 00 00 00]
CMD: [48 00 10 1f] [00 00 00 00]
CMD: [40 00 11 ea] [00 00 00 00]
#CMD: [48 00 11 95] [00 00 00 00]
CMD: [40 00 12 d1] [00 00 00 00]
CMD: [48 00 12 f7] [00 00 00 00]
CMD: [40 00 13 86] [00 00 00 00]
CMD: [48 00 13 1b] [00 00 00 00]
CMD: [40 00 14 97] [00 00 00 00]
CMD: [48 00 14 0b] [00 00 00 00]
CMD: [40 00 15 88] [00 00 00 00]
CMD: [48 00 15 5e] [00 00 00 00]
CMD: [40 00 16 93] [00 00 00 00]
CMD: [48 00 16 40] [00 00 00 00]
CMD: [40 00 17 c0] [00 00 00 00]
CMD: [48 00 17 f2] [00 00 00 00]
CMD: [40 00 18 21] [00 00 00 00]
CMD: [48 00 18 50] [00 00 00 00]
CMD: [40 00 19 30] [00 00 00 00]
CMD: [48 00 19 40] [00 00 00 00]
#CMD: [40 00 1a 40] [00 00 00 00]
CMD: [48 00 1a 40] [00 00 00 00]
CMD: [40 00 1b 50] [00 00 00 00]
CMD: [48 00 1b 40] [00 00 00 00]
CMD: [40 00 1c 68] [00 00 00 00]
CMD: [48 00 1c 51] [00 00 00 00]
CMD: [40 00 1d 7c] [00 00 00 00]
CMD: [48 00 1d 4f] [00 00 00 00]
CMD: [40 00 1e 21] [00 00 00 00]
CMD: [48 00 1e 15] [00 00 00 00]
CMD: [40 00 1f 31] [00 00 00 00]
CMD: [48 00 1f 05] [00 00 00 00]
CMD: [4c 00 e0 00] [00 00 00 00]
CMD: [40 00 00 41] [00 00 00 00]
CMD: [48 00 00 05] [00 00 00 00]
CMD: [40 00 01 51] [00 00 00 00]
CMD: [48 00 01 05] [00 00 00 00]
#CMD: [40 00 02 69] [00 00 00 00]
CMD: [48 00 02 f6] [00 00 00 00]
CMD: [40 00 03 08] [00 00 00 00]
CMD: [48 00 03 95] [00 00 00 00]
CMD: [40 00 04 78] [00 00 00 00]
CMD: [48 00 04 94] [00 00 00 00]
CMD: [40 00 05 8a] [00 00 00 00]
CMD: [48 00 05 b5] [00 00 00 00]
CMD: [40 00 06 82] [00 00 00 00]
CMD: [48 00 06 60] [00 00 00 00]
CMD: [40 00 07 8a] [00 00 00 00]
CMD: [48 00 07 bd] [00 00 00 00]
CMD: [40 00 08 8a] [00 00 00 00]
CMD: [48 00 08 b5] [00 00 00 00]
CMD: [40 00 09 81] [00 00 00 00]
CMD: [48 00 09 60] [00 00 00 00]
CMD: [40 00 0a 8a] [00 00 00 00]
#CMD: [48 00 0a bd] [00 00 00 00]
CMD: [40 00 0b 83] [00 00 00 00]
CMD: [48 00 0b b7] [00 00 00 00]
CMD: [40 00 0c 82] [00 00 00 00]
CMD: [48 00 0c 60] [00 00 00 00]
CMD: [40 00 0d 83] [00 00 00 00]
CMD: [48 00 0d bf] [00 00 00 00]
CMD: [40 00 0e 83] [00 00 00 00]
CMD: [48 00 0e b7] [00 00 00 00]
CMD: [40 00 0f 81] [00 00 00 00]
CMD: [48 00 0f 60] [00 00 00 00]
CMD: [40 00 10 83] [00 00 00 00]
CMD: [48 00 10 bf] [00 00 00 00]
CMD: [40 00 11 89] [00 00 00 00]
CMD: [48 00 11 b7] [00 00 00 00]
CMD: [40 00 12 82] [00 00 00 00]
CMD: [48 00 12 60] [00 00 00 00]
#CMD: [40 00 13 89] [00 00 00 00]
CMD: [48 00 13 bf] [00 00 00 00]
CMD: [40 00 14 80] [00 00 00 00]
CMD: [48 00 14 b7] [00 00 00 00]
CMD: [40 00 15 82] [00 00 00 00]
CMD: [48 00 15 60] [00 00 00 00]
CMD: [40 00 16 80] [00 00 00 00]
CMD: [48 00 16 bf] [00 00 00 00]
CMD: [40 00 17 80] [00 00 00 00]
CMD: [48 00 17 b7] [00 00 00 00]
CMD: [40 00 18 81] [00 00 00 00]
CMD: [48 00 18 60] [00 00 00 00]
CMD: [40 00 19 80] [00 00 00 00]
CMD: [48 00 19 bf] [00 00 00 00]
CMD: [40 00 1a 32] [00 00 00 00]
CMD: [48 00 1a 9a] [00 00 00 00]
#CMD: [40 00 1b 31] [00 00 00 00]
CMD: [48 00 1b 9a] [00 00 00 00]
CMD: [40 00 1c 30] [00 00 00 00]
CMD: [48 00 1c 9a] [00 00 00 00]
CMD: [40 00 1d 37] [00 00 00 00]
CMD: [48 00 1d 9a] [00 00 00 00]
CMD: [40 00 1e 08] [00 00 00 00]
CMD: [48 00 1e 95] [00 00 00 00]
CMD: [40 00 1f cf] [00 00 00 00]
CMD: [48 00 1f 93] [00 00 00 00]
CMD: [4c 01 00 00] [00 00 01 00]
CMD: [40 00 00 df] [00 00 00 00]
CMD: [48 00 00 93] [00 00 00 00]
CMD: [40 00 01 48] [00 00 00 00]
CMD: [48 00 01 2f] [00 00 00 00]
CMD: [40 00 02 50] [00 00 00 00]
CMD: [48 00 02 e0] [00 00 00 00]
CMD: [40 00 03 ca] [00 00 00 00]
#CMD: [48 00 03 01] [00 00 00 00]
CMD: [40 00 04 8a] [00 00 00 00]
CMD: [48 00 04 5c] [00 00 00 00]
CMD: [40 00 05 9f] [00 00 00 00]
CMD: [48 00 05 4f] [00 00 00 00]
CMD: [40 00 06 fc] [00 00 00 00]
CMD: [48 00 06 01] [00 00 00 00]
CMD: [40 00 07 34] [00 00 00 00]
CMD: [48 00 07 91] [00 00 00 00]
CMD: [40 00 08 40] [00 00 00 00]
CMD: [48 00 08 5d] [00 00 00 00]
CMD: [40 00 09 5f] [00 00 00 00]
CMD: [48 00 09 4f] [00 00 00 00]
CMD: [40 00 0a fa] [00 00 00 00]
CMD: [48 00 0a 01] [00 00 00 00]
CMD: [40 00 0b 84] [00 00 00 00]
CMD: [48 00 0b 91] [00 00 00 00]
#CMD: [40 00 0c 88] [00 00 00 00]
CMD: [48 00 0c 23] [00 00 00 00]
CMD: [40 00 0d 69] [00 00 00 00]
CMD: [48 00 0d f1] [00 00 00 00]
CMD: [40 00 0e 90] [00 00 00 00]
CMD: [48 00 0e e0] [00 00 00 00]
CMD: [40 00 0f 88] [00 00 00 00]
CMD: [48 00 0f 0f] [00 00 00 00]
CMD: [40 00 10 99] [00 00 00 00]
CMD: [48 00 10 1f] [00 00 00 00]
CMD: [40 00 11 fc] [00 00 00 00]
CMD: [48 00 11 01] [00 00 00 00]
CMD: [40 00 12 e2] [00 00 00 00]
CMD: [48 00 12 5e] [00 00 00 00]
CMD: [40 00 13 ff] [00 00 00 00]
CMD: [48 00 13 4f] [00 00 00 00]
#CMD: [40 00 14 a5] [00 00 00 00]
CMD: [48 00 14 91] [00 00 00 00]
CMD: [40 00 15 b4] [00 00 00 00]
CMD: [48 00 15 91] [00 00 00 00]
CMD: [40 00 16 fc] [00 00 00 00]
CMD: [48 00 16 01] [00 00 00 00]
CMD: [40 00 17 ec] [00 00 00 00]
CMD: [48 00 17 5d] [00 00 00 00]
CMD: [40 00 18 ff] [00 00 00 00]
CMD: [48 00 18 4f] [00 00 00 00]
CMD: [40 00 19 c5] [00 00 00 00]
CMD: [48 00 19 91] [00 00 00 00]
CMD: [40 00 1a d4] [00 00 00 00]
CMD: [48 00 1a 91] [00 00 00 00]
CMD: [40 00 1b 66] [00 00 00 00]
CMD: [48 00 1b 23] [00 00 00 00]
CMD: [40 00 1c 51] [00 00 00 00]
#CMD: [48 00 1c f4] [00 00 00 00]
CMD: [40 00 1d 2f] [00 00 00 00]
CMD: [48 00 1d b7] [00 00 00 00]
CMD: [40 00 1e f8] [00 00 00 00]
CMD: [48 00 1e 94] [00 00 00 00]
CMD: [40 00 1f 8c] [00 00 00 00]
CMD: [48 00 1f 91] [00 00 00 00]
CMD: [4c 01 20 00] [00 00 01 00]
CMD: [40 00 00 93] [00 00 00 00]
CMD: [48 00 00 2f] [00 00 00 00]
CMD: [40 00 01 90] [00 00 00 00]
CMD: [48 00 01 95] [00 00 00 00]
CMD: [40 00 02 89] [00 00 00 00]
CMD: [48 00 02 23] [00 00 00 00]
CMD: [40 00 03 8c] [00 00 00 00]
CMD: [48 00 03 93] [00 00 00 00]
CMD: [40 00 04 88] [00 00 00 00]
#CMD: [48 00 04 81] [00 00 00 00]
CMD: [40 00 05 89] [00 00 00 00]
CMD: [48 00 05 23] [00 00 00 00]
CMD: [40 00 06 0b] [00 00 00 00]
CMD: [48 00 06 c0] [00 00 00 00]
CMD: [40 00 07 62] [00 00 00 00]
CMD: [48 00 07 30] [00 00 00 00]
CMD: [40 00 08 61] [00 00 00 00]
CMD: [48 00 08 f4] [00 00 00 00]
CMD: [40 00 09 2f] [00 00 00 00]
CMD: [48 00 09 b7] [00 00 00 00]
CMD: [40 00 0a f8] [00 00 00 00]
CMD: [48 00 0a 94] [00 00 00 00]
CMD: [40 00 0b 8c] [00 00 00 00]
CMD: [48 00 0b 91] [00 00 00 00]
CMD: [40 00 0c 93] [00 00 00 00]
CMD: [48 00 0c 2f] [00 00 00 00]
#CMD: [40 00 0d 90] [00 00 00 00]
CMD: [48 00 0d 95] [00 00 00 00]
CMD: [40 00 0e 89] [00 00 00 00]
CMD: [48 00 0e 23] [00 00 00 00]
CMD: [40 00 0f 8c] [00 00 00 00]
CMD: [48 00 0f 93] [00 00 00 00]
CMD: [40 00 10 88] [00 00 00 00]
CMD: [48 00 10 81] [00 00 00 00]
CMD: [40 00 11 83] [00 00 00 00]
CMD: [48 00 11 2b] [00 00 00 00]
CMD: [40 00 12 88] [00 00 00 00]
CMD: [48 00 12 83] [00 00 00 00]
CMD: [40 00 13 2f] [00 00 00 00]
CMD: [48 00 13 bf] [00 00 00 00]
CMD: [40 00 14 06] [00 00 00 00]
CMD: [48 00 14 c0] [00 00 00 00]
CMD: [40 00 15 9f] [00 00 00 00]
#CMD: [48 00 15 b7] [00 00 00 00]
CMD: [40 00 16 f8] [00 00 00 00]
CMD: [48 00 16 94] [00 00 00 00]
CMD: [40 00 17 8c] [00 00 00 00]
CMD: [48 00 17 91] [00 00 00 00]
CMD: [40 00 18 83] [00 00 00 00]
CMD: [48 00 18 2b] [00 00 00 00]
CMD: [40 00 19 8c] [00 00 00 00]
CMD: [48 00 19 93] [00 00 00 00]
CMD: [40 00 1a 9f] [00 00 00 00]
CMD: [48 00 1a bf] [00 00 00 00]
CMD: [40 00 1b df] [00 00 00 00]
CMD: [48 00 1b 91] [00 00 00 00]
CMD: [40 00 1c cf] [00 00 00 00]
CMD: [48 00 1c 91] [00 00 00 00]
CMD: [40 00 1d 08] [00 00 00 00]
#CMD: [48 00 1d 95] [00 00 00 00]
CMD: [40 00 1e 48] [00 00 00 00]
CMD: [48 00 1e 2f] [00 00 00 00]
CMD: [40 00 1f 50] [00 00 00 00]
CMD: [48 00 1f e0] [00 00 00 00]
CMD: [4c 01 40 00] [00 00 01 00]
CMD: [40 00 00 ca] [00 00 00 00]
CMD: [48 00 00 01] [00 00 00 00]
CMD: [40 00 01 84] [00 00 00 00]
CMD: [48 00 01 5c] [00 00 00 00]
CMD: [40 00 02 9f] [00 00 00 00]
CMD: [48 00 02 4f] [00 00 00 00]
CMD: [40 00 03 fc] [00 00 00 00]
CMD: [48 00 03 01] [00 00 00 00]
CMD: [40 00 04 24] [00 00 00 00]
CMD: [48 00 04 91] [00 00 00 00]
CMD: [40 00 05 ca] [00 00 00 00]
CMD: [48 00 05 01] [00 00 00 00]
#CMD: [40 00 06 8a] [00 00 00 00]
CMD: [48 00 06 5c] [00 00 00 00]
CMD: [40 00 07 9f] [00 00 00 00]
CMD: [48 00 07 4f] [00 00 00 00]
CMD: [40 00 08 fc] [00 00 00 00]
CMD: [48 00 08 01] [00 00 00 00]
CMD: [40 00 09 94] [00 00 00 00]
CMD: [48 00 09 91] [00 00 00 00]
CMD: [40 00 0a 40] [00 00 00 00]
CMD: [48 00 0a 5d] [00 00 00 00]
CMD: [40 00 0b 5f] [00 00 00 00]
CMD: [48 00 0b 4f] [00 00 00 00]
CMD: [40 00 0c fa] [00 00 00 00]
CMD: [48 00 0c 01] [00 00 00 00]
CMD: [40 00 0d 34] [00 00 00 00]
CMD: [48 00 0d 91] [00 00 00 00]
CMD: [40 00 0e 33] [00 00 00 00]
#CMD: [48 00 0e 23] [00 00 00 00]
CMD: [40 00 0f 09] [00 00 00 00]
CMD: [48 00 0f f1] [00 00 00 00]
CMD: [40 00 10 22] [00 00 00 00]
CMD: [48 00 10 23] [00 00 00 00]
CMD: [40 00 11 59] [00 00 00 00]
CMD: [48 00 11 f0] [00 00 00 00]
CMD: [40 00 12 21] [00 00 00 00]
CMD: [48 00 12 30] [00 00 00 00]
CMD: [40 00 13 19] [00 00 00 00]
CMD: [48 00 13 f0] [00 00 00 00]
CMD: [40 00 14 22] [00 00 00 00]
CMD: [48 00 14 30] [00 00 00 00]
CMD: [40 00 15 39] [00 00 00 00]
CMD: [48 00 15 f4] [00 00 00 00]
CMD: [40 00 16 03] [00 00 00 00]
#CMD: [48 00 16 c0] [00 00 00 00]
CMD: [40 00 17 8a] [00 00 00 00]
CMD: [48 00 17 b5] [00 00 00 00]
CMD: [40 00 18 8f] [00 00 00 00]
CMD: [48 00 18 77] [00 00 00 00]
CMD: [40 00 19 02] [00 00 00 00]
CMD: [48 00 19 c0] [00 00 00 00]
CMD: [40 00 1a 8a] [00 00 00 00]
CMD: [48 00 1a b5] [00 00 00 00]
CMD: [40 00 1b 8f] [00 00 00 00]
CMD: [48 00 1b 7d] [00 00 00 00]
CMD: [40 00 1c 8a] [00 00 00 00]
CMD: [48 00 1c bd] [00 00 00 00]
CMD: [40 00 1d e3] [00 00 00 00]
CMD: [48 00 1d 2f] [00 00 00 00]
CMD: [40 00 1e f0] [00 00 00 00]
CMD: [48 00 1e e0] [00 00 00 00]
#CMD: [40 00 1f ee] [00 00 00 00]
CMD: [48 00 1f 0f] [00 00 00 00]
CMD: [4c 01 60 00] [00 00 01 00]
CMD: [40 00 00 ff] [00 00 00 00]
CMD: [48 00 00 1f] [00 00 00 00]
CMD: [40 00 01 ec] [00 00 00 00]
CMD: [48 00 01 5d] [00 00 00 00]
CMD: [40 00 02 ff] [00 00 00 00]
CMD: [48 00 02 4f] [00 00 00 00]
CMD: [40 00 03 a5] [00 00 00 00]
CMD: [48 00 03 91] [00 00 00 00]
CMD: [40 00 04 b4] [00 00 00 00]
CMD: [48 00 04 91] [00 00 00 00]
CMD: [40 00 05 2f] [00 00 00 00]
CMD: [48 00 05 b7] [00 00 00 00]
CMD: [40 00 06 f8] [00 00 00 00]
CMD: [48 00 06 94] [00 00 00 00]
CMD: [40 00 07 66] [00 00 00 00]
#CMD: [48 00 07 23] [00 00 00 00]
CMD: [40 00 08 21] [00 00 00 00]
CMD: [48 00 08 f4] [00 00 00 00]
CMD: [40 00 09 8c] [00 00 00 00]
CMD: [48 00 09 91] [00 00 00 00]
CMD: [40 00 0a 90] [00 00 00 00]
CMD: [48 00 0a 95] [00 00 00 00]
CMD: [40 00 0b 89] [00 00 00 00]
CMD: [48 00 0b 23] [00 00 00 00]
CMD: [40 00 0c 02] [00 00 00 00]
CMD: [48 00 0c c0] [00 00 00 00]
CMD: [40 00 0d 8c] [00 00 00 00]
CMD: [48 00 0d 91] [00 00 00 00]
CMD: [40 00 0e 89] [00 00 00 00]
CMD: [48 00 0e 2b] [00 00 00 00]
CMD: [40 00 0f 8c] [00 00 00 00]
#CMD: [48 00 0f 93] [00 00 00 00]
CMD: [40 00 10 2f] [00 00 00 00]
CMD: [48 00 10 bf] [00 00 00 00]
CMD: [40 00 11 08] [00 00 00 00]
CMD: [48 00 11 95] [00 00 00 00]
CMD: [40 00 12 cf] [00 00 00 00]
CMD: [48 00 12 93] [00 00 00 00]
CMD: [40 00 13 df] [00 00 00 00]
CMD: [48 00 13 93] [00 00 00 00]
CMD: [40 00 14 6f] [00 00 00 00]
CMD: [48 00 14 df] [00 00 00 00]
CMD: [40 00 15 ba] [00 00 00 00]
CMD: [48 00 15 de] [00 00 00 00]
CMD: [40 00 16 c0] [00 00 00 00]
CMD: [48 00 16 e0] [00 00 00 00]
CMD: [40 00 17 d0] [00 00 00 00]
CMD: [48 00 17 e0] [00 00 00 00]
#CMD: [40 00 18 a4] [00 00 00 00]
CMD: [48 00 18 de] [00 00 00 00]
CMD: [40 00 19 20] [00 00 00 00]
CMD: [48 00 19 97] [00 00 00 00]
CMD: [40 00 1a e9] [00 00 00 00]
CMD: [48 00 1a f3] [00 00 00 00]
CMD: [40 00 1b 64] [00 00 00 00]
CMD: [48 00 1b de] [00 00 00 00]
CMD: [40 00 1c fb] [00 00 00 00]
CMD: [48 00 1c cf] [00 00 00 00]
CMD: [40 00 1d f8] [00 00 00 00]
CMD: [48 00 1d 94] [00 00 00 00]
CMD: [40 00 1e ff] [00 00 00 00]
CMD: [48 00 1e cf] [00 00 00 00]
CMD: [40 00 1f 01] [00 00 00 00]
CMD: [48 00 1f 00] [00 00 00 00]
CMD: [4c 01 80 00] [00 00 01 00]
# | 100% 1.23s

avrdude: 832 bytes of flash written
avrdude: verifying flash memory against C:\Users\Marc\AppData\Local\Temp\build5829511061103927752.tmp\trinket_blink.cpp.hex:
avrdude: load data flash data from input file C:\Users\Marc\AppData\Local\Temp\build5829511061103927752.tmp\trinket_blink.cpp.hex:
avrdude: input file C:\Users\Marc\AppData\Local\Temp\build5829511061103927752.tmp\trinket_blink.cpp.hex contains 832 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.07s

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
         0x20 != 0x00
avrdude: verification error; content mismatch

avrdude done.  Thank you.


I've only seen it return this once, but thought it might be useful to add as well. This is what came up the second time I tried it:
EDIT-- I've gotten this a couple times now. It seems to make a difference how long of a delay I have between pressing the bootloader button, and trying to upload... A shorter delay returns this message.

Code: Select all

Binary sketch size: 832 bytes (of a 5,310 byte maximum)
C:\Program Files (x86)\Arduino\hardware/tools/avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -pattiny85 -cusbtiny -Uflash:w:C:\Users\Marc\AppData\Local\Temp\build5829511061103927752.tmp\trinket_blink.cpp.hex:i 

avrdude: Version 5.11, compiled on Sep  2 2011 at 19:38:36
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf"

         Using Port                    : lpt1
         Using Programmer              : usbtiny
avrdude: usbdev_open(): Found USBtinyISP, bus:device: bus-0:\\.\libusb0-0001--0x1781-0x0c9f
         AVR Part                      : ATtiny85
         Chip Erase delay              : 4500 us
         PAGEL                         : P00
         BS2                           : P00
         RESET disposition             : possible i/o
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65     6     4    0 no        512    4      0  4000  4500 0xff 0xff
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash         65     6    32    0 yes      8192   64    128  4500  4500 0xff 0xff
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           calibration    0     0     0    0 no          2    0      0     0     0 0x00 0x00

         Programmer Type : USBtiny
         Description     : USBtiny simple USB programmer, http://www.ladyada.net/make/usbtinyisp/
avrdude: programmer operation not supported

avrdude: Using SCK period of 10 usec
CMD: [ac 53 00 00] [00 00 53 00]
avrdude: AVR device initialized and ready to accept instructions

Reading | CMD: [30 00 00 00] [00 00 00 1e]
CMD: [30 00 01 00] [00 00 00 93]
################CMD: [30 00 02 00] [00 00 00 eb]
################################## | 100% 0.00s

avrdude: Device signature = 0x1e93eb
avrdude: Expected signature for ATtiny85 is 1E 93 0B
         Double check chip, or use -F to override this check.

avrdude done.  Thank you.
That seemed really odd to me, so I ran avrdude again just to see what the signature it was showing there, and it came back with:

Code: Select all

C:\Users\Marc>avrdude -c usbtiny -p attiny85

avrdude: TRINKET BOOTLOADER SELECTED

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.03s

avrdude: Device signature = 0x1e930b

avrdude: safemode: Fuses OK

avrdude done.  Thank you.
Thanks for looking into this. Please let me know if there's any other info I can provide. :)

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: Hey, are you using Windows and having verification error

Post by adafruit »

it does not appear that you replaced
C:\Program Files (x86)\Arduino\hardware/tools/avr/bin/avrdude
as arduino is reporting
avrdude: Version 5.11, compiled on Sep 2 2011 at 19:38:36
if you did you should see avrdude: TRINKET BOOTLOADER SELECTED
also make sure you changed
"C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf"
first since that is required. right now it says
Chip Erase delay : 4500 us
that number should be changing!!!

we suggestion downloading a new version of arduino ZIP NOT INSTALLER and following the instructions from the beginning so you know you have a fresh install

User avatar
mtb369
 
Posts: 3
Joined: Tue Jul 23, 2013 2:30 pm

Re: Hey, are you using Windows and having verification error

Post by mtb369 »

Made the changes and I have a nice slow, steady blink. :D Hooray!

Code: Select all

Binary sketch size: 832 bytes (of a 5,310 byte maximum)
C:\Program Files (x86)\Arduino\hardware/tools/avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -pattiny85 -cusbtiny -Uflash:w:C:\Users\Marc\AppData\Local\Temp\build4508385160397139638.tmp\trinket_blink.cpp.hex:i 

avrdude: Version 5.11svn-20111019, compiled on Oct  9 2013 at 11:48:15
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf"

         Using Port                    : lpt1
         Using Programmer              : usbtiny
avrdude: usbdev_open(): Found USBtinyISP, bus:device: bus-0:\\.\libusb0-0001--0x1781-0x0c9f
         AVR Part                      : ATtiny85
         Chip Erase delay              : 400000 us
         PAGEL                         : P00
         BS2                           : P00
         RESET disposition             : possible i/o
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    12     4    0 no        512    4      0  4000  4500 0xff 0xff
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash         65     6    32    0 yes      8192   64    128 30000 30000 0xff 0xff
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           calibration    0     0     0    0 no          2    0      0     0     0 0x00 0x00

         Programmer Type : USBtiny
         Description     : USBtiny simple USB programmer, http://www.ladyada.net/make/usbtinyisp/
avrdude: programmer operation not supported



avrdude: TRINKET BOOTLOADER SELECTED

avrdude: AVR device initialized and ready to accept instructions

Reading | CMD: [30 00 00 00] [00 00 00 1e]
CMD: [30 00 01 00] [00 00 00 93]
################CMD: [30 00 02 00] [00 00 00 0b]
################################## | 100% 0.02s

avrdude: Device signature = 0x1e930b
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
         To disable this feature, specify the -D option.
avrdude: erasing chip
CMD: [ac 80 00 00] [00 00 00 00]


avrdude: TRINKET BOOTLOADER SELECTED

avrdude: reading input file "C:\Users\Marc\AppData\Local\Temp\build4508385160397139638.tmp\trinket_blink.cpp.hex"
avrdude: writing flash (832 bytes):

Writing | CMD: [4c 00 00 00] [00 00 00 00]
CMD: [4c 00 20 00] [00 00 00 00]
CMD: [4c 00 40 00] [00 00 00 00]
CMD: [4c 00 60 00] [00 00 00 00]
#CMD: [4c 00 80 00] [00 00 00 00]
CMD: [4c 00 a0 00] [00 00 00 00]
CMD: [4c 00 c0 00] [00 00 00 00]
#CMD: [4c 00 e0 00] [00 00 00 00]
CMD: [4c 01 00 00] [00 00 00 00]
#CMD: [4c 01 20 00] [00 00 00 00]
CMD: [4c 01 40 00] [00 00 00 00]
CMD: [4c 01 60 00] [00 00 00 00]
#CMD: [4c 01 80 00] [00 00 00 00]
############################################## | 100% 0.74s

avrdude: 832 bytes of flash written
avrdude: verifying flash memory against C:\Users\Marc\AppData\Local\Temp\build4508385160397139638.tmp\trinket_blink.cpp.hex:
avrdude: load data flash data from input file C:\Users\Marc\AppData\Local\Temp\build4508385160397139638.tmp\trinket_blink.cpp.hex:
avrdude: input file C:\Users\Marc\AppData\Local\Temp\build4508385160397139638.tmp\trinket_blink.cpp.hex contains 832 bytes
avrdude: reading on-chip flash data:

Reading | ####avrdude: avr_read(): skipping page 13: no interesting data
#avrdude: avr_read(): skipping page 14: no interesting data
avrdude: avr_read(): skipping page 15: no interesting data
avrdude: avr_read(): skipping page 16: no interesting data
#avrdude: avr_read(): skipping page 17: no interesting data
avrdude: avr_read(): skipping page 18: no interesting data
#avrdude: avr_read(): skipping page 19: no interesting data
avrdude: avr_read(): skipping page 20: no interesting data
avrdude: avr_read(): skipping page 21: no interesting data
#avrdude: avr_read(): skipping page 22: no interesting data
avrdude: avr_read(): skipping page 23: no interesting data
avrdude: avr_read(): skipping page 24: no interesting data
#avrdude: avr_read(): skipping page 25: no interesting data
avrdude: avr_read(): skipping page 26: no interesting data
#avrdude: avr_read(): skipping page 27: no interesting data
avrdude: avr_read(): skipping page 28: no interesting data
avrdude: avr_read(): skipping page 29: no interesting data
#avrdude: avr_read(): skipping page 30: no interesting data
avrdude: avr_read(): skipping page 31: no interesting data
#avrdude: avr_read(): skipping page 32: no interesting data
avrdude: avr_read(): skipping page 33: no interesting data
avrdude: avr_read(): skipping page 34: no interesting data
#avrdude: avr_read(): skipping page 35: no interesting data
avrdude: avr_read(): skipping page 36: no interesting data
#avrdude: avr_read(): skipping page 37: no interesting data
avrdude: avr_read(): skipping page 38: no interesting data
avrdude: avr_read(): skipping page 39: no interesting data
#avrdude: avr_read(): skipping page 40: no interesting data
avrdude: avr_read(): skipping page 41: no interesting data
#avrdude: avr_read(): skipping page 42: no interesting data
avrdude: avr_read(): skipping page 43: no interesting data
avrdude: avr_read(): skipping page 44: no interesting data
#avrdude: avr_read(): skipping page 45: no interesting data
avrdude: avr_read(): skipping page 46: no interesting data
avrdude: avr_read(): skipping page 47: no interesting data
#avrdude: avr_read(): skipping page 48: no interesting data
avrdude: avr_read(): skipping page 49: no interesting data
#avrdude: avr_read(): skipping page 50: no interesting data
avrdude: avr_read(): skipping page 51: no interesting data
avrdude: avr_read(): skipping page 52: no interesting data
#avrdude: avr_read(): skipping page 53: no interesting data
avrdude: avr_read(): skipping page 54: no interesting data
#avrdude: avr_read(): skipping page 55: no interesting data
avrdude: avr_read(): skipping page 56: no interesting data
avrdude: avr_read(): skipping page 57: no interesting data
#avrdude: avr_read(): skipping page 58: no interesting data
avrdude: avr_read(): skipping page 59: no interesting data
#avrdude: avr_read(): skipping page 60: no interesting data
avrdude: avr_read(): skipping page 61: no interesting data
avrdude: avr_read(): skipping page 62: no interesting data
#avrdude: avr_read(): skipping page 63: no interesting data
avrdude: avr_read(): skipping page 64: no interesting data
#avrdude: avr_read(): skipping page 65: no interesting data
avrdude: avr_read(): skipping page 66: no interesting data
avrdude: avr_read(): skipping page 67: no interesting data
#avrdude: avr_read(): skipping page 68: no interesting data
avrdude: avr_read(): skipping page 69: no interesting data
avrdude: avr_read(): skipping page 70: no interesting data
#avrdude: avr_read(): skipping page 71: no interesting data
avrdude: avr_read(): skipping page 72: no interesting data
#avrdude: avr_read(): skipping page 73: no interesting data
avrdude: avr_read(): skipping page 74: no interesting data
avrdude: avr_read(): skipping page 75: no interesting data
#avrdude: avr_read(): skipping page 76: no interesting data
avrdude: avr_read(): skipping page 77: no interesting data
#avrdude: avr_read(): skipping page 78: no interesting data
avrdude: avr_read(): skipping page 79: no interesting data
avrdude: avr_read(): skipping page 80: no interesting data
#avrdude: avr_read(): skipping page 81: no interesting data
avrdude: avr_read(): skipping page 82: no interesting data
#avrdude: avr_read(): skipping page 83: no interesting data
avrdude: avr_read(): skipping page 84: no interesting data
avrdude: avr_read(): skipping page 85: no interesting data
#avrdude: avr_read(): skipping page 86: no interesting data
avrdude: avr_read(): skipping page 87: no interesting data
avrdude: avr_read(): skipping page 88: no interesting data
#avrdude: avr_read(): skipping page 89: no interesting data
avrdude: avr_read(): skipping page 90: no interesting data
#avrdude: avr_read(): skipping page 91: no interesting data
avrdude: avr_read(): skipping page 92: no interesting data
avrdude: avr_read(): skipping page 93: no interesting data
#avrdude: avr_read(): skipping page 94: no interesting data
avrdude: avr_read(): skipping page 95: no interesting data
#avrdude: avr_read(): skipping page 96: no interesting data
avrdude: avr_read(): skipping page 97: no interesting data
avrdude: avr_read(): skipping page 98: no interesting data
#avrdude: avr_read(): skipping page 99: no interesting data
avrdude: avr_read(): skipping page 100: no interesting data
#avrdude: avr_read(): skipping page 101: no interesting data
avrdude: avr_read(): skipping page 102: no interesting data
avrdude: avr_read(): skipping page 103: no interesting data
#avrdude: avr_read(): skipping page 104: no interesting data
avrdude: avr_read(): skipping page 105: no interesting data
#avrdude: avr_read(): skipping page 106: no interesting data
avrdude: avr_read(): skipping page 107: no interesting data
avrdude: avr_read(): skipping page 108: no interesting data
#avrdude: avr_read(): skipping page 109: no interesting data
avrdude: avr_read(): skipping page 110: no interesting data
avrdude: avr_read(): skipping page 111: no interesting data
#avrdude: avr_read(): skipping page 112: no interesting data
avrdude: avr_read(): skipping page 113: no interesting data
#avrdude: avr_read(): skipping page 114: no interesting data
avrdude: avr_read(): skipping page 115: no interesting data
avrdude: avr_read(): skipping page 116: no interesting data
#avrdude: avr_read(): skipping page 117: no interesting data
avrdude: avr_read(): skipping page 118: no interesting data
#avrdude: avr_read(): skipping page 119: no interesting data
avrdude: avr_read(): skipping page 120: no interesting data
avrdude: avr_read(): skipping page 121: no interesting data
#avrdude: avr_read(): skipping page 122: no interesting data
avrdude: avr_read(): skipping page 123: no interesting data
#avrdude: avr_read(): skipping page 124: no interesting data
avrdude: avr_read(): skipping page 125: no interesting data
avrdude: avr_read(): skipping page 126: no interesting data
#avrdude: avr_read(): skipping page 127: no interesting data
# | 100% 0.12s

avrdude: verifying ...
avrdude: 832 bytes of flash verified

avrdude done.  Thank you.

I think I just got confused between setting it up to work with avrdude vs. arduino. I had been changing the conf in the wrong path... :roll: (Which would explain why it all looked good in avrdude.)

My bad. Thank you so much for getting me on the right path... Adafruit kicks ass. :D

-Marc

doglaw
 
Posts: 4
Joined: Mon Oct 28, 2013 11:30 pm

Re: Hey, are you using Windows and having verification error

Post by doglaw »

I am running Win 7 Professional SP1 32-bit on a Toshiba Satellite L355 laptop.

I manually installed the usbtinyisp driver from the usbtinyisp_w32_driver_v1.12 zip folder. I did not encounter any driver certificate warnings or errors.

I initially installed WinAvr. Afterwards I downloaded/extracted avrdude.exe and avrdude.conf from Rick’s posting at http://download.savannah.gnu.org/releas ... -win32.zip and copied them into the WinAvr/bin directory. I have since downloaded/extracted these two files from Adafruit’s Nov 6, 2013 forum posting containing the link to avrdudetrinket11513.zip.

I edited the avrdude.conf to reflect the suggested chip erase delay value.

Image

The new avrdude.exe and modified avrdude.conf were saved in two locations: In the WINAVR location of C:\WinAVR-20100110\bin and in the Arduino location of C:\Program Files\Arduino\hardware\tools\avr\bin.

When I run avrdude.exe –v from the command line, this is the response I receive.

Image

When I try attempt Rick’s trinketblink (command line) programming exercise, I consistently receive a verification error. However, the byte location where the error occurs is not consistent as in these examples:

Example 1:

Image


Example 2:

Image

Even though I do receive the verification error, sometimes the programming appears to work as the behavior of the Gemma will change. The rapid led blinking and repetitive bootloading will change to a slow blink rate and after the intial bootload attempt, will not bootload again until I either press the reset button on the Gemma or unplug/replug the usb connection.

I have tried programming the Gemma through the Arduino IDE without success. The first time I installed the Arduino IDE I used the Arduino windows installer. After reading Adafruit’s November 8th response on the forum to mtb369, I uninstalled Arduino, download/extracted the arduino-1.0.5-windows.zip file and again attempted to program the Gemma without success. Before I attempted to upload to the Gemma, I did copy the lastest avrdude.exe and avrdude.conf to the respective Arduino\hardware\tools\avr\bin directories. I receive similar errors from both Arduino locations.

The errors I appear to be getting from the Arduino IDE are:

Image

I suspect I am suffering from being too close to the forest and cannot see the obvious.

Doug

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: Hey, are you using Windows and having verification error

Post by adafruit »

Doug, its not possible to read the text on those images, please crop them and upload them without resizing so we can read the text
also, please try another computer in case its something with your laptop

doglaw
 
Posts: 4
Joined: Mon Oct 28, 2013 11:30 pm

Re: Hey, are you using Windows and having verification error

Post by doglaw »

Sorry about the screen shots. I hope these are better.

Here is what is going on with these screen shots. This evening I made over 50 attempts to program the Gemma using avrdude. I guess my timing wasn't very good at hitting the bootloader because I generally received the following error:

avrdude: Error: Could not find USBtiny device (0x1781/oxc9f).

Out of those 50 attempts, 4 times I did get the timing right and avrdude reported Trinket Bootloader Selected and transferred the hex file to the device. Only once, did I not receive the verification error (which I also believe was the only time I ever had an error free transfer.)

As far as the Arduino IDE goes, the last screen shot shows the messages I generally receive. However, it is doing something to the device even though it appears that it is not talking. Prior to this upload attempt from the Arduino IDE, I had successfully transferred the trinketblink.hex file using avrdude. The led was blinking slowly and the bootloader was not recycling. After the upload attempt, the led again flashes quickly and the bootloader again recycles.

Image

Image

Image

Image

Image

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: Hey, are you using Windows and having verification error

Post by adafruit »

Doug, you've got a very finicky one! :) is it possible for you to try another computer?

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

Return to “Trinket ATTiny, Trinket M0”