本帖最后由 magic856 于 2019-1-22 15:21 编辑
如题,最近用RT1052号令者跑了些例程,接下来新项目中用到一块512MB的QSPI FLASH,用来存放代码和数据,有以下疑问:正点原子的XIP例程:
const flexspi_nor_config_t qspiflash_config =
{
.memConfig =
{
.tag = FLEXSPI_CFG_BLK_TAG,
.version = FLEXSPI_CFG_BLK_VERSION,
.readSampleClkSrc = kFlexSPIReadSampleClk_LoopbackFromDqsPad,
.csHoldTime = 3u,
.csSetupTime = 3u,
.columnAddressWidth = 0u,
// Enable DDR mode, Wordaddassable, Safe configuration, Differential clock
.sflashPadType = kSerialFlash_4Pads,
.serialClkFreq = kFlexSpiSerialClk_133MHz,
.sflashA1Size = 8u * 1024u * 1024u,
.lookupTable =
{
0x0A1804EB, 0x26043206, 0x00000000, 0x00000000, 0x24040405, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000406, 0x00000000, 0x00000000, 0x00000000,
0x20010401, 0x00000000, 0x00000000, 0x00000000, 0x08180420, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x08180402, 0x00002004, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000460, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
},
},
.pageSize = 256u,
.sectorSize = 4096u,
.ipcmdSerialClkFreq = 1,
.isUniformBlockSize = false,
};
.tag和 lookupTable 是flash的什么信息?
配置SDRAM信息:
const uint8_t dcd_sdram[1072] = {}
SDRAM信息怎么配置的?
麻烦有移植过的大神帮忙解答下,谢谢!
|