startware 中的块大小为512字节,按TIwiki上说:
The default block size is 512 bytes. If the alternate block media has a different block size, then this must be updated in the USB stack. This can be achieved by updating macros DEVICE_BLOCK_SIZE and MAX_TRANSFER_SIZE with the new block size.
修改块为2048字节,修改
1. ramdisk.c
#define RAM_DISK_SIZE (1024 * 1024 * 16)
#define LBA_SIZE 2048
#define TRANSFER_SIZE 2048
2.usbdmsc.h
#define DEVICE_BLOCK_SIZE 2048
3.cppi41dma.h
#define USB_PACKET_LENGTH 2048
#define MAX_TRANSFER_SIZE USB_PACKET_LENGTH
或
#define USB_PACKET_LENGTH 512
#define MAX_TRANSFER_SIZE 2048
都是不行的;
如果不修改第3步,则能识别,但格式化提示错误。
tu wolfe:
难道没人遇到此类情况?