Page 1 of 1

usb debugging?

Posted: Sat Apr 11, 2009 9:01 pm
by ulao
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.

Re: usb debugging?

Posted: Mon Apr 13, 2009 11:06 am
by christian
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.

Re: usb debugging?

Posted: Mon Apr 13, 2009 5:44 pm
by ulao
thx, christian .

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

Re: usb debugging?

Posted: Mon Apr 13, 2009 7:53 pm
by christian
The following link should work until the big renaming is done:

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

Re: usb debugging?

Posted: Mon Apr 13, 2009 8:45 pm
by ulao
Thx again christian, Ill give hid-mouse a go with the 168 and see what I get.