Support for at90usbkey

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
ossguy
Posts: 1
Joined: Tue Jul 10, 2007 6:25 pm

Support for at90usbkey

Post by ossguy » Tue Jul 10, 2007 6:38 pm

From what I can tell, the code shipped with the at90usbkey (or, more generally, the at90usb1287 chip) for interfacing with its USB hardware is not public domain and its license is not compatible with any standard open source license. I'd like to make a project that uses USB on the at90usb1287, but I don't want to use the library code provided by Atmel because of these licensing problems (I want to release my project under the GPL).

I would like to use AVR-USB with my project because I can license the resulting code under the GPL. However, it seems that AVR-USB is designed to work with AVR chips that do not have built-in USB hardware. Is there any work being done to make it work with chips like the at90usb1287 that have USB hardware built-in?

It seems that some work is being done on a library like this, but the work is unrelated to AVR-USB and is still at a very early beta stage. You can find out more at:

http://fourwalledcubicle.com/blog/archives/5
http://www.fourwalledcubicle.com/MyUSB.php

abcminiuser

MyUSB

Post by abcminiuser » Wed Jul 11, 2007 4:30 pm

That's my driver you're referencing to. I'm making slow progress on it, as the datasheet for the USB controller is poorly written (missing bit descriptions and in one or two instances, registers altogether) so It's a lot of hard work.

I just added the control endpoint creation code, so hopefully I'll be able to get a VBUS notification out of it soon. Stay tuned!

- Dean

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Thu Jul 12, 2007 7:16 pm

We at Objective Development don't have any plans to support chips with USB hardware. But you are free to re-use any parts of our code under GPL and we would be happy to set a link to any related library.

abcminiuser

Post by abcminiuser » Fri Jul 20, 2007 5:42 am

I've got the device portion of the driver working, although it's incomplete. If you're handy you might be able to use it as-is at the moment, while I finish off the rest of the Chapter 9 control commands.

- Dean

abcminiuser

Post by abcminiuser » Mon Aug 27, 2007 3:15 pm

Just in case anyone is still following this, my library is now in a stage that supports USB enumeration as a device for the USB1287 AVR used in the USBKEY. The library is still being written (and is subject to change) but the device code is operational, with the host code not too far behind.

I've made a USB mouse demonstration app on the project page based on a now dated version of the library, but it works and is very easy to update to the latest code.

Cheers all!
- Dean :twisted:

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Sat Sep 08, 2007 8:08 pm

Thanks for your updates!

abcminiuser

Post by abcminiuser » Sun Nov 18, 2007 7:08 am

Just in case anyone's still following this, I've just managed to get the host system (barely) working. The host mode is still in its infancy, but in my test application I can successfully read pressed keys from a USB keyboard. Device mode works fine and is quite mature.

- Dean

Post Reply