Building USB analyzer. Need help understanding FX3 superspeed explorer kit capabilities.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello,

   

 

   

I am trying to build a USB analyzer device, that will hear from a host and that is able to see everything that is going on at the USB line, or at least, get the most out of it with a FX3 explorer kit.

   

 

   

The API is very complete and extensive, but I would like to know if it is possible for the CYUSB3014 to know and indicate that bad packets have arrived, such as malformed packets, and what is wrong with their construction. I see that one can implement callback functions for certain events, but I don't see any CyU3PUsbEventType_t event flag that can be used for this case. 

   

 

   

Also, is it possible to observe each packet information, such as the PID, ADDR, CRC, etc? as far as I know, I can only extract the data from a handshake packet and extract the data reading requests and received data.

   

 

   

Thank you,

   

José

0 Likes
2 Replies
Anonymous
Not applicable

Hi,

   

It is not possible to observe each packet information and you cannot have an event callback kind of mechanism of observing errors. However, you can notice if a particular error has occurred or not by reading the value of a register.

   

Please refer the LNK_PHY_ERROR_CONF  register in FX3 TRM.

   

You can also get a count of errors using the CyU3PUsbGetErrorCounts API.

   

regards,

   

-Madhu Sudhan

0 Likes
Anonymous
Not applicable

Thank you!

   

I'll use that with a combination of endpoint events to log what is happening at the USB side.

   

regards,

   

José

0 Likes