Mac OSX - USBtiny is violating Section 9.3.5 of the USB Spec

USB AVR Programmer and SPI interface. Adafruit's USBtinyISP.

Moderators: adafruit_support_bill, adafruit

Mac OSX - USBtiny is violating Section 9.3.5 of the USB Spec

Postby nab » Mon Nov 22, 2010 11:47 pm

Update:
Added information required by the "How to get help!" post.

I have been using my usbtiny V1.0 for a long time and it has always been unreliable, but today I thought I would turn to the forums since google was no help.

The problem:
Usbtiny only works sometimes and unplugging then replugging fixes the problems occasionally. Sometimes it doesn't work at all until some combination of factors on my system align. I have tried with multiple boards so I don't think it is a hardware problem.

Error messages:
Output from USB Prober:
Code: Select all
Timestamp Lvl     Message
--------- ---   --------------------------------------
    6.258 [1]   [0x4603800] The IOUSBFamily is having trouble enumerating a USB device that has been plugged in.  It will keep retrying.  (Port 1 of Hub at 0x4000000)
    6.713 [1]   [0x4603800] The IOUSBFamily has successfully enumerated the device.
    6.754 [1]   USB Device USBtiny is violating Section 9.3.5 of the USB Specification -- Error in GetConfigDescriptor( wLength = 4)


Output from dmesg after plugging the device in:
Code: Select all
com_apple_driver_AppleUSBCardReaderUMC:: Stop::Controller Reset
USBMSC Identifier (non-unique): 000000009833 0x5ac 0x8403 0x9833


Output from avrdude when programming fails immediately after plugging in
Code: Select all
Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e0000
avrdude: Expected signature for ATMEGA328P is 1E 95 0F
         Double check chip, or use -F to override this check.


Output from avrdude after the first failed attemps. Seems like at this point osx gives up trying to read the usb device (See below).
Code: Select all
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.


Setup:
Usbtiny version 1.0 - Kit from adafruit
Picture of the front
http://flic.kr/p/8VG82C
Picture of the back
http://flic.kr/p/8VG6Km

Macbook details
Code: Select all
  Model Name:   MacBook Pro
  Version 10.6.5
  Model Identifier:   MacBookPro5,5
  Processor Name:   Intel Core 2 Duo
  Processor Speed:   2.26 GHz
  Number Of Processors:   1
  Total Number Of Cores:   2
  L2 Cache:   3 MB
  Memory:   2 GB
  Bus Speed:   1.07 GHz


avrdude -v
Code: Select all
avrdude: Version 5.8, compiled on Dec 22 2009 at 16:02:42


Thanks in advance.
nab
 
Posts: 2
Joined: Mon Nov 22, 2010 11:21 pm

Re: Mac OSX - USBtiny is violating Section 9.3.5 of the USB Spec

Postby adafruit » Tue Nov 23, 2010 1:54 pm

we fixed a few things since v1.0 which could be the problem
you could try programming a new chip
viewtopic.php?f=20&t=17191
User avatar
adafruit
 
Posts: 10491
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: Mac OSX - USBtiny is violating Section 9.3.5 of the USB Spec

Postby nab » Tue Nov 23, 2010 11:26 pm

I tried v1.04 and v2.0 (wasn't sure if it was compatible with my 1.0 hardware) from http://www.ladyada.net/make/usbtinyisp/download.html and v1.6 from http://www.xs4all.nl/~dicks/avr/usbtiny/.

They all remove the error "USB Device USBtiny is violating Section 9.3.5 of the USB Specification", but the error in dmesg is still there each time I program.
Code: Select all
com_apple_driver_AppleUSBCardReaderUMC:: Stop::Controller Reset
USBMSC Identifier (non-unique): 000000009833 0x5ac 0x8403 0x9833


However, it does seem more reliable with the version from http://www.xs4all.nl/~dicks/avr/usbtiny/. I have programed at least 10 times without having to plug and unplug.

Thanks for the help
nab
 
Posts: 2
Joined: Mon Nov 22, 2010 11:21 pm


Return to USBtinyISP

Who is online

Users browsing this forum: No registered users and 3 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [103]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[109]
 
Wireless[14]
Cables[61]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]