第一句总是:KingstonDataTravelerMiniPMAP,而不是boot。这可能是什么原因引起的?下面是我读第1扇区得到的信息:
55 53 42 20 43 68 65 63 6B 65 72 20 49 6E 20 44 65 76 6C 6F 70 69 6E 67 21 0D 0A 00 00 00 01 1F 00 00 00 4B 69 6E 67 73 74 6F 6E 44 61 74 61 54 72 61 76 65 6C 65 72 4D 69 6E 69 50 4D 41 50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 FF 04 FF FF 04 FF FF 04 00 00 00 8C 00 00 00 01 00 00 50 00 01 FF FF FF FF FF
读一扇区代码如下: void ReadDiskOneSector(UINT32 LBA,UINT8 *buffer) { UINT8 cnt = 8; BOOL retry = TRUE; while(retry) { Ch375WriteCommand(CMD_DISK_READ); Ch375WriteData((UINT8)LBA); Ch375WriteData((UINT8)(LBA>>8)); Ch375WriteData((UINT8)(LBA>>16)); Ch375WriteData((UINT8)(LBA>>24)); Ch375WriteCommand(1); while(cnt--) { if(WaitInterrupt() != USB_INT_DISK_READ) break; ReadUsbData(buffer); Ch375WriteCommand(CMD_DISK_RD_GO); } if(cnt != 0xff) { InitialUsbDisk(); } else { retry = FALSE; } } }