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.
User avatar
paw376
 
Posts: 17
Joined: Mon Oct 21, 2013 4:27 pm

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

Post by paw376 »

OK. I tried the updated avrdude.exe from Step 5. It works with chip delay 40000 and 90000 with no errors.
Thanks again for the help!!!

User avatar
technobly
 
Posts: 118
Joined: Mon Oct 31, 2011 11:06 am

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

Post by technobly »

No problem PAW376... after investing so much time in getting mine working, I feel the need to pass on the knowledge however I can. Sometimes that means reading minds, and bugging people to keep pushing for a solution ;-) Now we can be free to create. My project with the Trinket is almost done, I'll post it up somewhere when I finish it. It's an edge lit life size copy of my kids' hands in acrylic in a display stand, all scroll-sawed.

BertB
 
Posts: 3
Joined: Sat Nov 16, 2013 1:02 pm

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

Post by BertB »

Hi,

1- I have a Vista 32 bit pc

2- I use the Trinket 3 v

3- (expected 4, got -5)
avrdude: verification error, first mismatch at byte 0x0000
0x20 != 0x00
avrdude: verification error; content mismatch

avrdude: error: usbtiny_transmit: usb_control_msg: sending control message failed, win error: Het apparaat herkent de opdracht niet. (The device does not recognize the command)

4- Trinketblink is loaded and works, but this message appears:
avrdude: error: usbtiny_receive: usb_control_msg: sending control message failed, win error: Een apparaat dat op het systeem is aangesloten, werkt niet (A device connected to the system does not function).

(expected 4, got -5)

5- New AVRdude.exe with changed delay (400000) works without errors, but it says:
avrdude: TRINKET BOOTLOADER SELECTED
avrdude: TRINKET BOOTLOADER SELECTED
With delay of 900000 it fails and says:
avrdude: TRINKET BOOTLOADER SELECTED
avrdude: TRINKET BOOTLOADER SELECTED
avrdude: verification error, first mismatch at byte 0x0000
0xff != 0x20
avrdude: verification error; content mismatch

It kind of works.

Greetings,
Bert

User avatar
technobly
 
Posts: 118
Joined: Mon Oct 31, 2011 11:06 am

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

Post by technobly »

"TRINKET BOOTLOADER SELECTED" is not actually an error even though it's red... sounds like #5 with the 400000 delay is your solution ;-)

User avatar
chrisjx
 
Posts: 93
Joined: Mon Aug 09, 2010 6:17 am

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

Post by chrisjx »

1) OS: win 7 ultimate, 32 bit, SP1
2) Devices: trinket 3v or trinket 5v
3) Checks/Errors: avrdude check + ardiuino IDE error below
4) avrdude.conf changed the 900000 to 400000 helped - same avrdude.conf in:
4a) C:\Users\chrisj\Downloads\Arduino\arduino-1.0.5\hardware\tools\avr\bin
4b) C:\Users\chrisj\Downloads\Arduino\arduino-1.0.5\hardware\tools\avr\etc
5) updated to latest avrdude
6) updated the ID file
7) I see the USBTinyISP AVR Programmer in Device Manager (driver version: 0.1.12.1)
8)

Curious about "no interesting data"

When uploading the trinket_blink sketch (Trinket 8Mhz:COM3) I get to the "avrdude done. Thank you." (as shown below) but the LED never blinks.

I also have a dell laptop runing Ubuntu 12.10 that I could use, but I thought most of the docs refer to Windows.

Thanks for any tips,
Chris.


Avrdude command:

Code: Select all

C:\Users\chrisj\Downloads\Arduino\arduino-1.0.5\hardware\tools\avr\bin>avrdude -c usbtiny -p attiny85

avrdude: TRINKET BOOTLOADER SELECTED

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.13

avrdude: Device signature = 0x1e930b

avrdude: safemode: Fuses OK

avrdude done.  Thank you.

Arduino verbose upload:

Code: Select all

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:\Users\chrisj\Downloads\Arduino\arduino-1.0.5\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.04s

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\chrisj\AppData\Local\Temp\build9044384711760086116.tmp\Blink_Trinket.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 01 00]
#CMD: [4c 01 20 00] [00 00 01 00]
CMD: [4c 01 40 00] [00 00 01 00]
CMD: [4c 01 60 00] [00 00 01 00]
#CMD: [4c 01 80 00] [00 00 01 00]
############################################## | 100% 2.10s

avrdude: 832 bytes of flash written
avrdude: verifying flash memory against C:\Users\chrisj\AppData\Local\Temp\build9044384711760086116.tmp\Blink_Trinket.cpp.hex:
avrdude: load data flash data from input file C:\Users\chrisj\AppData\Local\Temp\build9044384711760086116.tmp\Blink_Trinket.cpp.hex:
avrdude: input file C:\Users\chrisj\AppData\Local\Temp\build9044384711760086116.tmp\Blink_Trinket.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.59s

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

avrdude done.  Thank you.


User avatar
technobly
 
Posts: 118
Joined: Mon Oct 31, 2011 11:06 am

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

Post by technobly »

@chrisjx

What you posted just connects with the trinket and checks the device signature. It won't actually upload anything until you add some more command switches.

Get the trinketblink.hex file here http://learn.adafruit.com/introducing-t ... th-avrdude and put it in the same directory as your avrdude.exe then run the command "avrdude -c usbtiny -p attiny85 -U flash:w:trinketblink.hex" from "C:\Users\chrisj\Downloads\Arduino\arduino-1.0.5\hardware\tools\avr\bin>"

That should get you going...

User avatar
chrisjx
 
Posts: 93
Joined: Mon Aug 09, 2010 6:17 am

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

Post by chrisjx »

Hmm.

I was running the command line as a test that avrdude and usbtiny and attiny85 were configured properly.

The second listing was showing verbose info when compiling and loading the blink_trinket sketch from Arduino 1.0.5... with wacky results.

When I go to download the trinketblink.hex file my browser just shows a page with the hex values (did the same on Firefox, IE) as text. Can I just copy this into my text editor and rename it trinketblink.hex?

Thanks for the reply, FightCube.

Chris.

User avatar
technobly
 
Posts: 118
Joined: Mon Oct 31, 2011 11:06 am

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

Post by technobly »

Yep, just right click the page and "save as" and make sure you name it trinketblink.hex ... your operating system may try to name it trinketblink.hex.txt so make sure common extensions are not hidden. Viewing the files from a command prompt might help if you're not sure how to turn off the hiding of common extensions. And no problem, have a good one.

User avatar
chrisjx
 
Posts: 93
Joined: Mon Aug 09, 2010 6:17 am

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

Post by chrisjx »

OK. Looks like it worked. I'm seeing the blink pattern yet avrdude is throwing a verification error.

Next to figure out how to drive some neopixel LEDs from the trinket.

Code: Select all

C:\Users\chrisj\Downloads\Arduino\arduino-1.0.5\hardware\tools\avr\bin>avrdude -c usbtiny -p attiny85 -p attiny85 -U flash:w:trinketblink.hex

avrdude: TRINKET BOOTLOADER SELECTED

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.41s

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


avrdude: TRINKET BOOTLOADER SELECTED

avrdude: reading input file "trinketblink.hex"
avrdude: input file trinketblink.hex auto detected as Intel Hex
avrdude: writing flash (832 bytes):

Writing | ################################################## | 100% 3.68s

avrdude: 832 bytes of flash written
avrdude: verifying flash memory against trinketblink.hex:
avrdude: load data flash data from input file trinketblink.hex:
avrdude: input file trinketblink.hex auto detected as Intel Hex
avrdude: input file trinketblink.hex contains 832 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 2.02s

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

avrdude: safemode: Fuses OK

avrdude done.  Thank you.


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

Return to “Trinket ATTiny, Trinket M0”