HyperFlash on I.MXRT1062 EVK step by step instructions

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

HyperFlash on I.MXRT1062 EVK step by step instructions

1,072件の閲覧回数
patriciocohen
Contributor IV

Hi,

Is there an example on how to use Hyper flash with the SPF-31357 A2 EVK?

The board has been modified already according to  https://community.nxp.com/t5/i-MX-RT/Hyper-Flash-on-IMX-RT1060-EVK-does-not-work/m-p/855753

Also changed the hyperflash_config structure as follows:

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),
            .sflashPadType = kSerialFlash_8Pads,
            .serialClkFreq = kFlexSpiSerialClk_133MHz,
            .sflashA1Size = 64u * 1024u * 1024u,
            .dataValidTime = {16u, 16u},
            .lookupTable =
                {
                    // Read LUTs
                    FLEXSPI_LUT_SEQ(CMD_DDR, FLEXSPI_8PAD, 0xA0, RADDR_DDR, FLEXSPI_8PAD, 0x18),
                    FLEXSPI_LUT_SEQ(CADDR_DDR, FLEXSPI_8PAD, 0x10, DUMMY_DDR, FLEXSPI_8PAD, 0x06),
                    FLEXSPI_LUT_SEQ(READ_DDR, FLEXSPI_8PAD, 0x04, STOP, FLEXSPI_1PAD, 0x0),
                },
        },
    .pageSize = 512u,
    .sectorSize = 256u * 1024u,
    .blockSize = 256u * 1024u,
    .isUniformBlockSize = true,
};

 Ans I also defined the following symbols:

XIP_BOOT_HEADER_ENABLE=1

XIP_EXTERNAL_FLASH=1

The program runs, but Hyper Flash is not detected. 

I'm using "Redlib semihost" library to see the output in the console.

Thanks for your help.

Patricio

タグ(1)
0 件の賞賛
返信
2 返答(返信)

1,036件の閲覧回数
jay_heng
NXP Employee
NXP Employee

You need to re-use the hyperflash_config structure from RT1050 SDK, as HyperFlash is default flash in RT1050-EVKB

0 件の賞賛
返信

1,054件の閲覧回数
patriciocohen
Contributor IV

Can someone please help me?

0 件の賞賛
返信