Why does the reset of the salve fifo of endpoint in cy7c68013A is not succeed

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

cross mob
qiwec_297866
Level 2
Level 2
10 sign-ins 10 questions asked 5 replies posted

Hi

   I use the vendor command to reset the salve fifo of endpoint(ep2 and ep6, ep2 is out endpoint and ep6 is in endpoint), as follows:

   BOOL DR_VendorCmnd( void )

{  

    if(SendBuf[2] == 0x06)
{
IsMasterStoped = TRUE;
}

}

void TD_Poll( void )
{
if(IsMasterStoped == TRUE)
{
FIFORESET = 0x80; SYNCDELAY; // activate NAK-ALL to avoid race conditions
//FIFORESET = 0x02; SYNCDELAY; // reset, FIFO 2
FIFORESET = 0x06; SYNCDELAY; // reset, FIFO 6
FIFORESET = 0x00; SYNCDELAY;
SYNCDELAY;
SYNCDELAY;
SYNCDELAY;
SYNCDELAY;
IsMasterStoped = FALSE;
}
}

If I reset the ep6 individually, it can be reset normally, but if I both reset the ep2 and ep6, the ep6 can work normally, while the ep2 does not work any more, How to slove it?

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

Hi,

Could you please let me know if you are using the FIFOs in AUTO mode or manual mode? 

Would it be possible to share the complete source code?

Regards,

Mallika

View solution in original post

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

Hi,

Could you please let me know if you are using the FIFOs in AUTO mode or manual mode? 

Would it be possible to share the complete source code?

Regards,

Mallika

0 Likes