1 of 1 people found this helpful
The WORDWIDE bit of all the FIFOs must be set to 0. This can be done by setting the bit 0 of EPxFIFOCFG registers to 0. Upon reset, the WORDWIDE bits of all the Endpoint FIFOs are set to 1. This has to be overridden in the code. Include the below statements in the TD_Init() function block.
EP2FIFOCFG &= 0xFE;
EP4FIFOCFG &= 0xFE;
EP6FIFOCFG &= 0xFE;
EP8FIFOCFG &= 0xFE;