Page 2 of 2

Re: USB on STM32F3DISCOVERY

Posted: Tue Jul 18, 2017 8:53 am
by DeusExMachina
How about using Wireshark? It has an USB plugin and it works pretty well

Re: USB on STM32F3DISCOVERY

Posted: Tue Jul 18, 2017 6:53 pm
by zwhite
avrhack wrote:Try cat /sys/kernel/debug/usb/usbmon/0u and it will show you all the USB packets so you can figure out exactly which transaction is causing the problem. Would suggest you post the final few lines of that output here.

If that file doesn't exist check if you have a debugfs mounted. If not use mount -t debugfs none_debugs /sys/kernel/debug

Then you will also need to use modprobe usbmon to enable USB debug output


Thanks for the advice. Will that show me more information than tcpdump will?

Unfortunately I didn't have enough time last night to work on this, but I should have some time later this week to try everyone's suggestions.

Re: USB on STM32F3DISCOVERY

Posted: Tue Jul 18, 2017 11:39 pm
by avrhack
DeusExMachina wrote:How about using Wireshark? It has an USB plugin and it works pretty well


Yep agreed. Use the -D option on the usbmon device if you prefer the format / output that wireshark presents.

Same source and same data though so no real difference.