struct FlashDevice const FlashDevice = {
FLASH_DRV_VERS, // Driver Version, do not modify!
"MM32F5260 QSPI FlashLoader", // Device Name
EXTSPI, // Device Type
0x90000000, // Device Start Address
0x01000000, // Device Size in Bytes (16MB)
256, // Programming Page Size
0, // Reserved, must be 0
0xFF, // Initial Content of Erased Memory
3000, // Program Page Timeout 100 mSec
3000, // Erase Sector Timeout 3000 mSec
// Specify Size and Address of Sectors
{
{0x001000, 0x000000}, // Sector Size 4kB (1 Sectors)
}
};
根据实际情况修改上述结构体中的参数,如芯片容量、扇区大小、页大小、起始地址等,以适配所使用的具体QSPI Flash芯片
|