usb debugging?

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
ulao
Rank 4
Rank 4
Posts: 481
Joined: Mon Aug 25, 2008 8:45 pm

usb debugging?

Post by ulao » Sat Apr 11, 2009 9:01 pm

I see a few comments about usb boot loader in regards to debugging. Could I some how use this to debug a simple atmega avrusb project? If so, could anyone point me in the direction of the info?

Or are there any apps out there the give you info about usb devices and what data was sent?

The current issue is an atmega168 that says "unknown device" I have made all of the recommendations I found on this forum. I also tried to compile the hidkeys 168 project and I get the same error, however I'm not sure it would work being the keys portion of the circuit is absent. I would love to find a usb 168/88 project that would communicate with usb and require nothing other then a jumper to work.

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

Re: usb debugging?

Post by christian » Mon Apr 13, 2009 11:06 am

There are examples which ship with the driver itself, most of them have no particular hardware requirements.

For debugging, compile with -DDEBUG_LEVEL=1 or -DDEBUG_LEVEL=2. The debug output is a hex dump sent to the processor's TxD with 19200 bps.

For debugging from the host side, use a USB sniffer. There are free USB sniffers available for every operating system.

ulao
Rank 4
Rank 4
Posts: 481
Joined: Mon Aug 25, 2008 8:45 pm

Re: usb debugging?

Post by ulao » Mon Apr 13, 2009 5:44 pm

thx, christian .

Is there a way to download the driver while the site is down? I must have deleted the examples at some point.

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

Re: usb debugging?

Post by christian » Mon Apr 13, 2009 7:53 pm

The following link should work until the big renaming is done:

http://www.obdev.at/downloads/avrusb/av ... 090323.zip

ulao
Rank 4
Rank 4
Posts: 481
Joined: Mon Aug 25, 2008 8:45 pm

Re: usb debugging?

Post by ulao » Mon Apr 13, 2009 8:45 pm

Thx again christian, Ill give hid-mouse a go with the 168 and see what I get.

Post Reply