My board boots from QSPI NOR flash through FlexSPI. I would like to change the FlexSPI LUT configuration that is configured by ROM to be able to use the extended status registers in my flash device so I am changing the content of the flexspi_nor_config_t qspiflash_config struct that gets linked to .boot_hdr.
The IMXRT1050RM document tells me about version 1.1 - 0x56010100 of the FlexSPI Configuration Block in table 9-14, but the SDK is using 0x56010400.
The LUT sequences end up in different LUT locations to the one that I would expect from table 9-15. Is this because the version is different? Where can I find the mapping of sequences in qspiflash_config.memConfig.lookupTable to the LUT in FLEXSPI? What changes from v1.1 to v1.4 of the configuration block?
已解决! 转到解答。
Hi @gavin5342 ,
To the SDK FCB, it will all copied to the FlexSPI LUT with the ROM.
You can use the SDK example:
const flexspi_nor_config_t
hyperflash_config =
{
.memConfig =
{
.tag = FLEXSPI_CFG_BLK_TAG,
.version = FLEXSPI_CFG_BLK_VERSION,
.readSampleClksrc=kFlexSPIReadSampleClk_ExternalInputFromDqsPad,
.csHoldTime = 3u,
.csSetupTime = 3u,
.columnAddressWidth = 3u,
// Enable DDR mode, Wordaddassable, Safe configuration, Differential clock
.controllerMiscOption =
(1u << kFlexSpiMiscOffset_DdrModeEnable) | (1u << kFlexSpiMiscOffset_WordAddressableEnable) |
(1u << kFlexSpiMiscOffset_SafeConfigFreqEnable) | (1u << kFlexSpiMiscOffset_DiffClkEnable),
.deviceType = kFlexSpiDeviceType_SerialNOR,
.sflashPadType = kSerialFlash_8Pads,
.serialClkFreq = kFlexSpiSerialClk_133MHz,
.lutCustomSeqEnable = 0x1,
.sflashA1Size = 64u * 1024u * 1024u,
.dataValidTime = {15u, 0u},
.busyOffset = 15u,
.busyBitPolarity = 1u,
.lookupTable =
{
// Read LUTs
[0] = FLEXSPI_LUT_SEQ(CMD_DDR, FLEXSPI_8PAD, 0xA0, RADDR_DDR, FLEXSPI_8PAD, 0x18),
[1] = FLEXSPI_LUT_SEQ(CADDR_DDR, FLEXSPI_8PAD, 0x10, DUMMY_DDR, FLEXSPI_8PAD, 0x0C),
[2] = FLEXSPI_LUT_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, FLEXSPI_8PAD, 0x55),
// 3
[4 * 14 + 0] = FLEXSPI_LUT_SEQ(CMD_DDR, FLEXSPI_8PAD, 0x0, CMD_DDR, FLEXSPI_8PAD, 0x0),
[4 * 14 + 1] = FLEXSPI_LUT_SEQ(CMD_DDR, FLEXSPI_8PAD, 0x0, CMD_DDR, FLEXSPI_8PAD, 0xAA),
[4 * 14 + 2] = FLEXSPI_LUT_SEQ(CMD_DDR, FLEXSPI_8PAD, 0x0, CMD_DDR, FLEXSPI_8PAD, 0x05),
[4 * 14 + 3] = FLEXSPI_LUT_SEQ(CMD_DDR, FLEXSPI_8PAD, 0x0, CMD_DDR, FLEXSPI_8PAD, 0x10),
},
// LUT customized sequence
.lutCustomSeq = {{
.seqNum = 0,
.seqId = 0,
.reserved = 0,
},
{
.seqNum = 2,
.seqId = 1,
.reserved = 0,
},
{
.seqNum = 2,
.seqId = 3,
.reserved = 0,
},
{
.seqNum = 4,
.seqId = 5,
.reserved = 0,
},
{
.seqNum = 2,
.seqId = 9,
.reserved = 0,
},
{
.seqNum = 4,
.seqId = 11,
.reserved = 0,
}},
},
.pageSize = 512u,
.sectorSize = 256u * 1024u,
.ipcmdSerialClkFreq = 1u,
.serialNorType = 1u,
.blockSize = 256u * 1024u,
.isUniformBlockSize = true,
};
Best Regards,
Kerry
Hi @gavin5342 ,
Thanks for your interest in the NXP MIMXRT product, I would like to provide service for you.
For the FCB, I highly recommend you refer to the newest RT1050 SDK code, that is the newest one.
To the RM, the doc is a little old, so I still recommend you refer to SDK code.
Wish it helps you!
Best Regards,
kerry
Thanks Kerry. I can see the structure in the SDK, but can you tell me how entries in the FCB lookupTable get copied to the FLEXSPI LUT? I know for sure that not all entries get copied across, but I would like to know so that I can fill the LUT out at boot without having to update it again after boot (especially risky as I used XIP). Where can I find the updated information?
Gavin
Hi @gavin5342 ,
To the SDK FCB, it will all copied to the FlexSPI LUT with the ROM.
You can use the SDK example:
const flexspi_nor_config_t
hyperflash_config =
{
.memConfig =
{
.tag = FLEXSPI_CFG_BLK_TAG,
.version = FLEXSPI_CFG_BLK_VERSION,
.readSampleClksrc=kFlexSPIReadSampleClk_ExternalInputFromDqsPad,
.csHoldTime = 3u,
.csSetupTime = 3u,
.columnAddressWidth = 3u,
// Enable DDR mode, Wordaddassable, Safe configuration, Differential clock
.controllerMiscOption =
(1u << kFlexSpiMiscOffset_DdrModeEnable) | (1u << kFlexSpiMiscOffset_WordAddressableEnable) |
(1u << kFlexSpiMiscOffset_SafeConfigFreqEnable) | (1u << kFlexSpiMiscOffset_DiffClkEnable),
.deviceType = kFlexSpiDeviceType_SerialNOR,
.sflashPadType = kSerialFlash_8Pads,
.serialClkFreq = kFlexSpiSerialClk_133MHz,
.lutCustomSeqEnable = 0x1,
.sflashA1Size = 64u * 1024u * 1024u,
.dataValidTime = {15u, 0u},
.busyOffset = 15u,
.busyBitPolarity = 1u,
.lookupTable =
{
// Read LUTs
[0] = FLEXSPI_LUT_SEQ(CMD_DDR, FLEXSPI_8PAD, 0xA0, RADDR_DDR, FLEXSPI_8PAD, 0x18),
[1] = FLEXSPI_LUT_SEQ(CADDR_DDR, FLEXSPI_8PAD, 0x10, DUMMY_DDR, FLEXSPI_8PAD, 0x0C),
[2] = FLEXSPI_LUT_SEQ(READ_DDR, FLEXSPI_8PAD, 0x04, STOP, FLEXSPI_1PAD, 0x0),
// Read Status LUTs
// 0
[4 * 1 + 0] = FLEXSPI_LUT_SEQ(CMD_DDR, FLEXSPI_8PAD, 0x0, CMD_DDR, FLEXSPI_8PAD, 0x0),
[4 * 1 + 1] = FLEXSPI_LUT_SEQ(CMD_DDR, FLEXSPI_8PAD, 0x0, CMD_DDR, FLEXSPI_8PAD, 0xAA),
[4 * 1 + 2] = FLEXSPI_LUT_SEQ(CMD_DDR, FLEXSPI_8PAD, 0x0, CMD_DDR, FLEXSPI_8PAD, 0x05),
[4 * 1 + 3] = FLEXSPI_LUT_SEQ(CMD_DDR, FLEXSPI_8PAD, 0x0, CMD_DDR, FLEXSP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4 * 12 + 0] = FLEXSPI_LUT_SEQ(CMD_DDR, FLEXSPI_8PAD, 0x0, CMD_DDR, FLEXSPI_8PAD, 0x0),
[4 * 12 + 1] = FLEXSPI_LUT_SEQ(CMD_DDR, FLEXSPI_8PAD, 0x0, CMD_DDR, FLEXSPI_8PAD, 0xAA),
[4 * 12 + 2] = FLEXSPI_LUT_SEQ(CMD_DDR, FLEXSPI_8PAD, 0x0, CMD_DDR, FLEXSPI_8PAD, 0x05),
[4 * 12 + 3] = FLEXSPI_LUT_SEQ(CMD_DDR, FLEXSPI_8PAD, 0x0, CMD_DDR, FLEXSPI_8PAD, 0xAA),
// 2
[4 * 13 + 0] = FLEXSPI_LUT_SEQ(CMD_DDR, FLEXSPI_8PAD, 0x0, CMD_DDR, FLEXSPI_8PAD, 0x0),
[4 * 13 + 1] = FLEXSPI_LUT_SEQ(CMD_DDR, FLEXSPI_8PAD, 0x0, CMD_DDR, FLEXSPI_8PAD, 0x55),
[4 * 13 + 2] = FLEXSPI_LUT_SEQ(CMD_DDR, FLEXSPI_8PAD, 0x0, CMD_DDR, FLEXSPI_8PAD, 0x02),
[4 * 13 + 3] = FLEXSPI_LUT_SEQ(CMD_DDR, FLEXSPI_8PAD, 0x0, CMD_DDR, FLEXSPI_8PAD, 0x55),
// 3
[4 * 14 + 0] = FLEXSPI_LUT_SEQ(CMD_DDR, FLEXSPI_8PAD, 0x0, CMD_DDR, FLEXSPI_8PAD, 0x0),
[4 * 14 + 1] = FLEXSPI_LUT_SEQ(CMD_DDR, FLEXSPI_8PAD, 0x0, CMD_DDR, FLEXSPI_8PAD, 0xAA),
[4 * 14 + 2] = FLEXSPI_LUT_SEQ(CMD_DDR, FLEXSPI_8PAD, 0x0, CMD_DDR, FLEXSPI_8PAD, 0x05),
[4 * 14 + 3] = FLEXSPI_LUT_SEQ(CMD_DDR, FLEXSPI_8PAD, 0x0, CMD_DDR, FLEXSPI_8PAD, 0x10),
},
// LUT customized sequence
.lutCustomSeq = {{
.seqNum = 0,
.seqId = 0,
.reserved = 0,
},
{
.seqNum = 2,
.seqId = 1,
.reserved = 0,
},
{
.seqNum = 2,
.seqId = 3,
.reserved = 0,
},
{
.seqNum = 4,
.seqId = 5,
.reserved = 0,
},
{
.seqNum = 2,
.seqId = 9,
.reserved = 0,
},
{
.seqNum = 4,
.seqId = 11,
.reserved = 0,
}},
},
.pageSize = 512u,
.sectorSize = 256u * 1024u,
.ipcmdSerialClkFreq = 1u,
.serialNorType = 1u,
.blockSize = 256u * 1024u,
.isUniformBlockSize = true,
};
Best Regards,
Kerry