Hi ,in this days i have work for find a solution with the freescale stack library. A fist solution, that i find, is to increase the buffer length in the file usb_msc.h changing:
#define MSC_RECV_DATA_BUFF_SIZE (512)
#define MSC_SEND_DATA_BUFF_SIZE (512)
in :
#define MSC_RECV_DATA_BUFF_SIZE (8192)
#define MSC_SEND_DATA_BUFF_SIZE (512)
now i can load in to the sdcard files with dimension up to 8192byte, the problem with the MSD seem to be that the recieve buffer will not be emptied, writing the data, when it's reaches the maximal content of data. The file send to the device is not splitted in more small packages with the dimension of the buffer. Someone can help me?