USB on STM32F3DISCOVERY

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

User avatar
DeusExMachina
Posts: 223
Joined: Tue Apr 03, 2012 5:08 am
Has thanked: 3 times
Been thanked: 3 times

Re: USB on STM32F3DISCOVERY

Post by DeusExMachina »

How about using Wireshark? It has an USB plugin and it works pretty well
zwhite
Posts: 4
Joined: Mon Jul 17, 2017 5:59 am

Re: USB on STM32F3DISCOVERY

Post 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.
avrhack
Posts: 140
Joined: Tue Dec 24, 2013 1:42 pm
Has thanked: 17 times
Been thanked: 3 times

Re: USB on STM32F3DISCOVERY

Post 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.
Post Reply