Debugging V-USB
Posted: Mon Oct 22, 2012 2:52 am
Hello all,
I've put together my own variant of circuitry from the plentitude of samples and try to get it working. Whatever sample firmware I try (e.g. http://www.ruinelli.ch/how-to-use-v-usb-on-an-attiny85 or http://www.recursion.jp/avrcdc/cdc-spi.html), the device fails to be recognized in Ubuntu 64-bit:
Two questions: how can one debug such a combination of hard- and software? Getting a sign of life out of the chip? Of course I triple-checked usbconfig.h and fuses, still no dice. About all posts I could google to similar problems sometimes end up with "now it works", without explanation on how to get there or what had to be changed.
The other question: what is this INT0 interrupt thing mentioned in usbconfig.h's hardware config section? Apparently none of the sample projects takes care of that.
Here's the circuitry I've built, the four lines going to the right make up the SPI interface for the programmer (and shall make a generic SPI interface later). Uploading a firmware works fine.
Thanks,
Markus
I've put together my own variant of circuitry from the plentitude of samples and try to get it working. Whatever sample firmware I try (e.g. http://www.ruinelli.ch/how-to-use-v-usb-on-an-attiny85 or http://www.recursion.jp/avrcdc/cdc-spi.html), the device fails to be recognized in Ubuntu 64-bit:
Code: Select all
$ demsg
...
[852867.928035] usb 6-2: new low-speed USB device number 53 using uhci_hcd
[852868.048034] usb 6-2: device descriptor read/64, error -71
[852868.272028] usb 6-2: device descriptor read/64, error -71
[852868.488039] usb 6-2: new low-speed USB device number 54 using uhci_hcd
[852868.608032] usb 6-2: device descriptor read/64, error -71
...
Two questions: how can one debug such a combination of hard- and software? Getting a sign of life out of the chip? Of course I triple-checked usbconfig.h and fuses, still no dice. About all posts I could google to similar problems sometimes end up with "now it works", without explanation on how to get there or what had to be changed.
The other question: what is this INT0 interrupt thing mentioned in usbconfig.h's hardware config section? Apparently none of the sample projects takes care of that.
Here's the circuitry I've built, the four lines going to the right make up the SPI interface for the programmer (and shall make a generic SPI interface later). Uploading a firmware works fine.
Thanks,
Markus