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

Why the SAM7X256 board sending NAK for every Data IN token on EndPoint1

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.

0