Announcements
IMPORTANT: Cypress Developer Community is transitioning on October 20th. To learn more and be prepared for this change, check out our latest announcement.
cancel
Showing results for 
Search instead for 
Did you mean: 

USB Low-Full-High Speed Peripherals

qiwec_297866
New Contributor

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

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

Mallika

View solution in original post

0 Likes
1 Reply
MallikaK_22
Moderator
Moderator

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

Mallika

View solution in original post

0 Likes