DeviceID = SPI_FLASH_ReadDeviceID();
Delay( 200 );
/* Get SPI Flash ID */
FlashID = SPI_FLASH_ReadID();
printf("\r\n FlashID is 0x%X, Manufacturer Device ID is 0x%X\r\n", FlashID, DeviceID);
在SPI main 函数里注释掉 DeviceID = SPI_FLASH_ReadDeviceID(); 那么FlashID获得便不准确了,交换位置也会出错,我看SPI_FLASH_ReadID();函数里与DeviceID也没关系啊? |