Discussion Forum

action strange in the at91sam7x256 sample.

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
CGHA CHRIS
Posted
24-Oct-2007 14:29 GMT
Toolset
ARM
New! 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.

Next Thread | Thread List | Previous Thread Start a Thread | Settings