About CDC and endpoint

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

cross mob
zheng
Level 2
Level 2
25 sign-ins 10 replies posted 10 sign-ins

Hi,  The following figure 1 shows my system. The first time, I sent a request from the host, and the data written to ep6in from 8051 was correct, but I read ffffffff in the host (as shown in the red box in Figure 2). The second time, I sent the same request from the host again, and I read the correct value in the host (as shown in the basket in Figure 2). Similarly, for subsequent communications, the first reply from fx2lp is ffffff, and the correct information is returned the second time. Would you give me some advice on why?

Fig.1:

zheng_0-1635419809888.jpeg

Fig.2:

zheng_1-1635420489252.png

Best regards,

Zheng

 

0 Likes
1 Solution
MallikaK_22
Moderator
Moderator
Moderator
50 likes received 750 replies posted 250 solutions authored

Hi Zheng,

Kindly check the descriptors for full speed in your dscr file. They seem improper. 

In fifo_reset(), 0x82, 0x84, 0x86, 0x88 should be used instead of 0x02, 0x04, 0x06 and 0x08.

How is the FX2LP device enumerating on the host?

Is there any issue in the Data IN path also?

Could you please once check the firmware source for implementing FX2LP as a COM port available here: https://www.cypress.com/documentation/application-notes/an58764-implementing-virtual-com-port-using-...

 

 

View solution in original post

0 Likes
6 Replies