USBIntrSourceSink test

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

cross mob
lock attach
Attachments are accessible only for community members.
EliW
Level 3
Level 3
25 replies posted 25 sign-ins 10 replies posted

Hello,

Board : CYUSB3KIT - 003

I'm trying to test my DUT(Device under test) machine with lower packet size then 1024 with the FX3 board and the "USBIntrSourceSink" firmware example.

 

I want to change the parameters inside the "USBIntrSourceSink" firmware example according to the USB 3.2 Specification limit.

 

  1. maximum packet size.   (USB 3.2 Specification 4.4.7.1, 9.6.6)
  2. BURST SIZE.

 

Inside the "USBIntrSourceSink" example there are

  • cyfxintrsrcsink.c
  • cyfxintrsrcsink.h
  • cyfxintrdscr.c

 

In "cyfxintrsrcsink.h" I changed the "CY_FX_INTR_BURST_SIZE" param to 1

 

And inside "cyfxintrsrcsink.c"

 I changed size to 8

------------------------------------------

case  CY_U3P_SUPER_SPEED:

            size = 8;

            break;

------------------------------------------

Also inside "cyfxintrdscr.c" in section

 

/* Standard super speed configuration descriptor */

 

 I change it to

-------------------------------------------------------------------------------------------------------------

    0x08,0x00,                      /* Max packet size = 1024 bytes */

    0x08,(0x00 * CY_FX_INTR_BURST_SIZE), /* Bytes per interval : 1024 * burst */

-------------------------------------------------------------------------------------------------------------

the FX3 board don’t pass the enumeration and fail in the Descriptor hand shake.

 

But when I change the number to 16 in all the files it works And the streamer can test the FX3 board with the interrupt firmware test.

 

Thanke for your help.

0 Likes
1 Solution
AliAsgar
Moderator
Moderator
Moderator
1000 replies posted 250 solutions authored 750 replies posted

Hi EliW,

Maximum endpoint packet size cannot be kept as 8. It is a silicon issue.

Best Regards,
AliAsgar

View solution in original post

0 Likes
7 Replies
JayakrishnaT_76
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hello,

Please let me know why you want to reduce the maximum packet size to 8? Please note that such a reduction in max packet size will drop the data rate.

Also, I tested the project by changing the size to 8 and by making the modifications mentioned in the descriptor. I saw that the device was enumerating correctly at my end. Please let me know if I missed anything else while testing at my end.

Best Regards,
Jayakrishna
0 Likes
lock attach
Attachments are accessible only for community members.

Hi,

 

I want to reduce the the maximum packet size for automation by testing my host in various packet size.

I know it will drop the data rate, its only for testing And according to USB spec.

 

**

Also, I tested the project by changing the size to 8 and by making the modifications mentioned in the descriptor. I saw that the device was enumerating correctly at my end. Please let me know if I missed anything else while testing at my end.

***

You focused me on the problem, I should only change the descriptor. Now the enumeration is good!

 

But it takes me to the next problem.

 

I'm getting "INTERRUPT IN transfer failed with Error Code:997" error on the "USB Control Center" app.(add pic)

 

As you can see in the pic, the problem is on the "INTERRUPT IN" end point

On the "INTERRUPT OUT" end point it working fine

 

Are you getting the same problem as well?

 

Again, thanks for the help,

EliW.

0 Likes

can you help me please?

0 Likes
AliAsgar
Moderator
Moderator
Moderator
1000 replies posted 250 solutions authored 750 replies posted

Hi,

The issue is reproducible at our end, we are working on it.

Best Regards,
AliAsgar

0 Likes
AliAsgar
Moderator
Moderator
Moderator
1000 replies posted 250 solutions authored 750 replies posted

Hi EliW,

Could you let us know why is the packet size 8 needed for the interrupt endpoints?

Best Regards,
AliAsgar.

0 Likes
EliW
Level 3
Level 3
25 replies posted 25 sign-ins 10 replies posted

Hello my friend, and thanks for the support!

 

I'm testing my host\hub as part of compliance testing to see that it know how to handle different pocket size according to usb spec 3.2.

 

4.4.7.1 Interrupt Transfer Packet Size

 
 

Capture111.JPG

Thanks,

EliW.

0 Likes
AliAsgar
Moderator
Moderator
Moderator
1000 replies posted 250 solutions authored 750 replies posted

Hi EliW,

Maximum endpoint packet size cannot be kept as 8. It is a silicon issue.

Best Regards,
AliAsgar

0 Likes