I want to use bulk transfer on endpoint 1 of the AT91SAM7X256,so I checked the keil Memory example,But after i migrated the project,the board can not response to endpoint 1 token In packet but always send NAK. I have changed these things. In usbcfg.h #define USB_CLASS 0 #define USB_MSC 0
in Usbdesc.c,change the config descriptor,change the 4 items after bNumEndpoints to 0x00,delete all functions in mscuser.c excluding MSC_Reset, and write
void MSC_BulkIn (void) { if(Offset < MSC_MemorySize) { USB_WriteEP(MSC_EP_IN, &Memory[Offset], 64); Offset += 64; } else Offset = 0; } void MSC_BulkOut (void) { }
.and some small things,Can you help me what's the problem cause this issue? The enumeration process is all rirht.