Hyperflash in RT1064 is not working

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Hyperflash in RT1064 is not working

跳至解决方案
1,602 次查看
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,576 次查看
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,588 次查看
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,577 次查看
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,593 次查看
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