Hyperflash in RT1064 is not working

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

Hyperflash in RT1064 is not working

ソリューションへジャンプ
1,569件の閲覧回数
Meera_123
Contributor II

I did all the changes related to hardware, Mount R356,R361,R362,R363,R364,R365,R366 and DNP R153,R154,R155,R156,R157,R158. Then load sdk example evkmimxrt1064_flexspi_hyper_flash_polling_transfer. But hyperflash is not working. When I changed this structure board gets stuck. 

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,
};

 

0 件の賞賛
返信
1 解決策
1,543件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Meera_123 ,

   You can update your SDK to SDK10.0.0, please download it from this link:

https://mcuxpresso.nxp.com/

  If you still have questions about it, please kindly let me know.

Best Regards,

Kerry

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,555件の閲覧回数
Meera_123
Contributor II

Yes, Now my flexspi hyperflash working. I was using sdk 2.9.1 and in that SDK , Flexspirootclk was 83Mhz when I changed clock setting with 42Mhz it is working with current sdk 2.9.1

Meera_123_0-1627369253781.png

 

0 件の賞賛
返信
1,544件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Meera_123 ,

   You can update your SDK to SDK10.0.0, please download it from this link:

https://mcuxpresso.nxp.com/

  If you still have questions about it, please kindly let me know.

Best Regards,

Kerry

0 件の賞賛
返信
1,560件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Meera_123 

   Please note, the hyperflash is not the RWW chip, so you need to run in the RAM, not download to the flash.

  Now, follow me to test it again.

1. chip enter the serial download mode, SW7 1:OFF, 2:OFF, 3:OFF, 4:ON

2.  Please modify the project link to RAM

kerryzhou_0-1627007433593.png

Then test it again.

If you still have questions about it, please kindly let me know.

Best Regards,

kerry