how to stop EP4 and manually transfer date to the IN endpoint

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

cross mob
Anonymous
Not applicable
        Hi Guys:   
   
I need to edit the data from read from nand flash before they are sent to the USB via EP4. However the current ways the data is read and sent through to the USB are all done automatically without CPU's knowledge. I tried to disable EP4's Auto bit, EP4FIFOCFG = bmINFM and then while (!(GPIFTRIG&0x80)); // poll ep4 done   
this does not seem work, I am still unable to get the data read from nand flash in EP4FIFO.   
   
Help!...   
0 Likes
0 Replies