how to send debug info to host via USB

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

cross mob
Anonymous
Not applicable

Dear Sirs,

   

how to send debug info to host via USB?

0 Likes
9 Replies
Anonymous
Not applicable

 Refer USBDebug example part of FX3 SDK. Refer CyU3PDebugInit() API.

   

 

   

Regards,

   

Gayathri

0 Likes
Anonymous
Not applicable

many thanks

0 Likes
Anonymous
Not applicable

 You are welcome 

0 Likes
Anonymous
Not applicable

Dear Sirs,

   

How to use debug endpoint of interrupt type along endpoint of bulk type?

0 Likes
Anonymous
Not applicable

I define new endpoint as well as at debugInit example, initiate endpoint, but endpoint didn't occur at control center.

0 Likes
Anonymous
Not applicable

 You'll need to add an endpoint descriptor correspoinding to the bulk/interrupt endpoint.

   

 

   

After doing so, make sure to change the "number of endpoints" (bNumEndpoints) parameter of the interface descriptor and the overall length in the configuration descriptor.

0 Likes
Anonymous
Not applicable

Thank you scutifer! I have found this several minutes ago. But How to calculate overall length? And Do I have write something about debug endpoint there.

0 Likes
Anonymous
Not applicable

Thank you, dear scutifer! I did it!

0 Likes
Anonymous
Not applicable

Is there anyone can let me know how to check whether the device's interrupt IN endpoint works with a host PC?

   

When I download the firmware, my PC can detect the device as 'Cypress FX3 USB BulkloopExample Device' in the USB Control Center.

   

However, I do not know how to test it work with the USB Control Center.

   

 

   

Can anyone help me?

0 Likes