This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

action strange in the at91sam7x256 sample.

In the hid sample of at91sam7x256,while read data out from pc,the DataOutStage behaved stangely!
The EP0Data.pData and EP0Data.Count reset to zero when receive data more than the MAX_LENGTH_EP0.so if i want to receive 48 bytes from PC,the first 8bytes is correct,EP0Data.Count is 40,then after execute twice of READ_EP,the EP0Data.Count reset to zero but not 32.
so I have to declare 2 variable to save EP0Data.Count and EP0Data.pData.